[Pellet-users] Get domains for a property

Christina Tziviskou tzivisko at elet.polimi.it
Wed Apr 9 14:09:03 UTC 2008


hi,

I'm using the Pellet API for querying the knowledge base.

I have two concepts that share the same property but each one of them 
defines it with a different range.
Example:
C1 prop r1
C2 prop r2

Because of the common property, I define:
kb.addEquivalentClass(C1, AtermUtils.makeSomeValues(prop, r1))
kb.addEquivalentClass(C2, AtermUtils.makeSomeValues(prop, r2))


How can I get the possible concepts that define the property without 
knowing the range?

If i knew the range, I could use:
kb.getEquivalentClass(AtermUtils.makeSomeValues(prop, r1))
and get C1 as the answer.


thank you in advance,
christina





More information about the Pellet-users mailing list