Package org.ontoware.rdf2go.model.impl

Examples of org.ontoware.rdf2go.model.impl.DiffImpl.addStatement()


            assertFalse(diff.getRemoved().iterator().hasNext());
          }
        });
    this.notifyingModel.open();
    Diff diff = new DiffImpl();
    diff.addStatement(subject, predicate, object);
    this.notifyingModel.update(diff);
    this.notifyingModel.close();
  }

  public void testNotificationOnSubject() {
View Full Code Here


    assertTrue(this.modelset.containsStatements(a, blankNode, RDF.type, RDF.Statement));
    this.modelset.removeStatement(stmt);
    assertFalse(this.modelset.containsStatements(a, blankNode, RDF.type, RDF.Statement));
   
    Diff diff = new DiffImpl();
    diff.addStatement(stmt);
    this.modelset.update(diff);
    assertTrue(this.modelset.containsStatements(a, blankNode, RDF.type, RDF.Statement));
    diff = new DiffImpl();
    diff.removeStatement(stmt);
    this.modelset.update(diff);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.