A lightweight FastAPI-based SHACL validation service for validating RDF data (Turtle or JSON-LD) against predefined SHACL shapes.
The service embeds SHACL schemas directly in code and delegates validation to an external SHACL engine (rudof), returning a structured validation report.
Turtle endpoints, accepted as raw text (text/plain):
-
POST /validate/test/turtle
-
POST /validate/testResult/turtle
-
POST /validate/testResultSet/turtle
-
POST /validate/metric/turtle
-
POST /validate/benchmark/turtle
JSON-LD endpoints, accepted as application/json:
-
POST /validate/test/jsonld
-
POST /validate/testResult/jsonld
-
POST /validate/testResultSet/jsonld
-
POST /validate/metric/jsonld
-
POST /validate/benchmark/jsonld
curl -X POST http://localhost:8000/validate/test/turtle \
-H "Content-Type: text/plain" \
--data-binary @example.ttlUse Docker:
docker run -p 8000:8000 pabloalarconm/fair-assessment-record-validator:0.3.0Also, you can use Docker Compose:
version: "3.8"
services:
api:
image: pabloalarconm/fair-assessment-record-validator:0.3.0
ports:
- "8000:8000"