I need to get asserted, and only asserted, properties for an individual.
E.g. the following                          Individual individual = ...;    
                  StmtIterator objectProperties = 
individual.listProperties();returns all properties, asserted and inferred. 

I can probably iterate over all predicates ontProp# of objectProperties 
above and test for each pair (ontProp1, ontProp2) whether one of them has 
the other as its subproperty, i.e.           
ontProp1.hasSubProperty(ontProp2, false)and if it does, I'll reject it 
(ontProp1 in this case).But it looks a little messy. 
Is there a clean way to do it?
Thank you, 

David Makovoz

 

Reply via email to