Hi Tina, 

Try using SPARQL.

select ?class where { ?individual a ?class }

That should give you a solution for each class.

Charles Greer
Lead Engineer
MarkLogic Corporation
cgr...@marklogic.com
Cell:  +1 707 318 0442
@grechaw
www.marklogic.com


________________________________________
From: tina sani [tinamadri...@gmail.com]
Sent: Thursday, January 26, 2017 7:20 AM
To: users@jena.apache.org
Subject: Getting multiple classes for an Individual

How can I get all the classes of which an individual is a type? After Jena
rules executed, my individual has multiple class like:
Employee001 is of type: Worker, Programmer, Manager.

So can I get all these three classes in Jena ? I have read somewhere that
getOntClass() only return one class at a time and that is on random basis.

Reply via email to