Package pellet

Examples of pellet.PelletTransTree$PartIndividualsComparator


    }
  }
 
  @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();
    assertEquals(3, classes.size());    //TOP, not(TOP), 1 Employee
View Full Code Here

    assertTrue(classes.contains(ATermUtils.makeTermAppl("http://clarkparsia.com/pellet/tutorial/pops#Employee1")));
  }
 
  @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 transTree() {
    runAppVerbose( new CLIMaker() {
      @Override
      protected PelletCmdApp create() {
        return new PelletTransTree();
      }
    }, "-p", "http://www.co-ode.org/ontologies/test/pellet/transitive.owl#p","test/data/misc/transitiveSub.owl");
  }
View Full Code Here

  @Test
  public void transTree2() {
    runAppVerbose( new CLIMaker() {
      @Override
      protected PelletCmdApp create() {
        return new PelletTransTree();
      }
    }, "-p", "http://www.co-ode.org/ontologies/test/pellet/transitive.owl#p","-f","http://www.co-ode.org/ontologies/test/pellet/transitive.owl#A","--individuals","test/data/misc/transitiveSub.owl");
  }
View Full Code Here

    assertTrue(classes.contains(ATermUtils.makeTermAppl("http://clarkparsia.com/pellet/tutorial/pops#Employee1")));
  }
 
  @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 transTree() {
    runAppVerbose( new CLIMaker() {
      @Override
      protected PelletCmdApp create() {
        return new PelletTransTree();
      }
    }, "-p", "http://www.co-ode.org/ontologies/test/pellet/transitive.owl#p","test/data/misc/transitiveSub.owl");
  }
View Full Code Here

  @Test
  public void transTree2() {
    runAppVerbose( new CLIMaker() {
      @Override
      protected PelletCmdApp create() {
        return new PelletTransTree();
      }
    }, "-p", "http://www.co-ode.org/ontologies/test/pellet/transitive.owl#p","-f","http://www.co-ode.org/ontologies/test/pellet/transitive.owl#A","--individuals","test/data/misc/transitiveSub.owl");
  }
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();
    assertEquals(3, classes.size());    //TOP, not(TOP), 1 Employee
View Full Code Here

TOP

Related Classes of pellet.PelletTransTree$PartIndividualsComparator

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.