Skip to content

OSTrails/FAIR-assessment-record-validator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FAIR-assessment-record-validator

Embedded SHACL Validator API

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.

Endpoints

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

Example

curl -X POST http://localhost:8000/validate/test/turtle \
  -H "Content-Type: text/plain" \
  --data-binary @example.ttl

Execution

Use Docker:

docker run -p 8000:8000 pabloalarconm/fair-assessment-record-validator:0.3.0

Also, you can use Docker Compose:

version: "3.8"

services:
  api:
    image: pabloalarconm/fair-assessment-record-validator:0.3.0
    ports:
      - "8000:8000"

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 97.1%
  • Dockerfile 2.9%