Skip to main content

IPython Sparql Pandas Extension

Jupyter/IPython Extension for Sparql Pandas dataframe queries.

Install

Via pip:

pip install ipython-sparql-pandas

Usage

Load the extension:

%load_ext ipython_sparql_pandas

Query:

%%sparql http://dbpedia.org/sparql/ -qs foo
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX dcb: <http://dbpedia.org/resource/Category:>
PREFIX dbp: <http://dbpedia.org/property/>

SELECT DISTINCT ?name ?capital ?populationTotal WHERE {
    ?capital dct:subject dcb:Capitals_in_Europe ;
             dbp:populationTotal ?populationTotal ; 
             foaf:name ?name. 
}
ORDER BY DESC(?populationTotal)
LIMIT 5

The variable foo is now a Pandas dataframe of SPARQL results:

foo.plot.barh('name', 'populationTotal').invert_yaxis()

plot

Acknowledgements

This package is inspired by ipython_sparql.

Metadata

Release files for ipython-sparql-pandas 1.6.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ipython-sparql-pandas 1.6.1
File Size Uploaded Provenance Actions
ipython_sparql_pandas-1.6.1.tar.gz 3.8 kB Without provenance Details for ipython_sparql_pandas-1.6.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ipython-sparql-pandas 1.6.1
File Interpreter ABI Platform Actions
ipython_sparql_pandas-1.6.1-py2.py3-none-any.whl Python 3, Python 2 none any Details for ipython_sparql_pandas-1.6.1-py2.py3-none-any.whl

Total release size: 8.0 kB

Release files / ipython_sparql_pandas-1.6.1.tar.gz

Download URL ipython_sparql_pandas-1.6.1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7af62d4e6544fd5e954309a641d334755755dc23233c8043753bb6085b7af711
BLAKE2b-256 checksum
How to use checksums
3bc05a9477dbf48fe7e23b0a9c3ef9d75552a338d7bb8b93c4a995f58d8b3704
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / ipython_sparql_pandas-1.6.1-py2.py3-none-any.whl

Download URL ipython_sparql_pandas-1.6.1-py2.py3-none-any.whl
Size 4.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
c00f8f5ba98ef90321cb738d48bb4cefb18b639dc7e153132a7de6a1881b42f2
BLAKE2b-256 checksum
How to use checksums
5a95ad78beba86de3769ceb304e8b5636115b38bf0df98c41c373d2f0505fa00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for ipython-sparql-pandas 1.6.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page