shexSpec / shape-map

ShapeMap structure and language specification
MIT License
1 stars 3 forks source link

Prefixed names missing from productions? #19

Open blake-regalia opened 4 years ago

blake-regalia commented 4 years ago

iri ::= IRIREF, but I believe it should be IRIREF | PNAME_LN... and the productions PNAME_NS and PNAME_LN included in the grammar.

ericprud commented 4 years ago

The first ShapeMap spec was supposed to avoid the controversial implicit inclusion of prefixes and bases from other contexts (the data and schema). That said, it seems to be what people expect so maybe it's time to stop being so shy.

I started to draft this in yacker but have to run out the door. I think the behavior you want is implemented in the shex.js grammar (reference, declaration). Feel free to hack on that yacker grammar if you get to it before I do.