[Pellet-users] Disjoints in pellet

Evren Sirin evren at clarkparsia.com
Wed May 23 14:18:01 UTC 2007


On 5/23/07 5:50 AM, Prakash Kadel wrote:
>
> Hi,
>
> If I have a  question. If I have 3 classes A,B and C, and if C  is the 
> subclass of A then  getDisjointClasses(B) returns [[C], [A] 
> ,[not(_TOP_)] . How can I get only [[A], [not(_TOP_)] , i.e., without 
> the subclasses of A
>
What getDisjoints(B) do is simply return all the subclasses of concept 
not(B) (B's complement). To filter out the subclasses in the result, you 
can do:

kb.getSubClasses( ATermUtils.makeNot(B), true );

which will return only the direct subclasses of not(B). Note that, 
not(_TOP_) will not be included in the result either as it is a subclass 
as one of its superclasses is already included.

Hope this helps,
Evren
>
> Thanks in advance
>
> Prakash Kadel
>
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.467 / Virus Database: 269.7.6/815 - Release Date: 
> 5/22/2007 3:49 PM
>  
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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