Closed jmcanterafonseca-iota closed 1 year ago
https://schema.org/docs/jsonldcontext.json does include @vocab
.
But indeed https://www.gs1.org/docs/gs1-smartsearch/gs1Voc_v1_7.jsonld does not.
I can argue both ways. Let's go with the GS1 approach and remove.
We did this.
with regards to
The LD Context is including,
"@vocab": "https://vocabulary.uncefact.org/"
but that is essentially a bad idea as it would mean any term included by a JSON-LD document that does not have a mapping it will be end up being trapped under"https://vocabulary.uncefact.org/"
and that is incorrect. That was a long discussion in EPCIS 2.0, and we removed it,@vocab
it can lead to undesired effects like this, see for instance the expanded tuples resulting frommyRandomProp would be incorrectly mapped to the UN/CEFACT Vocabulary incorrectly.
The
@vocab
keyword leads users to bad mappings of unknown / mispelled properties and probably to undesirable effects.For example if someone mistypes a vocabulary term, for instance because it uses a similar word with the same meaning or misspells it such a but not present in the vocabulary he won't be able to detect the mistake, example