Skip to main content

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/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

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.2.0.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sparql_file-0.2.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file sparql_file-0.2.0.tar.gz.

File metadata

  • Download URL: sparql_file-0.2.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.13.7 Linux/6.16.3-200.fc42.x86_64

File hashes

Hashes for sparql_file-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1aa53ab7bddf6aa9f6fc569200611dba80c5d3bd64dcb1efe817dee02af1d0a3
MD5 3656427f01d0e85ebaf6fa2d40edffe9
BLAKE2b-256 4399918e82a4ac8b897cb4806c4ab8987187c098592bab02d283042b9f187b2d

See more details on using hashes here.

File details

Details for the file sparql_file-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: sparql_file-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.13.7 Linux/6.16.3-200.fc42.x86_64

File hashes

Hashes for sparql_file-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8ae28d407c2391dd94c5f44c4ce02b0ec729d7e5df1752b87e0527671ae23b0b
MD5 372f818bd3a0c7409c304a3cbe6c9c59
BLAKE2b-256 959974ec04a0bc5fba9c629250058f3111d5db99b4e3fe970e0be857262e40f5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page