Skip to main content

A simple interface to interact with a GraphDB instance

Project description

graph_db_interface

PyPI version Python License

This repository acts as an interface to abstract SPARQL queries to callable methods to interact with a running GraphDB instance in an easier way.

Installation

To install the current PyPI release, simply run the following command using your preferred python interpreter:

pip install graph-db-interface

Or after cloning this repository you can also use poetry to install the package:

poetry install

Getting Started

The package uses a single class named GraphDB. To use the interface, simply generate an object from this class:

from graph_db_interface import GraphDB

credentials = GraphDBCredentials(
    base_url=<your_graph_db_url>,
    username=<your_graph_db_user>
    password=<your_graph_db_password>
    repository=<your_selected_repository_id>
)

myDB = GraphDB(
    credentials=credentials
)

License

The package is licensed under the MIT license.

Acknowledgements

This package is developed as part of the INF subproject of the CRC 1574: Circular Factory for the Perpetual Product. This work is therefore supported by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) [grant-number: SFB-1574-471687386]

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

graph_db_interface-1.1.0.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

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

graph_db_interface-1.1.0-py3-none-any.whl (26.8 kB view details)

Uploaded Python 3

File details

Details for the file graph_db_interface-1.1.0.tar.gz.

File metadata

  • Download URL: graph_db_interface-1.1.0.tar.gz
  • Upload date:
  • Size: 20.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for graph_db_interface-1.1.0.tar.gz
Algorithm Hash digest
SHA256 6263b4de08e4abac275cad1ecb4f46048362289b51f71fe2507ee581d1b2c659
MD5 9fccc5bcf79c44fa96bb3449ca4c5494
BLAKE2b-256 508521ebf4cf1d2633b5ec86d54b54b74d3b1ea76cd60857aae19e10eb781dc8

See more details on using hashes here.

Provenance

The following attestation bundles were made for graph_db_interface-1.1.0.tar.gz:

Publisher: publish-to-pypi.yml on JaFeKl/graph_db_interface

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file graph_db_interface-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for graph_db_interface-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 37a1a7633daa43b9daf98ca2f53b2f840489634b39eedddeaab1992e29b3cc52
MD5 3456a855d0d08fc943922d79b101c464
BLAKE2b-256 7312aa9e0cbec9a0982cb318f88aa7b73d7f405f19e1e94f4dd0144a03aa9f79

See more details on using hashes here.

Provenance

The following attestation bundles were made for graph_db_interface-1.1.0-py3-none-any.whl:

Publisher: publish-to-pypi.yml on JaFeKl/graph_db_interface

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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