Hi Dave, Will this work?

if ((employee1.hasOntClass(programmer)) &&
((employee1.hasOntClass(manager)) &&((employee1.hasOntClass(worker))
{

}

On Thu, Jan 26, 2017 at 11:32 PM, Dave Reynolds <[email protected]>
wrote:

> On 26/01/2017 15:20, tina sani wrote:
>
>> 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.
>>
>> See OntResource#listRDFTypes or, if you just have a Resource then
> Resource#listProperties(RDF.type) or, as Charles says, use SPARQL.
>
> Dave
>
>
>
> ---
> This email has been checked for viruses by Avast antivirus software.
> https://www.avast.com/antivirus
>
>

Reply via email to