Resource c = model.createResource(ns+"C");
Property p1 = model.createProperty(ns+"P1");
Property p2 = model.createProperty(ns+"P2");
Literal l = model.createLiteral("VAL");
Statement s1 = new StatementImpl(c, p1, l);
Statement s2 = new StatementImpl(c, p2, l);
model.add(s1);
model.add(new StatementImpl(p2, RDF.type, OWL.DatatypeProperty));
model.add(new StatementImpl(p2, OWL.equivalentProperty, p1));
StmtIterator iter = model.listStatements(c, null, l);
List<Statement> results = new ArrayList<Statement>();
while(iter.hasNext()) {