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

Allow country to be either a ISO 3166-1 alpha-2 country code string or a resource #157

Open jmcanterafonseca-iota opened 1 year ago

jmcanterafonseca-iota commented 1 year ago

In the current version of the Vocabulary properties that refer to a country are defined as a resource. It would be convenient to allow properties that refer to a country that also admit just a string conformant with the ISO 3166-1 alpha-2 country code

For instance:

{
  "type": "Consignment",
  "destinationCountry": "ES"
}