public void testRemoveReificationWorks() { Statement st = SPO; Model m = model; m.createReifiedStatement(aURI, st); assertTrue("st is now reified", st.isReified()); m.removeAllReifications(st); assertFalse("st is no longer reified", st.isReified()); }
public void testRR() { Statement st = SPO; Model m = model; ReifiedStatement rs1 = m.createReifiedStatement(aURI, st); ReifiedStatement rs2 = m.createReifiedStatement(anotherURI, st); m.removeReification(rs1); testNotReifying(m, aURI); assertTrue("st is still reified", st.isReified()); m.removeReification(rs2); assertFalse("st should no longer be reified", st.isReified()); }
public void testIsReified() { ReifiedStatement rs = model.createReifiedStatement(aURI, SPO); Resource BS = model.createResource(anchor + "BS"); Property BP = model.createProperty(anchor + "BP"); RDFNode BO = model.createProperty(anchor + "BO"); model.add(rs, P, O); assertTrue("st should be reified now", SPO.isReified()); assertTrue("m should have st reified now", model.isReified(SPO)); assertFalse( "this new statement should not be reified", model.createStatement(BS, BP, BO).isReified()); }