shex-test
Version:
Shape Expressions library tests.
44 lines (43 loc) • 998 B
JSON
{
"type": "Schema",
"shapes": [
{ "type": "ShapeDecl",
"id": "http://example.org/S",
"shapeExpr": {
"type": "ShapeAnd",
"shapeExprs": [
"http://example.org/T",
"http://example.org/U"
]
} },
{ "type": "ShapeDecl",
"id": "http://example.org/T",
"shapeExpr": {
"type": "Shape",
"expression": {
"type": "EachOf",
"expressions": [
{
"type": "TripleConstraint",
"predicate": "http://example.org/a",
"valueExpr": "http://example.org/S"
},
{
"type": "TripleConstraint",
"predicate": "http://example.org/c"
}
]
}
} },
{ "type": "ShapeDecl",
"id": "http://example.org/U",
"shapeExpr": {
"type": "Shape",
"expression": {
"type": "TripleConstraint",
"predicate": "http://example.org/b"
}
} }
],
"@context": "http://www.w3.org/ns/shex.jsonld"
}