Skip to main content

A modern, lightweight SPARQL 1.1 client for Python

Project description

sparqlite

Tests Coverage Python Versions uv License

A modern, lightweight SPARQL 1.1 client for Python. Built on pycurl for high performance.

Full documentation

Quick start

pip install sparqlite
from sparqlite import SPARQLClient

with SPARQLClient("https://opencitations.net/meta/sparql") as client:
    result = client.query("""
        PREFIX fabio: <http://purl.org/spar/fabio/>
        PREFIX dcterms: <http://purl.org/dc/terms/>

        SELECT ?article ?title WHERE {
            ?article a fabio:JournalArticle ;
                     dcterms:title ?title .
        }
        LIMIT 5
    """)

    for row in result["results"]["bindings"]:
        print(f"{row['title']['value']}")

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

sparqlite-1.0.0.tar.gz (691.1 kB view details)

Uploaded Source

Built Distribution

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

sparqlite-1.0.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file sparqlite-1.0.0.tar.gz.

File metadata

  • Download URL: sparqlite-1.0.0.tar.gz
  • Upload date:
  • Size: 691.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for sparqlite-1.0.0.tar.gz
Algorithm Hash digest
SHA256 aff51a9ad435a6dd66f496f05b5243408da8b86308c6aac09537ab6f574f4abc
MD5 aa567c6be42f15b46516934fd0ba5562
BLAKE2b-256 8604de20137aa5789157b77c63db79f693e82163484f9587a8c0d9870ace2732

See more details on using hashes here.

File details

Details for the file sparqlite-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: sparqlite-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.15 {"installer":{"name":"uv","version":"0.9.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for sparqlite-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5cdf52e6c0201325e7b1fcf4145d66111f6b21c9a4a65ee1203bdc8792a0af84
MD5 41b1db2e578887bf3e028e81fceede9f
BLAKE2b-256 ae4ca436a336fe6ed28d1250e4df9a2e4bd063c248b49afdf2c7afe11d2fa949

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