SPARQLWrapper

Software Screenshot:
SPARQLWrapper
Software Details:
Version: 1.5.2
Upload Date: 20 Feb 15
Distribution Type: Freeware
Downloads: 224

Rating: 4.0/5 (Total Votes: 1)

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"]

Requirements:

  • Python

Similar Software

EasyDB
EasyDB

14 Apr 15

SQL Relay
SQL Relay

27 Sep 15

RedStore
RedStore

11 May 15

Qore Tibae Module
Qore Tibae Module

20 Feb 15

Comments to SPARQLWrapper

Comments not found
Add Comment
Turn on images!