AGLDWG / gnaf-ont

Creative Commons Attribution 4.0 International
0 stars 0 forks source link

range of hasAlias is wrong #9

Closed dr-shorthair closed 4 years ago

dr-shorthair commented 5 years ago

gnaf:hasAlias is defined as follows:

:hasAlias
  rdf:type owl:ObjectProperty ;
  rdfs:domain :Alias ;
  rdfs:label "has Alias"@en ;
  rdfs:range :Address ;
  rdfs:range :Locality ;
  rdfs:range :Street ;
.

Multiple rdfs:range values are combined with the AND operator, which entails that the object of a triple with the predicate gnaf:hasAlias is a member of all three classes! I don't think this was intended. I think you want the OR operator here, i.e.

:hasAlias
  rdf:type owl:ObjectProperty ;
  rdfs:domain :Alias ;
  rdfs:label "has Alias"@en ;
  rdfs:range [
      rdf:type owl:Class ;
      owl:unionOf (
          :Address
          :Locality
          :Street
        ) ;
    ] ;
.