SPARQL File
Serve an RDF file as an RDFLib Graph through a SPARQL endpoint served as fastapi with rdflib-endpoint (github).
CLI Installation
$ pipx install sparql-file[cli]
Usage
$ sparql-file --help
Development Install
$ task install
or
$ poetry install
Run Locally
$ GRAPH_FILE=graph.ttl task serve:dev
# or
$ GRAPH_FILE=graph.ttl task serve:uvicorn
or
$ GRAPH_FILE=graph.ttl poetry run fastapi dev sparql_file/env.py
# or
$ GRAPH_FILE=graph.ttl poetry run uvicorn sparql_file.env:app --host '' --port 8080
Run With Podman/Docker (local build)
$ task build
$ podman run -d --rm -v /path/to/graph_file.ttl:/data/graph.ttl:z -p 8080:8080 localhost/sparql-file:latest
Run With Podman/Docker (ghcr.io registry build)
$ GRAPH_FILE=graph.ttl task serve:container
or
$ podman run -d --rm -e GRAPH_FILE="/data/graph.ttl" -v /path/to/graph_file.ttl:/data/graph.ttl:z -p 8080:8080 ghcr.io/aksw/sparql-file:main
Metadata
Release files for sparql-file 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sparql_file-0.2.0.tar.gz | 2.1 kB | Without provenance | Details for sparql_file-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sparql_file-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for sparql_file-0.2.0-py3-none-any.whl |
Total release size: 5.3 kB
Release files / sparql_file-0.2.0.tar.gz
| Download URL | sparql_file-0.2.0.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1aa53ab7bddf6aa9f6fc569200611dba80c5d3bd64dcb1efe817dee02af1d0a3
|
|
BLAKE2b-256 checksum How to use checksums |
4399918e82a4ac8b897cb4806c4ab8987187c098592bab02d283042b9f187b2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.4 CPython/3.13.7 Linux/6.16.3-200.fc42.x86_64
|
Release files / sparql_file-0.2.0-py3-none-any.whl
| Download URL | sparql_file-0.2.0-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8ae28d407c2391dd94c5f44c4ce02b0ec729d7e5df1752b87e0527671ae23b0b
|
|
BLAKE2b-256 checksum How to use checksums |
959974ec04a0bc5fba9c629250058f3111d5db99b4e3fe970e0be857262e40f5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.4 CPython/3.13.7 Linux/6.16.3-200.fc42.x86_64
|
Security for sparql-file 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.