shex-test
Version:
Shape Expressions library tests.
55 lines (54 loc) • 1.4 kB
JSON
{
"type": "Schema",
"shapes": [
{
"type": "ShapeDecl",
"id": "http://a.example/S1",
"shapeExpr": {
"type": "Shape",
"closed": true,
"expression": {
"type": "TripleConstraint",
"predicate": "http://a.example/p1",
"valueExpr": "http://a.example/List0PlusIri"
}
} },
{
"type": "ShapeDecl",
"id": "http://a.example/List0PlusIri",
"shapeExpr": {
"type": "ShapeOr",
"shapeExprs": [
{
"type": "NodeConstraint",
"values": [
"http://www.w3.org/1999/02/22-rdf-syntax-ns#nil"
]
},
{
"type": "Shape",
"closed": true,
"expression": {
"type": "EachOf",
"expressions": [
{
"type": "TripleConstraint",
"predicate": "http://www.w3.org/1999/02/22-rdf-syntax-ns#first",
"valueExpr": {
"type": "NodeConstraint",
"nodeKind": "iri"
}
},
{
"type": "TripleConstraint",
"predicate": "http://www.w3.org/1999/02/22-rdf-syntax-ns#rest",
"valueExpr": "http://a.example/List0PlusIri"
}
]
}
}
]
} }
],
"@context": "http://www.w3.org/ns/shex.jsonld"
}