PyShExy API

PyShExY is an api to validate RDF entities against ShEx schemas using PyShEx

The endpoint of the api is https://tools.wmflabs.org/pyshexy/api

The api takes 5 possible variables:

if both entity and sparql are supplied, then the sparql query will be used if both entityschema and shexc are supplied, then entityschema will be used If endpoint is not specified, the api defaults to https://query.wikidata.org/bigdata/namespace/wdq/sparql, the WDQS endpoint.

The api returns json as follows:

each result has the following properties:

A sample query is https://tools.wmflabs.org/pyshexy/api?entityschema=E10&entity=Q4573

The response produced is {"length": 1, "results": [{"focus": "http://www.wikidata.org/entity/Q4573", "reason": "", "result": true, "start": "human"}]}