datafoodconsortium / taxonomies

Set of taxonomies to use with the ontology like product types, units and facets.
GNU Affero General Public License v3.0
2 stars 1 forks source link

Don't export named graph? #22

Open lecoqlibre opened 10 months ago

lecoqlibre commented 10 months ago

This is to remind that we should not be exporting the name of the graph (@id) in JSON-LD. Indeed, some parsing libraries could refuse to parse named graph like related here: https://github.com/datafoodconsortium/connector-php/issues/1.

Unfortunately, it seems there is no option to tell VocBench to not export the name of the selected graph. So we probably have to ensure this manually.

Or maybe we should rely on parsing libraries that can support named graphs?

Acceptance Criteria

As this is valid JSON-LD, and we cannot (easily) modify the VOCbench output. We have decided the following: