Metadata-Version: 2.1
Name: practicalSPARQL
Version: 0.0.3
Summary: Small wrapper to simplify the interaction with SPARQL endpoints. Built on top of sparqlwrapper and RDFlib
Home-page: https://github.com/hassanhajj910/practicalsparql
Author: hassanhajj910@gmail.com
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE.txt

# practicalSPARQL

## Install using pip
``` 
pip install practicalsparql
```
## Install using conda from conda-forge
```
conda install -c conda-forge practicalsparql
```


## Some details 
This package provdes some functions to easily interact with a SPARQL endpoint using one liners.
The package is built on top of rdflib [https://rdflib.readthedocs.io/en/stable/index.html](https://rdflib.readthedocs.io/en/stable/index.html) and sparqlwrapper [https://sparqlwrapper.readthedocs.io/en/latest/#](https://sparqlwrapper.readthedocs.io/en/latest/#).<br>

practicalSPARQL has two main classes, practicalWrapper which inherits from sparqlWrapper with a couple of extra functions to query some values directly to a dataframe, as well as some function to quickly construct TTL files. Error handeling is mostly done within these function to allow their quick usage with minimal code. <br>

Check the [tutorial.ipynb](tutorial.ipynb) for some examples; which are executed again the Wikidata sparql endpoint. Some example queries are saved as .sparql files int he queries folder. 





