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

"Code" props: change to xsd:token, vs rename #47

Closed VladimirAlexiev closed 1 year ago

VladimirAlexiev commented 2 years ago

Props named xxxCode come in two kinds:

prefix uncefact: <https://service.unece.org/trade/uncefact/trade/uncefact/vocabulary/uncefact#> 
PREFIX schema: <http://schema.org/>
select ?range (count(*) as ?c) {
  ?prop schema:rangeIncludes ?range1
  filter(regex(str(?prop),"Code$"))
  bind(if(strstarts(str(?range1),str(uncefact:)),uncefact:,?range1) as ?range)
} group by ?range
nissimsan commented 2 years ago

Good suggestion making these xsd:token. @kshychko , tagging you to make this change.

Discussion it on the call, we reject the suggestion of removing "Code", though.

nissimsan commented 1 year ago

Not sure what kept us from closing this earlier. Seems like a mistake.