Haroon Lone
Haroon Lone

Reputation: 2949

Setting domain and range of a property

I have two classes (i.e., Observation and Sensor) and an object property (i.e., observedBy) in my SSN ontology.So, the required scenario is like this: enter image description here Observation class in protege is presented as: enter image description here

and observedBy property is presented as: enter image description here

Now the question is, do I need to specify the Domain and Range of observedBy property as both of these fields are empty as shown in third picture. But, while looking at observation class in picture 2, I find that it is associated with statements "observedBy only Sensor" and "observedBy exactly 1 sensor". By these statements I infer that I donot need to mention domain and range of observedBy property. Am I right in this case.

Upvotes: 1

Views: 1110

Answers (1)

chris
chris

Reputation: 1817

You don't have to, but that depends on how you want to model your knowledge base. The cardinality constraint (observedBy exactly 1 Sensor in the figure) looks like a restriction set on the Observation class, as in:

:Observation rdfs:subClassOf 
   [ a owl:Restriction;
     owl:onProperty :observedBy;
     owl:minCardinality 1;
     owl:maxCardinality 1 ]

Setting the rdfs domain and range of observedBy you will in essence restrict the use of the property, which may be something you want to do, or not.

Upvotes: 3

Related Questions