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

"uri" props #61

Closed VladimirAlexiev closed 2 years ago

VladimirAlexiev commented 2 years ago

https://github.com/uncefact/vocab/issues/48 asks to replace "IdentificationId" with just "id".

Similarly, some props named "UriId" and similar should be renamed. Here's a query:

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX uncefact: <https://service.unece.org/trade/uncefact/trade/uncefact/vocabulary/uncefact#>
PREFIX schema: <http://schema.org/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
select * {
    ?prop a rdf:Property 
    filter(regex(str(?prop),"uri|url","i"))
    filter(!regex(str(?prop),"security|manufacturing|jurisdiction","i"))
}

In addition: