I need to infer that one individual is the brother of other one if they have the same father.
So, if I have this:
Bart hasFather Homer.
Lisa hasFather Homer.
Because Bart
and Lisa
have the same father, I would like to infer:
Lisa hasBrother Bart.
Is there any method to do that using any property characteristics?
Use Property Chains and Rolification
Antoine Zimmermann's answer is a very good start to this problem, and touches on the major point that you need to solve this sort of task:
Now, that's actually not true of just brothers, though. That's true for all siblings and for x itself. This means you'll have the following definition of hasSibling:
(Actually, that's really just hasPaternalSibling; a more refined definition would use hasParent.) Now, using this, you could ask for brothers, which are simply siblings who are men, of x with a query like:
However, it would be nice to define a proper hasBrother property. You could do this with a property chain and hasSibling if you had a special property that linked each Man to himself, and only linked males to themselves:
In fact, such a property is what we get from a technique called rolification, which has been described more in a question, OWL 2 rolification, and its answer. The idea is that for the class Man, we create a new property rMan and add the equivalence:
which says that each Man is related to himself by the rMan property, and that only instances of Man are so connected. This is exactly the property that we need as specialProperty above. Thus, we end up with the following definitions of Man, hasSibling, and hasBrother:
Now we can ask for the brothers of x with a query like:
For instance, we can ask for Greg's siblings, and get Peter, Greg (himself), and Bobby.
Sample Ontology
Here's that ontology in Turtle:
Assuming that everyone is their own brother, and that sisters are brothers too:
It is hardly possible to define :hasBrother more precisely, excluding female brothers and self-brotherhood. But you can infer all the brothers of Lisa as follows: