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.

Information Preview

Medium

Information Run

Not available


Information Workflow Components

Not available

Information Uploader

Information License

All versions of this Workflow are licensed under:

Information Version 1 (of 1)

Information Credits (1)

(People/Groups)

Information Attributions (0)

(Workflows/Files)

None

Information Tags (3)

Log in to add Tags

Information Shared with Groups (0)

None

Information Featured In Packs (0)

None

Log in to add to one of your Packs

Information Attributed By (0)

(Workflows/Files)

None

Information Favourited By (0)

No one

Information Statistics

 

Citations (0)

None


Version History

In chronological order:



Reviews Reviews (0)

No reviews yet

Be the first to review!



Comments Comments (1)

Log in to make a comment

  • Saturday 07 April 2018 16:14:11 (UTC)

    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)
     




Workflow Other workflows that use similar services (0)

There are no workflows in myExperiment that use similar services to this Workflow.