Esempio n. 1
0
 public void testKevinCaseB() {
   Graph G = getGraph();
   Node X = node("x"), Y = node("y");
   Node a = node("a"), b = node("b"), c = node("c");
   G.add(Triple.create(X, RDF.Nodes.subject, Y));
   try {
     ReifierStd.reifyAs(G, X, Triple.create(a, b, c));
     fail("X already has subject Y: cannot make it a");
   } catch (CannotReifyException e) {
     pass();
   }
 }
Esempio n. 2
0
 public void testKevinCaseA() {
   Graph G = getGraph();
   Node X = node("x"), a = node("a"), b = node("b"), c = node("c");
   G.add(Triple.create(X, RDF.Nodes.type, RDF.Nodes.Statement));
   ReifierStd.reifyAs(G, X, Triple.create(a, b, c));
 }