Re: Getting multiple classes for an Individual

2017-01-26 Thread Dave Reynolds
On 26/01/2017 20:58, Olatunde Ayanleye wrote: Hello Dave, Thanks for the prompt reply, but i have tried this approach but i only get the Super classes inferred.I can't get the subclass which i was expecting jena to infer based on data property restriction. That will depend on how you have

Re: Getting multiple classes for an Individual

2017-01-26 Thread tina sani
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 wrote: > On 26/01/2017 15:20, tina sani wrote: > >> How can I get all the

Re: Getting multiple classes for an Individual

2017-01-26 Thread tina sani
Dave, I have read some where that Individual#listOntClasses will only list one class at one time. And yes employee is individual and programmer, manager and worker are class variables. On Fri, Jan 27, 2017 at 12:23 AM, Dave Reynolds wrote: > On 26/01/2017 21:08, tina

Re: Getting multiple classes for an Individual

2017-01-26 Thread Dave Reynolds
On 26/01/17 21:28, tina sani wrote: Dave, I have read some where that Individual#listOntClasses will only list one class at one time. No idea what you mean. It's an Iterator which will iterate over all of the OntClasses, and since it's also an ExtendedIterator it has convenience methods to

Re: Getting multiple classes for an Individual

2017-01-26 Thread Dave Reynolds
On 26/01/2017 21:08, tina sani wrote: Hi Dave, Will this work? if ((employee1.hasOntClass(programmer)) && ((employee1.hasOntClass(manager)) &&((employee1.hasOntClass(worker)) { } Try it and see! There's not enough there for us to tell for sure. If the variable employee1 is an Individual