PREFIX sx: PREFIX xsd: [] a sx:Schema ; sx:shapes ( ) . a sx:ShapeDecl ; sx:abstract true ; sx:shapeExpr [ a sx:ShapeAnd ; sx:shapeExprs ( [ a sx:NodeConstraint ; sx:pattern "sA..........$" ] [ a sx:Shape ; sx:expression [ a sx:TripleConstraint ; sx:predicate ; sx:valueExpr [ a sx:NodeConstraint ; sx:values (0 1 2 3 4 5 6 7 8 9) ]; sx:min 1; sx:max -1 ] ] ) ] . a sx:ShapeDecl ; sx:shapeExpr [ a sx:ShapeAnd ; sx:shapeExprs ( [ a sx:Shape ; sx:extends ( ) ] [ a sx:NodeConstraint ; sx:pattern "s.B.........$" ] [ a sx:Shape ; sx:expression [ a sx:TripleConstraint ; sx:predicate ; sx:valueExpr [ a sx:NodeConstraint ; sx:values (0 1 3 4 5 6 7 8 9) ]; sx:min 1; sx:max -1 ] ] ) ] .