Skip to main content

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

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)

Source distribution for sparql-file 0.2.0
File Size Uploaded
sparql_file-0.2.0.tar.gz 2.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sparql-file 0.2.0
File Interpreter ABI Platform
sparql_file-0.2.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page