SPARQLWrapper 1.5.2

SPARQL Wrapper
SPARQLWrapper is a SPARQL endpoint interface to Python. It is a wrapper around a SPARQL service. It helps in creating the query URI and, possibly, convert the result into a more manageable format.

The SPARQLWrapper package is licensed under W3C license.

Here you have an example of how to use the library in your python program:

from SPARQLWrapper import SPARQLWrapper, JSON

sparql = SPARQLWrapper("http://dbpedia.org/sparql")
sparql.setQuery("""
 PREFIX rdfs:
 SELECT ?label
 WHERE { rdfs:label ?label }
""")
sparql.setReturnFormat(JSON)
results = sparql.query().convert()

for result in results["results"]["bindings"]:
 print result["label"]["value"]

last updated on:
August 30th, 2012, 21:17 GMT
price:
FREE!
homepage:
sparql-wrapper.sourceforge.net
license type:
W3C License 
developed by:
Ivan Herman, Sergio Fernández, Carlos ...
category:
ROOT \ Database \ Database APIs
SPARQLWrapper
Download Button

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Rate it!

Add your review!

SUBMIT