shexSpec / shex

ShEx language issues, including new features for e.g. ShEx2.1
24 stars 8 forks source link

[Validating RDF Data] Example 68: External shape #98

Open mistermboy opened 4 years ago

mistermboy commented 4 years ago

This is the example 68 of the Validating RDF Data book:

:Product { 
    schema:productId xsd:string ;  
    schema:category EXTERNAL // :service <http://categories.org/>  
}

I wonder if the keyword "EXTERNAL" is correct because, looking at grammars, the only rule that accepts "EXTERNAL" is "shapeExprDecl":

[9]     shapeExprDecl    ::= shapeExprLabel (shapeExpression|"EXTERNAL")

Master branch grammar Shex2.1 branch grammar Shex.io grammar