would this query work?
SELECT ?x WHERE (?x rdf:type ont:Student . ?x rdf:type ont:Teacher)
________________________________________
From: javed khan [javedbtk...@gmail.com]
Sent: Monday, July 25, 2016 2:33 PM
To: users@jena.apache.org
Subject: Jena generic rules

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?

Reply via email to