I have a question about how to express something in Jena. Assume we have an 
individual a that is of type A, where A would actually be a collection of 
classes and subclasses. Also assume we have a class B that has been defined. B 
may include some class restrictions that place constraints on which resources 
can be instances of that class. As a simple case, B may be defined as disjoint 
with A. What would be the means of asking whether individual a can be of class 
B based on currently defined constraints?

Individual.addOntClass returns void and throws no exception, so that would not 
seem to work.

Would another approach be to get the OntClasses associated with individual a 
and then calling OntClass.isDisjointWith?

David Jordan
Senior Software Developer
SAS Institute Inc.
Health & Life Sciences, Research & Development
Bldg R ▪ Office 4467
600 Research Drive ▪ Cary, NC 27513
Tel: 919 531 1233 ▪ [email protected]<mailto:[email protected]>
www.sas.com<http://www.sas.com/>
SAS® … THE POWER TO KNOW®

Reply via email to