You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by 朱曼 <zh...@gmail.com> on 2011/04/29 05:07:03 UTC

problem on creating inverse property

Dear all,

Hi!

Currently I am using Jena to process ontology and create ontology classes.
But I confront a problem: how can I create a class which is existentially
restricted by the inverse of an existed property(hasValue inverseOf
Property)? I tried "property.getInverse()", but I get a
NullPointerException, I think that is because the inverse property doesn't
really exist in the current ontology. And I also notice there is a
createInverseFunctionalProperty method in OntModel, but how can I create an
inverse property based on an existed property, so far as the
createInverseFunctionalProperty method only have "uri" and "functional"
parameters?

Thanks very much for your time and help!

All my best!

Yours,
June