Difference between revisions of "Help:Data extraction"

From COMP15212 Wiki
pc>Yuron
(Created page with "This page contains instructions on how to extract data from this wiki for external use. == Through APIs == === Built-in functionality === This wiki makes use of Mediawiki and...")
 
gravatar W81054ch [userbureaucratinterface-adminsysopPHRhYmxlIGNsYXNzPSJ0d3BvcHVwIj48dHI+PHRkIGNsYXNzPSJ0d3BvcHVwLWVudHJ5dGl0bGUiPkdyb3Vwczo8L3RkPjx0ZD51c2VyPGJyIC8+YnVyZWF1Y3JhdDxiciAvPmludGVyZmFjZS1hZG1pbjxiciAvPnN5c29wPGJyIC8+PC90ZD48L3RyPjwvdGFibGU+] (talk | contribs)
m (1 revision imported)
 
(No difference)

Latest revision as of 17:10, 16 August 2019

This page contains instructions on how to extract data from this wiki for external use.

Through APIs

Built-in functionality

This wiki makes use of Mediawiki and Semantic Mediawiki. Consult the documentation for the Mediawiki API and the Semantic Mediawiki API for more details.

UserDash APIs

UserDash is the custom extension that drives this wiki's custom functionality. For documentation related to those APIs, refer to Development:UserDash.

Using the page map

More details about the page map can be obtained in Development:UserDash.

Dependencies

Dependencies are defined in Semantic Mediawiki, and so an "ask" query would be the most canonical way to obtain data about Dependencies. However, a more compact, customized and simple format is cached locally, and can be obtained with mw.userDash.dataRepository.pageMap.links or JSON.parse(window.localStorage.getItem("pageMap")).links in the JavaScript console, on any page in this wiki.

List of pages

mw.userDash.dataRepository.pageMap.nodes or JSON.parse(window.localStorage.getItem("pageMap")).nodes provides a list of all pages, along with some metadata (but not their contents).