Skip to content

package to provide easy interface with sparql, built on top of sparqlwrapper

License

Notifications You must be signed in to change notification settings

hassanhajj910/practicalsparql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

practicalSPARQL

Version 0.0.6

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 and sparqlwrapper https://sparqlwrapper.readthedocs.io/en/latest/#.

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.

Check the 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.

About

package to provide easy interface with sparql, built on top of sparqlwrapper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published