Convert SPARQL results to Pandas dataframes
Project description
# sparql-dataframe
Helper to convert [SPARQLWrapper](https://github.com/RDFLib/sparqlwrapper) results to [Pandas](https://pandas.pydata.org/) [dataframes](https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.html).
[![Build Status](https://travis-ci.org/lawlesst/sparql-dataframe.svg?branch=master)](https://travis-ci.org/lawlesst/sparql-dataframe)
See this [blog post](http://lawlesst.github.io/notebook/sparql-dataframe.html) for examples.
You might also be interested in these related examples from [Su Labs tutorial](https://github.com/SuLab/sparql_to_pandas/blob/master/SPARQL_pandas.ipynb).
## Usage
```
import sparql_dataframe
endpoint = "http://dbpedia.org/sparql"
df = sparql_dataframe.get(endpoint, q)
...
```
## Tests
```
$ python -m unittest
```
Helper to convert [SPARQLWrapper](https://github.com/RDFLib/sparqlwrapper) results to [Pandas](https://pandas.pydata.org/) [dataframes](https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.html).
[![Build Status](https://travis-ci.org/lawlesst/sparql-dataframe.svg?branch=master)](https://travis-ci.org/lawlesst/sparql-dataframe)
See this [blog post](http://lawlesst.github.io/notebook/sparql-dataframe.html) for examples.
You might also be interested in these related examples from [Su Labs tutorial](https://github.com/SuLab/sparql_to_pandas/blob/master/SPARQL_pandas.ipynb).
## Usage
```
import sparql_dataframe
endpoint = "http://dbpedia.org/sparql"
df = sparql_dataframe.get(endpoint, q)
...
```
## Tests
```
$ 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.
Source Distribution
sparql_dataframe-0.1.tar.gz
(1.8 kB
view hashes)
Built Distribution
Close
Hashes for sparql_dataframe-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e14e79f5a4bbaf0adb43e25e88e3ea0da42588bf4e4ef7d9e57aed005eb512b7 |
|
MD5 | 8b9b282c7caa7c8460249d1238a6cb14 |
|
BLAKE2b-256 | 5fc616b4fbb5ff16a35596e0e680c9fba38e09883976fd8a98bd78be4d1bbd5a |