Jupyter/IPython Extension for Sparql Pandas dataframe queries
Project description
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 ?capital ?populationTotal WHERE {
?capital dct:subject dcb:Capitals_in_Europe ;
dbp:populationTotal ?populationTotal ;
foaf:name ?name.
}
LIMIT 5
The variable foo
is now a Pandas dataframe of SPARQL results:
foo.plot.barh('name', 'populationTotal').invert_yaxis()
Acknowledgements
This package is inspired by ipython_sparql.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for ipython-sparql-pandas-1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d759e55fdbfb42922d5bd2eb350364b87932336ae47725874bc66199f4bb9b75 |
|
MD5 | 5c884eb55cf8bb3498bdf4449462fde2 |
|
BLAKE2b-256 | 522bc573afbb4ab404864e3443c3afd5f8915443acdc4216eda67a4f604cd19a |
Close
Hashes for ipython_sparql_pandas-1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bb8691bd3e7134dc879751df416fe926612bf62deba19716c9d47c51696aae4 |
|
MD5 | 9a84c14369dc174b12ac37148d73bc59 |
|
BLAKE2b-256 | d09f5eb5c067dd55ac69beb27368afca80ebffc89286f1eb3093f470b6f822fe |