rdf - Setting domain and range of a property -


i have 2 classes (i.e., observation , sensor) , object property (i.e., observedby) in ssn ontology.so, required scenario this: enter image description here observation class in protege presented as: enter image description here

and observedby property presented as: enter image description here

now question is, need specify domain , range of observedby property both of these fields empty shown in third picture. but, while looking @ observation class in picture 2, find associated statements "observedby sensor" , "observedby 1 sensor". these statements infer donot need mention domain , range of observedby property. right in case.

you don't have to, depends on how want model knowledge base. cardinality constraint (observedby 1 sensor in figure) looks restriction set on observation class, in:

:observation rdfs:subclassof     [ owl:restriction;      owl:onproperty :observedby;      owl:mincardinality 1;      owl:maxcardinality 1 ] 

setting rdfs domain , range of observedby in essence restrict use of property, may want do, or not.


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -