shex-test
Version:
Shape Expressions library tests.
22 lines (21 loc) • 588 B
JSON
{ "@context": "http://www.w3.org/ns/shex.jsonld",
"type": "Schema",
"shapes": [
{ "type": "ShapeDecl",
"id": "http://a.example/S1",
"shapeExpr": {
"type": "ShapeOr",
"shapeExprs": [
{ "type": "ShapeAnd",
"shapeExprs": [
{ "type": "NodeConstraint", "nodeKind": "bnode" },
{ "type": "Shape" }
] },
{ "type": "ShapeAnd",
"shapeExprs": [
{ "type": "NodeConstraint",
"pattern": "^http://a.example/s1$" },
{ "type": "Shape" }
] }
] } }
] }