Skip to content

Commit

Permalink
+ npm run test
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Prud'hommeaux committed Aug 28, 2022
1 parent f551487 commit 630f48b
Show file tree
Hide file tree
Showing 4 changed files with 298 additions and 3,085 deletions.
8 changes: 4 additions & 4 deletions doc/ShExJ.jsg
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ Schema {
imports:[IRIREF+]?
startActs:[SemAct+]? start:shapeExprOrRef? shapes:[ShapeDecl+]?
}
ShapeDecl { id:shapeExprLabel abstract:BOOL? specializes:[IRIREF+]? shapeExpr:shapeExpr }
ShapeDecl { id:shapeDeclLabel abstract:BOOL? restricts:[shapeExprOrRef+]? shapeExpr:shapeExpr }

// Shape Expressions
shapeExpr = ShapeOr | ShapeAnd | ShapeNot | NodeConstraint | Shape | ShapeExternal;
shapeExprOrRef = shapeExpr | shapeExprRef;
shapeExprOrRef = shapeExpr | shapeDeclRef;
ShapeOr { shapeExprs:[shapeExprOrRef{2,}] }
ShapeAnd { shapeExprs:[shapeExprOrRef{2,}] }
ShapeNot { shapeExpr:shapeExprOrRef }
shapeExprRef = shapeExprLabel ;
shapeExprLabel = IRIREF | BNODE ;
shapeDeclRef = shapeDeclLabel ;
shapeDeclLabel = IRIREF | BNODE ;
NodeConstraint { nodeKind:("iri"|"bnode"|"nonliteral"|"literal")? datatype:IRIREF? xsFacet* values:[valueSetValue+]? }
ShapeExternal { }

Expand Down
4 changes: 3 additions & 1 deletion doc/ShExR.shex
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ start=@<#Schema>
sx:nodeKind [sx:iri sx:bnode sx:literal sx:nonliteral] ? ;
sx:datatype IRI ? ;
&<#xsFacets> ;
sx:values @<#valueSetValueList1Plus> ?
sx:values @<#valueSetValueList1Plus> ? ;
sx:semActs @<#SemActList1Plus> ? ;
sx:annotation @<#AnnotationList1Plus> ?
}

<#Shape> CLOSED {
Expand Down
Loading

0 comments on commit 630f48b

Please sign in to comment.