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.
Bound services
We currently support 4 bind services out of the box:
dtf:outlier
dtf:example
dtf:conversion
dtf:cell
The outlier service relies on another endpoint which needs to be set up and accessible.
PREFIX dtf: <https://ontology.rys.app/dt/function/>
SELECT ?cell ?cell_value WHERE {
SERVICE <http://localhost:8000/> {BIND(dtf:cell("data/example.csv", 0, 0) AS ?cell)}
}
SPARQL query showing bind based cell service call.
URI based services
A second, more versatile, way to access a service is provided in the form of an URI. It is possible to query cells by specifying an individual cell in the URI of the service call.
SELECT ?s ?p ?o WHERE {
BIND(ENCODE_FOR_URI("http://ua.be/sdo2l/description/artifacts/artifacts#random-artefact") as ?e)
BIND(uri(concat("http://localhost:8000/cell/?iri=", ?e ,"&row=2&column=2&file_name=example.csv")) as ?c)
SERVICE ?c {?s ?p ?o}
}
SPARQL query showing URI based cell service call.
Installation
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.
Metadata
Release files for spendpoint 0.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| spendpoint-0.5.1.tar.gz | 14.1 kB | Without provenance | Details for spendpoint-0.5.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| spendpoint-0.5.1-py3-none-any.whl | Python 3 | none | any | Details for spendpoint-0.5.1-py3-none-any.whl |
Total release size: 25.6 kB
Release files / spendpoint-0.5.1.tar.gz
| Download URL | spendpoint-0.5.1.tar.gz |
|---|---|
| Size | 14.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ca0a980003aecc40368645d1db05cf9483373b29abc85115a8eace6d7413a8a4
|
|
BLAKE2b-256 checksum How to use checksums |
278443877e695051a31f628c11214b27542d41ac7bb549704c94558c78d26696
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / spendpoint-0.5.1-py3-none-any.whl
| Download URL | spendpoint-0.5.1-py3-none-any.whl |
|---|---|
| Size | 11.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1c7e781572e9f31b37cc77ada8b8afdf5e7ca4d21ef73ba48e06409de4cd3216
|
|
BLAKE2b-256 checksum How to use checksums |
12819450a643248c2714eed2c8a30cbd44c349d1a1cdee94e803c8177a6bb769
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Security for spendpoint 0.5.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.