/** * Leo Bard spotted a problem whereby removing a reified statement from a model with style * Standard didn't leave the model empty. Here's a test for it. */ public void testLeosBug() { Model A = getModel(); Statement st = statement(A, "pigs fly south"); ReifiedStatement rst = st.createReifiedStatement("eh:pointer"); A.removeReification(rst); assertIsoModels(ModelFactory.createDefaultModel(), A); }
public void testConstructionByURI() { ReifiedStatement rs = model.createReifiedStatement("spoo:handle", SPO); ReifiedStatement rs2 = SPO.createReifiedStatement("spoo:gripper"); assertEquals("recover statement (URI)", SPO, rs.getStatement()); assertEquals("recover URI", "spoo:handle", rs.getURI()); assertEquals("recover URI", "spoo:gripper", rs2.getURI()); }
public void testConstructionFromStatements() { testStatementAndModel("fromStatement", SPO.createReifiedStatement(), model, SPO); }
public void testThisWillBreak() { Resource R = model.createResource(aURI); SPO.createReifiedStatement(aURI); model.add(R, RDF.subject, R); }