A modern, lightweight SPARQL 1.1 client for Python
Project description
sparqlite
A modern, lightweight SPARQL 1.1 client for Python. Built on pycurl for high performance.
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.1.0.tar.gz
(691.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sparqlite-1.1.0.tar.gz.
File metadata
- Download URL: sparqlite-1.1.0.tar.gz
- Upload date:
- Size: 691.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c02339e9faa0a98e35c65afcf72fb1da233b30e9167382e15fad15af7c95b248
|
|
| MD5 |
0f49653ee2cd5b80e9d0cc7d19777f8a
|
|
| BLAKE2b-256 |
8578ff384a8e8c3cabf473470487079b62acd94fd065a14820bd97a7d9b8aa8c
|
File details
Details for the file sparqlite-1.1.0-py3-none-any.whl.
File metadata
- Download URL: sparqlite-1.1.0-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e7a2d4afde770fba1e41c5f7c1fecf1a203f98111a51ed3f98449884de277fee
|
|
| MD5 |
00f71e9aa7423ec4d4232dad17460999
|
|
| BLAKE2b-256 |
56dab7da6af99aeeb3280271f6bc836e7e93427622e6c8efceefd6c7a1010e53
|