Hello Chao, the query should work, yes.
Kind regards, Lorenz > would this query work? > SELECT ?x WHERE (?x rdf:type ont:Student . ?x rdf:type ont:Teacher) > ________________________________________ > From: javed khan [[email protected]] > Sent: Monday, July 25, 2016 2:33 PM > To: [email protected] > 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? > > -- Lorenz Bühmann AKSW group, University of Leipzig Group: http://aksw.org - semantic web research center
