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.2.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.2.tar.gz.
File metadata
- Download URL: sparql_file-0.1.2.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 |
73f1156327e97f9921366b645d468061fd0affd40283a7a3ce12402028e0242f
|
|
| MD5 |
67a902897eb2f18ffc9842cacc91c21e
|
|
| BLAKE2b-256 |
59e9c832a5124641f99daec75fd25fa23c06f6540f9c995ec1445db3152270cf
|
File details
Details for the file sparql_file-0.1.2-py3-none-any.whl.
File metadata
- Download URL: sparql_file-0.1.2-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 |
6a3e164d2792608129b69cc133c52e8f4ebd6d84a57ea85d82713a9e214e1ef8
|
|
| MD5 |
18dd7663f4feb2060e0be16238b4210d
|
|
| BLAKE2b-256 |
77be2e08f0d97bef33a6e82ecfbed32472aa08bb524d31cbe128235acb9a87b5
|