Skip to main content

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

Project description

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 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.3.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.3-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for practicalSPARQL-0.0.3.tar.gz
Algorithm Hash digest
SHA256 1cb45d1eb485d05e489e70e6e29aae82c05b1e63c5d6081321f3c6ac43d953e1
MD5 0bb72b1ac6d977bb853e12e176ec7573
BLAKE2b-256 2ecdbba2bc7f10f541b39d5b67110200a8d18d1b3334f05215040036dce1e481

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for practicalSPARQL-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 76a1842aeb095205478f6051583476d4abc8b5dcd7bf3abfe2fa7ee2bc60ed9a
MD5 d5f736fcef721594a8e12f973b7c7fe7
BLAKE2b-256 1839c48fcfcdc238e5d0348e8f7b2bc4541f5fb039359cc11ac6fc3593fee7e7

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