pystardog
Python client for Stardog Platform Endpoints and Stardog Cloud
What it is and what it does
Pystardog is a Python HTTP client for the Stardog knowledge graph platform, enabling developers to query and manage RDF data stored in Stardog servers or Stardog Cloud. It wraps HTTP communication with requests and requests-toolbelt, and integrates with rdflib for RDF data handling. The package is designed for both local Stardog instances and cloud deployments, with optional cloud-specific functionality available via an extras install.
Typical usage involves establishing a connection to a Stardog endpoint, executing SPARQL queries, and processing results. The library handles authentication, request formatting, and response parsing, abstracting away low-level HTTP details. It supports Python 3.9 through 3.13 and is actively maintained.
Use it for:
- Query a Stardog knowledge graph from a Python application to retrieve semantic data.
- Integrate Stardog Cloud's natural language query features into Python scripts.
- Build data pipelines that fetch RDF triples and process them with rdflib.
- Automate SPARQL queries against a local or remote Stardog server.
- Prototype semantic search or reasoning applications backed by Stardog.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python client library for querying and managing Stardog knowledge graph servers and Stardog Cloud instances.
Yes. The package has low install friction, active maintenance, permissive licensing, and no known vulnerabilities. It is the official Python client for Stardog and is well-suited for anyone building applications that need to query or manage knowledge graphs on the Stardog platform.
Install
pystardog on PyPI
pip
pip install pystardoguv
uv add pystardogpoetry
poetry add pystardogInstalling pystardog
Before you install
Low install friction with a pure-Python wheel distribution. Actively maintained with recent releases; last commit on 2026-05-18 and latest release on 2026-03-18. Supports current Python versions (3.9 through 3.13).
License in practice
Licensed under Apache-2.0 (permissive), allowing commercial and private use with minimal restrictions—suitable for most production and proprietary projects.
Quickstart
pip install pystardog
import pystardog
# Connect to a Stardog endpoint and execute a query
conn = pystardog.Connection(endpoint='http://localhost/mydb')
results = conn.query('SELECT ?s ?p ?o WHERE { ?s ?p ?o } LIMIT 10')
Requires Python 3.9 or later; requires a running Stardog server or Stardog Cloud account to connect to.
Verify before relying
- Exact API surface and method signatures for querying and managing Stardog endpoints.
- Whether the package supports SPARQL Update operations or only SELECT/CONSTRUCT queries.
- Authentication mechanism details (API key, username/password, OAuth) for Stardog Cloud.
- Performance characteristics for large result sets or long-running queries.
- How rdflib integration works in practice for RDF data handling.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — requests, requests-toolbelt, rdflib |
| Maintenance | actively maintained — 149 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 115,945/month — #12,231 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: pystardog-0.20.0-py3-none-any.whl
Tags
More Front-Ends packages
SQLAlchemy is a Python SQL toolkit and Object…
permissive · top 100 on PyPI
psycopg2-binarypsycopg2-binary is a PostgreSQL database…
copyleft · top 1,000 on PyPI
alembicAlembic generates and manages database schema…
permissive · top 1,000 on PyPI
weaviate-clientA Python client library for connecting to and…
permissive · top 1,000 on PyPI
databricks-sql-connectorA Python client library that connects to…
permissive · top 1,000 on PyPI
psycopgPsycopg 3 is a PostgreSQL database adapter for…
copyleft · top 1,000 on PyPI
pymanticPymantic parses and queries RDF and semantic…
permissive · top 15,000 on PyPI
pyoxigraphPyoxigraph is a Python library that provides…
permissive · top 15,000 on PyPI
SPARQLWrapperSPARQLWrapper provides a Python interface to…
unclear · top 5,000 on PyPI
sparqlslurperTranslates rdflib Graph.triples() calls into…
permissive · top 15,000 on PyPI
owlready2Owlready2 is a Python module for…
copyleft · top 15,000 on PyPI
semanticscholarProvides a typed Python client for querying…
permissive · top 15,000 on PyPI
wolframalphaProvides a Python client for querying the…
permissive · top 15,000 on PyPI
pyshaclValidates RDF graphs against SHACL shape…
permissive · top 5,000 on PyPI
neo4j-graphragBuilds graph retrieval-augmented generation…
permissive · top 15,000 on PyPI
azure-kusto-dataQuery and interact with Microsoft Azure Kusto…
permissive · top 5,000 on PyPI