ShExStatements provides a modern FastAPI backend and a legacy compatibility endpoint.
- Local backend:
http://localhost:8000 - OpenAPI docs:
http://localhost:8000/docs
Converts text content in ShExStatements format.
Request body example:
{
"content": "@shape|prop|value",
"delimiter": "|",
"skip_header": false,
"output_format": "shex"
}Example:
curl -X POST http://localhost:8000/api/v1/convert \
-H "Content-Type: application/json" \
-d '{"content":"@shape|prop|value","delimiter":"|","skip_header":false,"output_format":"shex"}'Converts uploaded files. Supported formats:
.csv.xlsx.xls.ods
Example:
curl -X POST http://localhost:8000/api/v1/convert/file \
-F "file=@examples/language.csv" \
-F "delimiter=," \
-F "skip_header=false" \
-F "output_format=shex"Returns service status, version, and Python runtime version.
Example:
curl http://localhost:8000/api/v1/healthPOST /api/v1/validatePOST /api/v1/export
See http://localhost:8000/docs for full schemas and response formats.
The root endpoint / is kept for backward compatibility.
GET /returns API info (or redirects HTML requests to/docs).POST /accepts the old payload style when clients sendAccept: application/json.
Legacy payload format (from examples/api/tvseries.json):
[
"|",
"wd|<http://www.wikidata.org/entity/>|||\n@tvseries|wdt:P31|wd:Q5398426|# instance of a tvseries\n"
]