Package pellet

Examples of pellet.PelletTransTree.parseArgs()


 
  @Test
  public void filter1() {
    PelletTransTree cli = new PelletTransTree();
   
    cli.parseArgs(new String[]{"trans-tree","-p","http://clarkparsia.com/pellet/tutorial/pops#subProjectOf","-f","http://clarkparsia.com/pellet/tutorial/pops#Employee","test/data/trans-tree-tests/ontology-010.ttl"});
    cli.run();
   
    Taxonomy<ATermAppl> taxonomy = cli.publicTaxonomy;
   
    assertEquals(5, taxonomy.getClasses().size())//TOP, not(TOP), Employee, CivilServant, Contractor
View Full Code Here


 
  @Test
  public void filter2() {
    PelletTransTree cli = new PelletTransTree();
   
    cli.parseArgs(new String[]{"trans-tree","-p","http://clarkparsia.com/pellet/tutorial/pops#subProjectOf","-f","http://clarkparsia.com/pellet/tutorial/pops#Employee","--individuals","test/data/trans-tree-tests/ontology-010.ttl"});   
    cli.run();
   
    Taxonomy<ATermAppl> taxonomy = cli.publicTaxonomy;
   
    Set<ATermAppl> classes = taxonomy.getClasses();
View Full Code Here

 
  @Test
  public void filter3() {
    PelletTransTree cli = new PelletTransTree();
   
    cli.parseArgs(new String[]{"trans-tree","-p","http://clarkparsia.com/pellet/tutorial/pops#subProjectOf","-f","http://clarkparsia.com/pellet/tutorial/pops#Contractor","--individuals","test/data/trans-tree-tests/ontology-010.ttl"});   
    cli.run();
   
    Taxonomy<ATermAppl> taxonomy = cli.publicTaxonomy;   
    assertEquals(2, taxonomy.getClasses().size());    //TOP, not(TOP) (no Contractors)
    }
View Full Code Here

 
  @Test
  public void filter3() {
    PelletTransTree cli = new PelletTransTree();
   
    cli.parseArgs(new String[]{"trans-tree","-p","http://clarkparsia.com/pellet/tutorial/pops#subProjectOf","-f","http://clarkparsia.com/pellet/tutorial/pops#Contractor","--individuals","test/data/trans-tree-tests/ontology-010.ttl"});   
    cli.run();
   
    Taxonomy<ATermAppl> taxonomy = cli.publicTaxonomy;   
    assertEquals(2, taxonomy.getClasses().size());    //TOP, not(TOP) (no Contractors)
    }
View Full Code Here

 
  @Test
  public void filter1() {
    PelletTransTree cli = new PelletTransTree();
   
    cli.parseArgs(new String[]{"trans-tree","-p","http://clarkparsia.com/pellet/tutorial/pops#subProjectOf","-f","http://clarkparsia.com/pellet/tutorial/pops#Employee","test/data/trans-tree-tests/ontology-010.ttl"});
    cli.run();
   
    Taxonomy<ATermAppl> taxonomy = cli.publicTaxonomy;
   
    assertEquals(5, taxonomy.getClasses().size())//TOP, not(TOP), Employee, CivilServant, Contractor
View Full Code Here

 
  @Test
  public void filter2() {
    PelletTransTree cli = new PelletTransTree();
   
    cli.parseArgs(new String[]{"trans-tree","-p","http://clarkparsia.com/pellet/tutorial/pops#subProjectOf","-f","http://clarkparsia.com/pellet/tutorial/pops#Employee","--individuals","test/data/trans-tree-tests/ontology-010.ttl"});   
    cli.run();
   
    Taxonomy<ATermAppl> taxonomy = cli.publicTaxonomy;
   
    Set<ATermAppl> classes = taxonomy.getClasses();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.