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.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.3.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.1.3-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sparql_file-0.1.3.tar.gz
  • Upload date:
  • Size: 2.1 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

Hashes for sparql_file-0.1.3.tar.gz
Algorithm Hash digest
SHA256 10818b985cc5dca4371f8e705526bca00cfb90e8051eb709efbbfd438305992c
MD5 1387303bf3dbbb99396d8827fd9a089a
BLAKE2b-256 7f38446580d62fd9c91d547f7312e630e1c1d129d53f352314962f450d713d0e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sparql_file-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.1 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

Hashes for sparql_file-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 5cf97b6d150db41e303869bb5c26df157580b37d2697b26c8b12aea47bbbe63f
MD5 92af6fb0f1b9f61a93b2db029fa9a557
BLAKE2b-256 6aa4ec1f459f486009fae6702cb79fd2ed116b8fcc028af9705ae1142309cc6e

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