This repository is the final product of assignment 1, requested by the course MSB1015 (Scientific Programming). The goal is to create a repository which contains all information, documentation and files needed to run a wikidata query using html/javascript as a new user.
To use the WikiData query tool, download the repository and run the 'Index.html' file within the Query folder. This runs the tool using the custom WikiData query which can be altered in 'Query-call.js'. The produced images are specific to the query call, when changing the call make sure to change 'Query-pie.js', 'Query-bubble.js' and 'Query-main.js' accordingly.
Using the default settings the output should be very similar to 'WikiData query.html' in the 'Expected output' folder. Download all the files in the folder to open the page correctly.
The query asks information from Wikidata in a similar fasion the dedicated Wikidata database query works using the SPARQL language. Data on wikidata is published under the Creative Commons Zero licence, stating 'others may freely build upon, enhance and reuse the works for any purposes without restriction under copyright or database law'.
Using the tool developed in this project, data is shared using the wikidata-sdk.
The resulted JSON data is used to produce several images using the D3 JavaScript library for visualizing.
Query -> JSON output -> D3 visualisation.
RRtK2 (owner and contributor)
Final.
All code and documents in the MSB1015-Assignment-1 folder was created by these author(s).