I have Employee class and "Managers" and "Technicals" as two sub classes of Employee. Bob is instance of sub class Technical, how can I get like this:
If Bob instance of Technicals, then do something:
OntClass mgr = model.getOntClass(ns + "Managers");
OntClass tech = model.getOntClass(ns + "Technicals");
OntClass emp = model.getOntClass(ns + "Employee");
Individual ind = tech.createIndividual(ns + "Bob");
I am trying like below but it flush an error message.
if (ind instanceof tech){}
