コード例 #1
0
 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());
 }
コード例 #2
0
 public void testStatementAndModel(String title, ReifiedStatement rs, Model m, Statement st) {
   assertEquals(title + ": recover statement", st, rs.getStatement());
   assertEquals(title + ": recover model", m, rs.getModel());
 }
コード例 #3
0
 public void testConversion() {
   final String uri = "spoo:handle";
   model.createReifiedStatement(uri, SPO);
   ReifiedStatement rs2 = (ReifiedStatement) model.createResource(uri).as(ReifiedStatement.class);
   assertEquals("recover statement", SPO, rs2.getStatement());
 }