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

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.6.tar.gz (5.0 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.6-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: practicalSPARQL-0.0.6.tar.gz
  • Upload date:
  • Size: 5.0 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.6.tar.gz
Algorithm Hash digest
SHA256 1b0d9c3c5421743ffb5c05afadae45a71aef5f852b5269dcd3bd2b8066e4b2f2
MD5 0e86704ca7201165a604b891a52a7fff
BLAKE2b-256 81474083dc5c7fd125e96a1ad62f37471cd87913f4ef533d8f30666ea06b27e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for practicalSPARQL-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 74133fbd371f2bc5782a92794e9a228d62100558e8f8c0f26fe1e31b78356a24
MD5 36c3e98c57d31d4cae634c4d8b515243
BLAKE2b-256 4629b337a72ba15ee0f338d2c1a52c7a90a1dc839636bc60bb44e8b64fca5d21

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