Package com.hp.hpl.jena.ontology

Examples of com.hp.hpl.jena.ontology.Individual.listPropertyValues()


    a.addProperty( op, anon1 );

    // check consistency
    model.prepare();

    assertIteratorValues( a.listPropertyValues( op ), new Resource[] { anon1 } );
    // check that the update occurred and that the incremental consistency
    // was used
    assertTrue( !PelletOptions.USE_INCREMENTAL_CONSISTENCY || graph.getKB().timers.getTimer( "isIncConsistent" ).getCount() > 0 );

    Individual anon2 = model.createIndividual( C );
View Full Code Here


    anon2.addProperty( op, a );

    // check consistency
    model.prepare();

    assertIteratorValues( anon2.listPropertyValues( op ), new Resource[] { a } );
    // check that the update occurred and that the incremental consistency
    // was used
    assertTrue( !PelletOptions.USE_INCREMENTAL_CONSISTENCY || graph.getKB().timers.getTimer( "isIncConsistent" ).getCount() == 2 );
  }
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.