Inverse Properties

Posted by bernard.lhostis on
URL: http://owlready.306.s1.nabble.com/Inverse-Properties-tp2562.html

Hello

In my project, I read an ontology (owl file)for Cyber Domain with two Class
        Product
        Vulnerability
There are two ObjectProperties
        hasVuln : Product → Vulnerability
        affect : Vulnerability → Product
                and
        hasVuln owl:inverseOf affect 

After I read base of vulnerabilities and create individuals with OwlReady2. In this examples, one product is affect by n  vulnerabilities.
1- If the program create only, for example affect , hasVuln  is not create
2- if the program create affect  and hasVuln : hasVuln is not save

3- if I delete in the ontology the fact that « hasVuln owl:inverseOf affect » and
         the program create affect  and hasVuln → the result is correct

I don't understand the behavior of Owlready2
Regards
Bernard L'Hostis