[Pellet-users] Hierarchy of datatypes and enumeration datatypes
Christina Tziviskou
tzivisko at elet.polimi.it
Fri Feb 8 11:15:37 UTC 2008
Hi,
I have two questions about the Pellet API and specifically the methods
of the KnowledgeBase and AtermUtils classes.
1. Is it possible to create hierarchy of datatypes in Pellet using the
above interfaces?
2. I create enumerations with the following code:
ATermList enumeration = ATermUtils.makeList( new ATermAppl[] {
ATermUtils.makeValue( red ),
ATermUtils.makeValue( green ),
ATermUtils.makeValue( blue ) } );
kb.addEquivalentClass( Color, ATermUtils.makeOr( enumeration ) );
Is it possible to create an enumeration datatype instead of an enumeration class?
Thank you in advance,
christina
More information about the Pellet-users
mailing list