I have a Student class (Phd students) and Teacher class, having instances. There are some students which are also Teacher (teaching to junior classes). ?x rdf:type ont:Student ?y rdf:type ont:Teacher --> ? This will give us Students and teachers instances.
I want Jena generic rule(Forward chaining) which filters those who are both Teachers and Students. Is there any way to do so?
