[Pellet-users] Add restrictions to classes
Evren Sirin
evren at clarkparsia.com
Tue May 29 11:35:28 UTC 2007
On 5/21/07 11:20 AM, jenny wrote:
> Hi!
>
> Maybe an easy question, but I can't find how to assign restrictions to
> classes.
>
> After adding a new class to the knowledge base, how do I add
> restrictions to it, from existing object properties?
>
I'm assuming you are asking about ATerm's and Pellet KnowledgeBase
class. The class expressions are created through various functions
provided in the utils.ATermUtils class. For example, a someValuesFrom
restriction is created with makeSomeValues function. The properties (as
all other named entities) are created with the makeTermAppl(String name)
function. Then you add a restriction by calling KnowledBase.addSubClass
function where subclass is the class you want to add restrictions to and
the super class is the restriction.
Cheers,
Evren
> Regards,
> Jenny
>
>
> _______________________________________________
> Pellet-users mailing list
> Pellet-users at lists.owldl.com
> http://lists.owldl.com/mailman/listinfo/pellet-users
> _______________________________________________
>
> Sponsored by Clark & Parsia, LLC http://clarkparsia.com/
>
More information about the Pellet-users
mailing list