Package org.mindswap.pellet.taxonomy

Examples of org.mindswap.pellet.taxonomy.TaxonomyBuilder


  }

  public Taxonomy<ATermAppl> getHierarchy() {
    assertTrue( "Expressivity is not EL", kb.getExpressivity().isEL() );

    TaxonomyBuilder builder = null;
    try {
      builder = builderClass.newInstance();
      builder.setKB( kb );
    } catch( Exception e ) {
      throw new RuntimeException( e );
    }
builder.setProgressMonitor( new SilentProgressMonitor() );
    builder.classify();
    Taxonomy<ATermAppl> taxonomy = builder.getTaxonomy();
   
//     taxonomy.getTop().print();

    return taxonomy;
  }
View Full Code Here


  }

  public Taxonomy<ATermAppl> getHierarchy() {
    assertTrue( "Expressivity is not EL", kb.getExpressivity().isEL() );

    TaxonomyBuilder builder = null;
    try {
      builder = builderClass.newInstance();
      builder.setKB( kb );
    } catch( Exception e ) {
      throw new RuntimeException( e );
    }
builder.setProgressMonitor( new SilentProgressMonitor() );
    builder.classify();
    Taxonomy<ATermAppl> taxonomy = builder.getTaxonomy();
   
//     taxonomy.getTop().print();

    return taxonomy;
  }
View Full Code Here

TOP

Related Classes of org.mindswap.pellet.taxonomy.TaxonomyBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.