--- id: pystardog version: "0.20.0" license: Apache-2.0 license_treatment: permissive maintenance: active --- # pystardog — Python client for Stardog Platform Endpoints and Stardog Cloud License: permissive · Maintenance: active · Downloads: 115.9K/mo ## 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 above — 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 pip install pystardog uv add pystardog poetry add pystardog ## Installing 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_current - Install friction: low - Maintenance: active - Downloads: 115.9K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags stardog python client, knowledge graph query library, semantic database python, rdf query client, stardog cloud api, sparql query python, graph database client, knowledge-graph, semantic-web, sparql [View on SkillFed](https://skillfed.io/packages/pystardog) · [View on PyPI](https://pypi.org/project/pystardog/)