I've created a simple OWL ontology in Protege that describes human relationships:
- Classes : Person, Man, Woman
- Person is super class of Man and Woman
- Man and Woman are disjoint
- Object Properties : hasChild
- Its doman and range is Person
- Individuals : a (Man), b (Man) , c (Man) --- x (Woman), y (Woman), z (Woman)
- Assertions :
- a hasChild x
- a hasChild y
- c hasChild a
Now I want to query all persons whose children are only daughter. I wrote this query in DL query tab:
Person and hasChild only Woman
But it returns no instances! Or a simple query for persons who have only two children
Person and hasChild exactly 2
Both these queries returns no instances, Can anyone please tell me what's the problem?
Thanks