@Override public void addStatement(Resource subject, URI predicate, String literal) throws ModelRuntimeException { assertModel(); super.addStatement(subject, predicate, literal); }
@Override public void removeStatement(Resource subject, URI predicate, String literal, URI datatypeURI) throws ModelRuntimeException { assertModel(); super.removeStatement(subject, predicate, literal, datatypeURI); }
@Override public void addStatement(Resource subject, URI predicate, Node object) throws ModelRuntimeException { addStatement(new StatementImpl(null, subject, predicate, object)); }
public Diff getDiff(Iterator<? extends Statement> statements) throws ModelRuntimeException { ModelAddRemoveMemoryImpl other = new ModelAddRemoveMemoryImpl(); other.addAll(statements); ModelAddRemoveMemoryImpl add = new ModelAddRemoveMemoryImpl(); add.addAll(other.iterator()); add.removeAll(this.iterator()); ModelAddRemoveMemoryImpl removed = new ModelAddRemoveMemoryImpl(); removed.addAll(this.iterator()); removed.removeAll(other.iterator()); return new DiffImpl(add.iterator(), removed.iterator()); }
public void removeStatements(TriplePattern triplePattern) throws ModelRuntimeException { ModelAddRemoveMemoryImpl toBeRemoved = new ModelAddRemoveMemoryImpl(); toBeRemoved.addAll(this.findStatements(triplePattern)); this.removeAll(toBeRemoved.iterator()); }
public void testSubjectNotification2() { ModelChangedListener listener = new AbstractModelChangeListener() {}; QuadPattern pattern = new QuadPatternImpl(Variable.ANY, subject, Variable.ANY, Variable.ANY); this.model.addModelSetChangedListener(listener, pattern); this.model.open(); this.model.addStatement(context1, predicate, object, subject); this.model.close(); }
@Override public void removeAll() throws ModelRuntimeException { assertModel(); super.removeAll(); }
@Override public void addAll(Iterator<? extends Statement> other) throws ModelRuntimeException { assertModel(); super.addAll(other); }
public void removeStatements(ResourceOrVariable subject, UriOrVariable predicate, NodeOrVariable object) throws ModelRuntimeException { assertModel(); super.removeStatements(subject, predicate, object); }
@Override public void addStatement(Resource subject, URI predicate, String literal, URI datatypeURI) throws ModelRuntimeException { assertModel(); super.addStatement(subject, predicate, literal, datatypeURI); }
public void testContextAndSubjectNotification2() { ModelChangedListener listener = new AbstractModelChangeListener() {}; QuadPattern pattern = new QuadPatternImpl(context1, subject, Variable.ANY, Variable.ANY); this.model.addModelSetChangedListener(listener, pattern); this.model.open(); this.model.addStatement(context1, predicate, object, subject); this.model.close(); }
@Override public void removeStatement(Resource subject, URI predicate, String literal, String languageTag) throws ModelRuntimeException { assertModel(); super.removeStatement(subject, predicate, literal, languageTag); }
public void addStatement(Resource subject, URI predicate, String literal, String languageTag) throws ModelRuntimeException { assertModel(); super.addStatement(subject, predicate, literal, languageTag); }
public void removeStatement(Resource subject, URI predicate, String literal, String languageTag) throws ModelRuntimeException { assertModel(); super.removeStatement(subject, predicate, literal, languageTag); }
public void addStatement(String subjectURIString, URI predicate, String literal, String languageTag) throws ModelRuntimeException { assertModel(); super.addStatement(subjectURIString, predicate, literal, languageTag); }
public void removeStatement(Resource subject, URI predicate, String literal, URI datatypeURI) throws ModelRuntimeException { assertModel(); super.removeStatement(subject, predicate, literal, datatypeURI); }
public void addStatement(String subjectURIString, URI predicate, String literal, URI datatypeURI) throws ModelRuntimeException { assertModel(); super.addStatement(subjectURIString, predicate, literal, datatypeURI); }
@Override public void addStatement(Resource subject, URI predicate, String literal, String languageTag) throws ModelRuntimeException { assertModel(); super.addStatement(subject, predicate, literal, languageTag); }
@Override public void addStatement(String subjectURIString, URI predicate, String literal) throws ModelRuntimeException { assertModel(); super.addStatement(subjectURIString, predicate, literal); }
public void addStatement(Resource subject, URI predicate, String literal, URI datatypeURI) throws ModelRuntimeException { assertModel(); super.addStatement(subject, predicate, literal, datatypeURI); }