gs1 / WebVoc

GS1 Web vocabulary development site
Apache License 2.0
29 stars 6 forks source link

ObjectProperty vs xsd:anyURI #12

Open VladimirAlexiev opened 3 years ago

VladimirAlexiev commented 3 years ago

You have a bunch of props (I guess all subprops of gs1:linkType, but maybe more) like this:

gs1:activityIdeas a rdf:Property, owl:ObjectProperty ;
    rdfs:range xsd:anyURI ;

However, xsd:anyURI is a literal, so it can't be used with owl:ObjectProperty.

I never understood the utility of xsd:anyURI, eg see discussion with FIBO people https://github.com/edmcouncil/fibo/discussions/1367

So either remove rdfs:range xsd:anyURI (my preference), or the owl:ObjectProperty designation.

VladimirAlexiev commented 3 years ago

@philarcher @mgh128 : I see the same in this doc: GS1 Digital Link: Semantics Extracting the meaning of identity and data relationships expressed in GS1 Digital Link URI syntax. To Be 1.2, Draft 0.5, 23 November 2020

sec 3.10 Link type semantics GS1 defines its link types in the Web Vocabulary [WebVoc]. In terms of semantics, we define a super property of gs1:linkType that has a domain of owl:Thing and a range of xsd:anyURI, i.e. it is very generic. Each GS1 link type is a sub property of this and typically has further restrictions.

Such declaration would make digital links unable to point to RDF nodes with extra information, which goes contrary to EPCIS 2 plans to put master data at such URLs.

Similar problem in EPCIS: https://github.com/gs1/EPCIS/issues/206