uncefact / spec-jsonld

Exposing the UN/CEFACT vocabulary as web semantics
https://service.unece.org/trade/uncefact/vocabulary/uncefact/
13 stars 5 forks source link

unlocode.jsonld doesn't define prefix `unlcdf` #182

Open VladimirAlexiev opened 11 months ago

VladimirAlexiev commented 11 months ago

curl https://vocabulary.uncefact.org/unlocode# -H 'Accept: application/ld+json' uses the unlcdf prefix for "functions":

      "unlcdv:functions": [
        {
          "@id": "unlcdf:3"
        },
        {
          "@id": "unlcdf:4"
        },
        {
          "@id": "unlcdf:6"
        }
      ],

However, it doesn't define such prefix.

unlocode-vocab-context.jsonld doesn't define the prefix either.

VladimirAlexiev commented 11 months ago

We can illustrate the problem at the jsonld playground https://tinyurl.com/22vyjbus tab NQuads:

<https://vocabulary.uncefact.org/unlocode#ADALV> <https://vocabulary.uncefact.org/unlocode-vocab/functions> <unlcdf:3> .
<https://vocabulary.uncefact.org/unlocode#ADALV> <https://vocabulary.uncefact.org/unlocode-vocab/functions> <unlcdf:4> .
<https://vocabulary.uncefact.org/unlocode#ADALV> <https://vocabulary.uncefact.org/unlocode-vocab/functions> <unlcdf:6> .

As you can see, the function values resolve to an invalid URI scheme unldcf