Processor
Processor copied to clipboard
Ontology-driven Linked Data processor and server for SPARQL backends. Apache License.
When `POST` requests attempts to construct a resource that already exists, we throw `ResourceExistsException` which currently maps to a `409 Conflict` error response. HTTP spec seems to say that `303...
Constraint-validate the configured sitemap ontology using `SPINConstraints.check()` during startup and quit if violations are found.
`ENDPOINT`, `GRAPH_STORE`, `ONTOLOGY` etc. `ENV` params would be better as image command arguments, e.g. docker run ... atomgraph/processor --endpoint="https://query.wikidata.org/bigdata/namespace/wdq/sparql" --graph-store="https://query.wikidata.org/bigdata/namespace/wdq/service" --ontology="https://github.com/AtomGraph/Processor/blob/develop/examples/wikidata#"
It should be possible to run tests from command line, using the following arguments: - dataset URI or SPARQL endpoint - sitemap ontology URI - request URI - request headers...
The project could be refactored into a [multi-module Maven project](https://www.baeldung.com/maven-multi-module). Then LinkedDataHub could include a dependency on the server module but not the processor module.