Knowledge Graphs

Exercise 2.9 - Winterthur Example in Wikidata

Exercise 2.9 Perform the following tasks for the Winterthur graph shown in Figure 2 of Chapter 1.
(a) Visit http://www.wididata.org. Search for Winterthur, and click on it to visit the page that gives its detailed properties. Find the relationships mentioned in Figure 2. Click on the values of those relationships, and successively navigate the data until you have visited each node show in Figure 2 of Chapter 1. Sample Solution (Video)
(b) Visit the Wikidata SPARQL endpoint at https://query.wikidata.org/sparql. Write a SPARQL query to extract the triples that appear in the Figure 2 of Chapter 1. Sample Solution
(c) Use any publicly available tool to visualize the extracted triples for Winterthur. Sample Solution
(d) Write a Python program to pose the SPARQL queries to the Wikidata SPARQL server and to visualize the result. Sample Solution