On 19/02/14 02:30, Thomas Marsh wrote:
hello again jena folks, is there a way to list properties of a class without listing the inferred properties? I am using OntClass.listProperties() and it gives me inferred subClassOf statements. I need a way to differentiate the asserted ones from the inferred ones. thanks,
There's not a neat way to do this. The best bet is to create two OntModel wrappers over the same base model - one with inference and one without. Since OntModel's are just wrappers, they have no state, this is both safe and low overhead.
Dave
