Package com.hp.hpl.jena.ontology

Examples of com.hp.hpl.jena.ontology.IntersectionClass


              }
          }
     
      // intersectionOf
      } else if (c.isIntersectionClass()) {
        IntersectionClass ic = c.asIntersectionClass();
          for (Iterator<? extends OntClass> i = ic.listOperands(); i.hasNext(); ) {
              try {
                OntResource op = i.next();
//                OntClass op = (OntClass) i.next();
                getMembers(op, resources, recursive);
              } catch (ConversionException e) {
View Full Code Here


    assertIteratorValues( class2.listInstances(), new Resource[] {
        inds[2], inds[3], inds[4], inds[5] } );

    RDFList list = ontmodel.createList( new RDFNode[] { class1, class2 } );

    IntersectionClass class3 = ontmodel.createIntersectionClass( null, list );

    UnionClass class4 = ontmodel.createUnionClass( null, list );

    assertIteratorValues( class3.listInstances(), new Resource[] { inds[2], inds[3] } );

    assertIteratorValues( class4.listInstances(), new Resource[] {
        inds[0], inds[1], inds[2], inds[3], inds[4], inds[5] } );

  }
View Full Code Here

    assertIteratorValues( class2.listInstances(), new Resource[] {
        inds[2], inds[3], inds[4], inds[5] } );

    RDFList list = ontmodel.createList( new RDFNode[] { class1, class2 } );

    IntersectionClass class3 = ontmodel.createIntersectionClass( null, list );

    UnionClass class4 = ontmodel.createUnionClass( null, list );

    assertIteratorValues( class3.listInstances(), new Resource[] { inds[2], inds[3] } );

    assertIteratorValues( class4.listInstances(), new Resource[] {
        inds[0], inds[1], inds[2], inds[3], inds[4], inds[5] } );

  }
View Full Code Here

    graph.getKB().timers.getTimer( "isIncConsistent" ).reset();

    RDFList list = ontmodel.createList( new RDFNode[] { class1, class2 } );

    IntersectionClass class3 = ontmodel.createIntersectionClass( null, list );

    UnionClass class4 = ontmodel.createUnionClass( null, list );

    graph.getKB().timers.getTimer( "isIncConsistent" ).reset();
   
    ontmodel.prepare();

    assertIteratorValues( class3.listInstances(), new Resource[] {
        inds[2], inds[3], inds[4], inds[5] } );

    assertIteratorValues( class4.listInstances(), new Resource[] {
        inds[0], inds[1], inds[2], inds[3], inds[4], inds[5] } );
View Full Code Here

TOP

Related Classes of com.hp.hpl.jena.ontology.IntersectionClass

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.