Currently our taxonomies like productTypes are both published in a .rdf and a .json format. But the two files are referencing the .rdf URI which is bad because when using the .json file we are forced to use in addition an XML parser as no content negotiation is possible.
Instead the .rdf URI should accept content negotiation so a client can ask to obtain a particular representation of the data, let's say in JSONLD:
GET /datafoodconsortium/taxonomies/releases/latest/download/productTypes.rdf HTTP/1.1
Host: github.com
Accept: application/ld+json
Note: we could also remove the .rdf extension at the end of the URI.
That means we should set up a server or maybe it can work with GitHub pages. Also we need to check the W3 permanent redirections.
@datafoodconsortium/standard_maintainers
Currently our taxonomies like productTypes are both published in a .rdf and a .json format. But the two files are referencing the .rdf URI which is bad because when using the .json file we are forced to use in addition an XML parser as no content negotiation is possible.
Instead the .rdf URI should accept content negotiation so a client can ask to obtain a particular representation of the data, let's say in JSONLD:
Note: we could also remove the .rdf extension at the end of the URI.
That means we should set up a server or maybe it can work with GitHub pages. Also we need to check the W3 permanent redirections.
@datafoodconsortium/standard_maintainers