[Pellet-users] Parent in Pellet ?

Evren Sirin evren at clarkparsia.com
Thu Mar 8 02:52:58 UTC 2007


On 3/1/07 2:01 AM, Krishna Prasad Paudel wrote:
>
> Hi,
>
> I am new in Pellet and reasoning world. I found we can determine 
> parent of a concept if used RacerPro and KRSS. I would like to know if 
> same ( to find a parent of a class and parent of a role) is possible 
> in using Pellet if the ontology is in OWL. 
>
Yes, depending on which API you use (Jena, OWLAPI, or Pellet's internal 
API) there is a function that lets you do that. Note that, Pellet can 
natively read KRSS documents so your ontology need not be represented in 
OWL. Example code to get the parents using Pellet KnowledgeBase API:

KnowledgeBase kb = new KnowledgeBase();
kb.loadKRSS( new FileReader( "..." ) );
ATermAppl c = ATermUtils.makeTermAppl( "concept name" );
Set parentClasses = kb.getSuperClasses( c, true );
>
> I also like to know about determining LCS (Least common subsumer) of 
> two concepts
>
It is possible to compute the LCS of a list of concepts. Note that, the 
result might be a list and not necessarily a single concept.

ATermUtils list = ATermUtils.makeList( new ATermAppl[] { c1, c2 } );
Taxonomy taxonomy = kb.getTaxonomy();
List lca = taxonomy.computeLCA( list );
>
> and MSC of a concept by using Pellet.
>
Nope, there is no functionality for that.

Cheers,
Evren
>
>  
>
> Thank your for your response.
>
>  
>
> Krishna
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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