shexSpec / shex

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

What shape should a resultShapeMap report for START? #70

Open ericprud opened 6 years ago

ericprud commented 6 years ago

resultShapeMap.shape is a JSON-LD @id so IRIs are literals (e.g. "http://a.example/"), bnodes are literals with a leading ":" (e.g. `":b1") and literals are an object (e.g.{ "value": "my string", "language": "en" }). What then should be the representation of the START identifier? shex.js uses [{ "term": "START" }`](https://github.com/shexSpec/shex.js/blob/master/lib/ShExValidator.js#L13).

gkellogg commented 6 years ago

I've been using http://www.w3.org/ns/shex#Start (shex:Start), but that might be easy to confuse with shex:start, which is a predicate URI. However, it is distinct, and is being used in the subject/object position, in this case.