Skip to main content

Small wrapper to simplify the interaction with SPARQL endpoints. Built on top of sparqlwrapper and RDFlib

Project description

practicalSPARQL

Version 0.0.4

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.

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

practicalSPARQL-0.0.4.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

practicalSPARQL-0.0.4-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file practicalSPARQL-0.0.4.tar.gz.

File metadata

  • Download URL: practicalSPARQL-0.0.4.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for practicalSPARQL-0.0.4.tar.gz
Algorithm Hash digest
SHA256 26e827a27415e663abc55a0d515b8c38a51f9fe48a8f041a37242d43d261d8fd
MD5 91665d77686ed558f5d2ebf9e0002659
BLAKE2b-256 1ae221270925f0c4734bb7c8088785207bb37446eded8e72c4ad4a9cb42edaf5

See more details on using hashes here.

File details

Details for the file practicalSPARQL-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for practicalSPARQL-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ab0f7b2d1c8cf195de3beea152cd9497a2ba19ddae26d60861b42232f0df4177
MD5 8bef8e5a589dc372961ece0006c509a5
BLAKE2b-256 953864bc85fe7214e26fc16fce5faaaef375fb8d9d8c3b8904373d4e4b38b1e0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page