Session Ready
Exercise

SPARQL: Querying linked data

Behind the scenes, data.world is converting all tabular data files into linked data using Semantic Web technolgies. This allows you to upload any tabular format, like xlsx, csv, tsv or json, and instantly be able to query and join them without issue. SQL is great for this, but SPARQL - which is the query language for linked data - can be more robust and flexible than SQL, allowing for more complex queries.

We won't cover all that SPARQL can do here, but get to know it through our tutorial, and practice loading data with SPARQL through the query method by adding a query_type='sparql' parameter.

Let's give it a shot...

Instructions
100 XP
  • Use the pre-defined SPARQL query to query dataset http://data.world/tutorial/sparqltutorial and return the results to a queryResults variable.
  • Create a houseStark dataframe.
  • Use pp.pprint to print the dataframe to the screen.