Skip to content

SPARQL Endpoint

pycottas-endpoint can quickly serve COTTAS files through a SPARQL endpoint.

Installation

Install from PyPI with:

pip install pycottas-endpoint

The uvicorn and gunicorn dependencies are not included by default, if you want to install them use the optional dependency web:

pip install "pycottas-endpoint[web]"

If you want to use pycottas-endpoint as a CLI you can install with the optional dependency cli:

pip install "pycottas-endpoint[cli]"

Run SPARQL Endpoint

Use pycottas-endpoint as a command line interface (CLI) in your terminal to quickly serve one or multiple COTTAS files as a SPARQL endpoint.

You can use wildcard to provide multiple files, for example to serve all COTTAS files in the current directory you could run:

pycottas-endpoint serve '*.cottas'

Then access the YASGUI SPARQL editor on http://localhost:8000

Further Reading

See all the information in the pycottas-endpoint GitHub repository.