@Override public void startRDF() throws RDFHandlerException { this.graph = new TreeModel(); }
public Optional<Namespace> getNamespace(String prefix) { return model.getNamespace(prefix); }
public Set<Namespace> getNamespaces() { return model.getNamespaces(); }
memory = new TreeModel(memory.getNamespaces()); logger.debug("overflow synced to disk");
StatementTree chosen = choose(subj, pred, obj, null); Iterator<Statement> iter = chosen.subIterator(before(subj, pred, obj, null), true, after(subj, pred, obj, null), true); iter = new PatternIterator<>(iter, subj, pred, obj, contexts); removeAll(owner, chosen, iter); StatementTree chosen = choose(subj, pred, obj, null); Iterator<Statement> iter = chosen.subIterator(before(subj, pred, obj, null), true, after(subj, pred, obj, null), true); removeAll(owner, chosen, iter); for (Value ctx : notEmpty(contexts)) { if (ctx == null) { removeTermIteration(iterator, subj, pred, obj, (Resource[])null); StatementTree chosen = choose(subj, pred, obj, ctx); Iterator<Statement> iter = chosen.subIterator(before(subj, pred, obj, ctx), true, after(subj, pred, obj, ctx), true); removeAll(owner, chosen, iter);
@Override protected void removeFilteredTermIteration(Iterator<Statement> iter, Resource subj, IRI pred, Value obj, Resource... contexts) { TreeModel.this.removeTermIteration(iter, subj, pred, obj, contexts); } };
public Optional<Namespace> removeNamespace(String prefix) { return model.removeNamespace(prefix); }
public synchronized Namespace setNamespace(String prefix, String name) { return memory.setNamespace(prefix, name); }
memory = new TreeModel(memory.getNamespaces()); logger.debug("overflow synced to disk");
StatementTree chosen = choose(subj, pred, obj, null); Iterator<Statement> iter = chosen.subIterator(before(subj, pred, obj, null), true, after(subj, pred, obj, null), true); iter = new PatternIterator<Statement>(iter, subj, pred, obj, contexts); removeAll(owner, chosen, iter); StatementTree chosen = choose(subj, pred, obj, null); Iterator<Statement> iter = chosen.subIterator(before(subj, pred, obj, null), true, after(subj, pred, obj, null), true); removeAll(owner, chosen, iter); for (Value ctx : notEmpty(contexts)) { if (ctx == null) { removeTermIteration(iterator, subj, pred, obj, (Resource[])null); StatementTree chosen = choose(subj, pred, obj, ctx); Iterator<Statement> iter = chosen.subIterator(before(subj, pred, obj, ctx), true, after(subj, pred, obj, ctx), true); removeAll(owner, chosen, iter);
@Override protected void removeFilteredTermIteration(Iterator<Statement> iter, Resource subj, IRI pred, Value obj, Resource... contexts) { TreeModel.this.removeTermIteration(iter, subj, pred, obj, contexts); } };
public Optional<Namespace> removeNamespace(String prefix) { return model.removeNamespace(prefix); }
public void setNamespace(Namespace namespace) { memory.setNamespace(namespace); }
@Override public TreeModel createEmptyModel() { return new TreeModel(); }
@Override protected void removeFilteredTermIteration(Iterator<Statement> iter, Resource subj, IRI pred, Value obj, Resource... contexts) { TreeModel.this.removeTermIteration(iter, subj, pred, obj, contexts); } };
public synchronized Optional<Namespace> removeNamespace(String prefix) { return memory.removeNamespace(prefix); }
public Namespace setNamespace(String prefix, String name) { return model.setNamespace(prefix, name); }
public synchronized Optional<Namespace> getNamespace(String prefix) { return memory.getNamespace(prefix); }
public synchronized Set<Namespace> getNamespaces() { return memory.getNamespaces(); }
@Override protected Model createModel() { return new TreeModel(); }