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

LD Context: Code lists cannot be properly expanded #145

Closed jmcanterafonseca-iota closed 1 year ago

jmcanterafonseca-iota commented 1 year ago

Example:

{
  "@context": ["https://vocabulary.uncefact.org/unece-context.jsonld"],
  "@type": "Document",
  "documentStatusCode": "uncl1373:1"
}

What is missing in the LD Context?

{
  "@context": ["https://vocabulary.uncefact.org/unece-context.jsonld", {
    "uncl1373": "https://vocabulary.uncefact.org/uncl1373#",
    "documentStatusCode": {
      "@type": "@vocab"
    }
  }],
  "@type": "Document",
  "documentStatusCode": "uncl1373:1"
}
kshychko commented 1 year ago

@jmcanterafonseca-iota, thanks for raising this issue. LD Context is actually missing the code lists namespaces and that's wrong. Along with adding the @type attribute per #146 this will be fixed. I'll post an update when a new version of the LD Context is ready for testing.

nissimsan commented 1 year ago

We did this