gs1 / WebVoc

GS1 Web vocabulary development site
Apache License 2.0
34 stars 6 forks source link

enrich WebVoc context; host context and ontology #21

Open VladimirAlexiev opened 3 years ago

VladimirAlexiev commented 3 years ago

As raised in https://github.com/gs1/EPCIS/issues/244:

GS1 voc returns neither the context nor the ontology as pure JSONLD. Instead, both the ontology URL (https://gs1.org/voc) and any term URL (eg https://gs1.org/voc/AdditionalProductClassificationDetails), with any content type, return a HTML, with the whole ontology as embedded JSONLD script. I don't see how to get the context ONLY.

curl -LI -Happlication/ld+json https://www.gs1.org/voc/
HTTP/1.1 200 OK
Content-Type: text/html; charset=UTF-8

The WebVoc context is currently very simple, it's just a list of prefixes.

Currently there's not much benefit in exposing a Voc context. But if it's made richer then: