OM icon indicating copy to clipboard operation
OM copied to clipboard

Domains and ranges often specified as union of a single class

Open RinkeHoekstra opened this issue 5 years ago • 2 comments

For many of the object properties the domain and/or range is specified as a union consisting of a single class. This is really not necessary, and adds a layer of complexity when populating the ontology with instances through a UI.

Example:

<owl:ObjectProperty rdf:about="&om;commonlyHasUnit">
    <rdfs:label xml:lang="en">commonly has unit</rdfs:label>
    <om:alternativeLabel xml:lang="en">commonly has unit of measure</om:alternativeLabel>
    <rdfs:comment>This property indicates a commonly-used unit.</rdfs:comment>
    <rdfs:domain>
      <owl:Class>
        <owl:unionOf rdf:parseType="Collection">
          <owl:Class rdf:about="&om;Quantity"/>
        </owl:unionOf>
      </owl:Class>
    </rdfs:domain>
    <rdfs:range rdf:resource="&om;Unit"/>
  </owl:ObjectProperty>

should be

<owl:ObjectProperty rdf:about="&om;commonlyHasUnit">
    <rdfs:label xml:lang="en">commonly has unit</rdfs:label>
    <om:alternativeLabel xml:lang="en">commonly has unit of measure</om:alternativeLabel>
    <rdfs:comment>This property indicates a commonly-used unit.</rdfs:comment>
    <rdfs:domain rdf:resource="&om;Quantity"/>
    <rdfs:range rdf:resource="&om;Unit"/>
  </owl:ObjectProperty>

RinkeHoekstra avatar Mar 07 '19 10:03 RinkeHoekstra

Fixed in:

om-2.02-fixed.ttl

RinkeHoekstra avatar Mar 07 '19 10:03 RinkeHoekstra

Thanks, Rinke, for your attention and effort! Just uploaded a new .rdf version.

HajoRijgersberg avatar Mar 08 '19 17:03 HajoRijgersberg