Example SPARQL on Wikidata using the Linked Data Fragments platform
Created: 2015-01-23 20:51:40
Last updated: 2015-01-23 20:51:57
Version History
Reviews
(0)
Other workflows that use similar services
(0)
There are no workflows in myExperiment that use similar services to this Workflow.
Log in to make a comment
The Wikidata LDF end point has changed and so has the Wikidata RDF. The currently working code is:
wikidataldf = ldf.createStore("https://query.wikidata.org/bigdata/ldf")
sparql = """
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?country ?iso WHERE {
?country wdt:P298 ?iso
}
"""
results = rdf.sparql(wikidataldf, sparql)