@Test
public void test253() {
String aOnt = "file:" + PelletTestSuite.base + "misc/longitude2.ttl";
PelletReasoner aReasoner = (PelletReasoner) PelletReasonerFactory.theInstance().create();
InfModel aModel = ModelFactory.createInfModel( aReasoner, ModelFactory.createDefaultModel() );
aModel.read( aOnt, "N3" );
String aQuery = "PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\n"
+ "PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>\n"
+ "PREFIX owl: <http://www.w3.org/2002/07/owl#>\n"
+ "PREFIX mon: <http://www.semwebtech.org/mondial/10/meta#>\n"
+ "PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>\n"
+ "PREFIX : <foo://bla/>\n"
+ "SELECT ?v0 WHERE\n" + "{ ?v0 rdf:type :EasternHemispherePlace. }\n";
QueryExecution qe = SparqlDLExecutionFactory.create( QueryFactory.create(aQuery), aModel );
Resource berlin = aModel.getResource( "foo://bla/Berlin" );
ResultSet results = qe.execSelect();
assertTrue( results.hasNext() );
assertTrue( berlin.equals( results.next().getResource("v0") ) );
assertFalse( results.hasNext() );
}