A simple SPARQL 1.1 endpoint based on a file.
Project description
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.py
# or
$ GRAPH_FILE=graph.ttl poetry run uvicorn sparql_file: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
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
sparql_file-0.1.1.tar.gz
(2.0 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 sparql_file-0.1.1.tar.gz.
File metadata
- Download URL: sparql_file-0.1.1.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.4 CPython/3.13.6 Linux/6.15.9-201.fc42.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b5e32db4bf17e6da5220f011da125923011e7bdab2d9dbf9991627928fe7a1e
|
|
| MD5 |
649346a4e36e10a78e92c3fd95edd650
|
|
| BLAKE2b-256 |
09013f7dfb58916ad344d74b70b43491241a21acd00dc4cc783b4decc7f3deda
|
File details
Details for the file sparql_file-0.1.1-py3-none-any.whl.
File metadata
- Download URL: sparql_file-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.4 CPython/3.13.6 Linux/6.15.9-201.fc42.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18406f8d1932fc3d37c8870b78470778b4b30c035ccf8e506371b788f70a3cf6
|
|
| MD5 |
85c9398e9bd331e277163237ce88d22b
|
|
| BLAKE2b-256 |
e37ef32851079e24f2509179fbc051144f436c6d0c8f34fda274651dd8e8f7cb
|