Note that there are some explanatory texts on larger screens.

plurals
  1. POOWL 2 reasoning with SWRL rules
    primarykey
    data
    text
    <p>I'm trying to use the <a href="http://www.hermit-reasoner.com/" rel="nofollow noreferrer">HermiT reasoner</a> to compute inferences for an ontology which contains a set of OWL axioms and a SWRL rule:</p> <pre><code>Ontology( ClassAssertion( :Student :Bob ) ClassAssertion( :Professor :DrBoffin ) ClassAssertion( :University :UF ) ObjectPropertyAssertion( :supervises :DrBoffin :Bob ) ObjectPropertyAssertion( :worksAt :DrBoffin :UF ) EquivalentClasses( :Student ObjectHasSelf( :r1 )) EquivalentClasses( ObjectHasSelf( :r2 ) ObjectSomeValuesFrom( :worksAt :University )) SubObjectPropertyOf( ObjectPropertyChain( :r2 :supervises :r1 ) :professorOf ) DLSafeRule(Body(ObjectPropertyAtom( :professorOf Variable( ?x ) Variable( ?y ))) Head(ObjectPropertyAtom( :instructorOf Variable( ?x ) Variable( ?y )))) ) </code></pre> <p>Basically, the OWL part is trying to express such a rule:</p> <pre><code>worksAt(x, y), University(y), supervises(x, z), Student(z) -&gt; professorOf(x, z) </code></pre> <p>using property chain and <a href="https://stackoverflow.com/questions/16989042/owl-2-rolification">rolification</a> techniques:</p> <p><img src="https://i.stack.imgur.com/Qljrk.png" alt="rule"></p> <p>The SWRL part is:</p> <pre><code>professorOf(x, y) -&gt; instructorOf(x, y) </code></pre> <p>The expected output should contain both <code>ObjectPropertyAssertion( :professorOf :DrBoffin :Bob )</code> and <code>ObjectPropertyAssertion( :instructorOf :DrBoffin :Bob )</code>. However, the actual output is (showing only object properties)</p> <pre><code>ObjectPropertyAssertion( :r1 :Bob :Bob ) ObjectPropertyAssertion( :professorOf :DrBoffin :Bob ) ObjectPropertyAssertion( :r2 :DrBoffin :DrBoffin ) ObjectPropertyAssertion( :supervises :DrBoffin :Bob ) ObjectPropertyAssertion( :worksAt :DrBoffin :UF) </code></pre> <p>Why isn't the expected SWRL result showing up? Any suggestions?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload