SPARQL endpoint for the DTDesign project.

Arkadiusz Ryś 2dcedb93f3 Update changelog version 0.4.0 2 år sedan
data 07246dc30c Call module instead of uvicorn in docker container 2 år sedan
docs 3c3d741781 Create releng boilerplate 2 år sedan
spendpoint 2dcedb93f3 Update changelog version 0.4.0 2 år sedan
tests 2383075958 Create conversion service 2 år sedan
.dockerignore 3c3d741781 Create releng boilerplate 2 år sedan
.editorconfig e5ab1f011b Fix editor config 2 år sedan
.gitignore c8eeedbedd Add .idea to list of ignored files 2 år sedan
.gitlab-ci.yml c22b8473e4 Make CI more flexible 2 år sedan
AUTHORS.rst 3c3d741781 Create releng boilerplate 2 år sedan
Dockerfile 07246dc30c Call module instead of uvicorn in docker container 2 år sedan
HISTORY.rst b25493d67d Update changelog version 0.3.0 2 år sedan
LICENSE 3c3d741781 Create releng boilerplate 2 år sedan
README.rst fcb15dbf2b Expand README 2 år sedan
default.nix 1c3398b9b2 Improve nix script 2 år sedan
pyproject.toml f174a25a26 Make application configurable 2 år sedan
requirements.txt f174a25a26 Make application configurable 2 år sedan
tasks.py e3c3cc778c Create configuration file 2 år sedan

README.rst

##########
SpEndPoint
##########

Creates a SPARQL endpoint supporting custom services.
The default access point is at `http://127.0.0.1:8000`.
This endpoint can be configured in the `configuration.toml `_ file.
The docker image created uses uvicorn the host the application at `0.0.0.0:80`. Feel free to map this to any port of your liking.

We currently support 3 services out of the box:

.. code-block::

dtf:outlier
dtf:example
dtf:conversion

The outlier service relies on `another endpoint `_ which needs to be set up and accessible.

Installation
------------

..
.. code-block:: shell

pip install spendpoint

or

.. code-block:: shell

pip install --index-url https://pip:glpat-m8mNfhxZAUnWvy7rLS1x@git.rys.one/api/v4/projects/262/packages/pypi/simple --no-deps spendpoint

Configuration
-------------

A configuration file at `configuration.toml `_ holds all user configurable data.
You can set the `host` and `port` the server will listen on.
A more advanced use is to import extra services.
These services need to be defined in the `service.py` file as well.