UNPKG

shex-test

Version:

Shape Expressions library tests.

19 lines (16 loc) 538 B
PREFIX ex: <http://a.example> PREFIX sx: <http://www.w3.org/ns/shex#> PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> [] a sx:Schema ; sx:shapes (<http://a.example/S1>) . <http://a.example/S1> a sx:ShapeDecl ; sx:shapeExpr [ a sx:ShapeOr ; sx:shapeExprs ( [ a sx:ShapeAnd ; sx:shapeExprs ( [ a sx:NodeConstraint ; sx:nodeKind sx:bnode ] [ a sx:Shape ] ) ] [ a sx:ShapeAnd ; sx:shapeExprs ( [ a sx:NodeConstraint ; sx:pattern "^http://a.example/s1$" ] [ a sx:Shape ] ) ] ) ] .