OntModel model = ModelFactory.createOntologyModel( PelletReasonerFactory.THE_SPEC );
model.read( new StringReader( source ), "", "N3" );
model.prepare();
Individual a = model.getIndividual( ns + "a" );
Individual b = model.getIndividual( ns + "b" );
Individual c = model.getIndividual( ns + "c" );
Individual d = model.getIndividual( ns + "d" );
OntProperty higher = model.getOntProperty( ns + "higher" );
assertIteratorValues( model.listStatements( null, higher, (RDFNode) null ),
new Statement[] {
model.createStatement( a, higher, b ),
model.createStatement( b, higher, c ),
model.createStatement( b, higher, d ),
model.createStatement( c, higher, a ),
model.createStatement( d, higher, a ), } );
assertTrue( c.isSameAs( d ) );
assertTrue( d.isSameAs( c ) );
}