Conceptual question on using QUDT to add measurement specificity to an ontology #670
-
Apologies if this is a basic question, but I've been looking at the QUDT docs and I can't quite get my head around this. I want my ontology to express that an My best approximation so far is: ex:Habitat
a owl:Class ;
rdfs:subClassOf [
a owl:Restriction ;
owl:onProperty ex:area ;
owl:someValuesFrom [
a owl:Restriction ;
owl:onProperty qudt:unit ;
owl:exactCardinality 1 ;
owl:allValuesFrom unit:ha
]
]
. But this seems unnecessarily complicated. Am I missing a more simple or direct way to express this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I have a few suggestions for you.
Of course, you could just nest the HabitatArea inside the definition of Habitat, but the bottom line is that you aren't constraining the value of an instance of Habitat, you are constraining the instance of the quantity that the Habitat instance is pointing to. So you will always be forced to have a "double-hop" in your constraint, no matter how you structure it. Also, you might find our User Guide helpful. One final note - have you considered using SHACL instead of OWL? I find it a bit clearer when specifying constraints like this. |
Beta Was this translation helpful? Give feedback.
I have a few suggestions for you.