Skip to main content

Convert SPARQL results to Pandas dataframes

Project description


Helper to convert SPARQLWrapper results to Pandas dataframes.

Build Status

See this blog post for examples. You might also be interested in these related examples from Su Labs tutorial.


Directly from PyPi for Python 3.4+.

$ pip install sparql-dataframe

From Github. This should support Python 2.7 as well.

$ pip install git+


import sparql_dataframe

endpoint = ""

q = """
    SELECT ?label ?wikiPageID
    WHERE {
    <> rdfs:label ?label ;
         <> ?wikiPageID

df = sparql_dataframe.get(endpoint, q)


$ python -m unittest

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for sparql-dataframe, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size sparql_dataframe-0.2.tar.gz (2.1 kB) File type Source Python version None Upload date Hashes View
Filename, size sparql_dataframe-0.2-py3-none-any.whl (3.4 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page