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
This Bioclipse script (in Groovy) uses the Linked Data Fragments (ldf) manager that uses the LDF Java client library to run a SPARQL query on the LDF server wrapping Wikidata.
Preview
Run
Not available
Workflow Components
Not available
Uploader
License
All versions of this Workflow are
licensed under:
Version 1
(of 1)
Credits (1)
(People/Groups)
Attributions (0)
(Workflows/Files)
None
Shared with Groups (0)
None
Featured In Packs (0)
None
Log in to add to one of your Packs
Attributed By (0)
(Workflows/Files)
None
Favourited By (0)
No one
Statistics
Other workflows that use similar services
(0)
There are no workflows in myExperiment that use similar services to this Workflow.
Comments (1)
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)