shex
shex copied to clipboard
What shape should a resultShapeMap report for START?
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" }.
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.