dini-ag-kim / holding-ontology

Specification of the Holding Ontology
http://purl.org/ontology/holding
2 stars 3 forks source link

Incorrect range/domain on collects/collectedBy #36

Closed acka47 closed 10 years ago

acka47 commented 10 years ago

For representing the relation between a bibliography and its parts I just took a look at the properties holding:collects and holding:collectedBy. Here is the turtle from the current ontology:

holding:collectedBy a owl:ObjectProperty ;
    rdfs:label "collected by"@en ;
    rdfs:comment "Relates a document and/or item to an agent who collects it."@en ;
    rdfs:domain holding:Document, holding:Item ;
    rdfs:range holding:Agent ;
    owl:inverseOf holding:collects ;
    rdfs:seeAlso rdai:collector .
holding:collectedBy a owl:ObjectProperty ;
    rdfs:label "collects"@en ;
    rdfs:comment "Relates an agent to a document and/or item that is collected by the agent."@en ;
    rdfs:domain holding:Agent ;
    rdfs:range holding:Document, holding:Item ;
    owl:inverseOf holding:collectedBy ;
    rdfs:seeAlso rdai:collectorOf .

Currently, the ontology says that the domain of holding:collectedBy as well as the range of holding:collects is holding:Document AND holding:Item. If you want to express that a range or domain is an instance of either/or two or more classes you can do it like this:

holding:collectedBy a owl:ObjectProperty ;
    rdfs:domain [
       a owl:Class ;
       owl:unionOf (holding:Document holding:Item )
       ] .

holding:collectedBy a owl:ObjectProperty ;
    rdfs:range [
       a owl:Class ;
       owl:unionOf (holding:Document holding:Item )
       ] .
cKlee commented 10 years ago

Thanks! Altered triples..