Click to close

ShEx

Data Validation Workbench

This demo is out of date with repect to ShEx2; try the ShEx2 online demo.

Rendering

Validation:

as

Translations

SPARQL:
View as:

Validation messages:

Validation complete.
2.0 triples, 3 ms, 6.7e+2 triples/s

Validation Results

result navigation enabled — use ctrl-↑ and ctrl-↓ to browse results.

<Issue1> matches <IssueShape>:
PASS { ex:reportedBy @<UserShape> %<http://shexspec.github.io/extensions/Test/>{ fail(o) %} matched by <Issue1> ex:reportedBy <User2> . PASS { foaf:name xsd:string %<http://shexspec.github.io/extensions/Test/>{ print("some message") %} matched by <User2> foaf:name "Bob" . } }No remaining triples.



Schema (ShEx):

Schema parsed.0.36 kB, 9 ms, 40 kB/s
PREFIX ex: <http://ex.example/#>
PREFIX foaf: <http://xmlns.com/foaf/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX test: <http://shexspec.github.io/extensions/Test/>

%test:{  %}

start = <IssueShape>

<IssueShape> {
    ex:reportedBy @<UserShape>
        %test:{ fail(o) %},
}

<UserShape> {
    foaf:name xsd:string
        %test:{ print("some message") %}
}
PREFIX ex: <http://ex.example/#>
PREFIX foaf: <http://xmlns.com/foaf/>

<Issue1> ex:reportedBy <User2> .
<User2> foaf:name "Bob" .