public interface ModelSetAddRemove extends ClosableIterable<Statement>, Lockable
Modifier and Type | Method and Description |
---|---|
void |
addAll(Iterator<? extends Statement> statement)
For each statement in the iterator, this method creates a Model named
statement.getContextURI if needed.
|
void |
addStatement(Statement statement)
This method creates a Model named statement.getContextURI if needed.
|
void |
addStatement(URI contextURI,
Resource subject,
URI predicate,
Node object)
This method creates a Model named 'contextURI' if needed.
|
void |
removeAll(Iterator<? extends Statement> statement)
For each statement in the iterator, the statement is removed form the
model named statement.getContext(); If the model named
statement.getContext() becomes empty, it remains in the ModelSet.
|
void |
removeStatement(Statement statement)
Removes the statement (s,p,o) from a model named statement.getContext().
|
void |
removeStatement(URI contextURI,
Resource subject,
URI predicate,
Node object)
Removes the statement (s,p,o) from a model named contextURI.
|
void |
removeStatements(QuadPattern quadPattern)
Find all models matching the context of the pattern and remove all
matching triple patterms from them
|
void |
removeStatements(UriOrVariable context,
ResourceOrVariable subject,
UriOrVariable predicate,
NodeOrVariable object)
Find all models matching the context, and remove all (subject, property
,object)-statements from these model
|
void |
update(DiffReader diff)
Apply the changes given by this diff
|
iterator
forEach, spliterator
void addStatement(URI contextURI, Resource subject, URI predicate, Node object) throws ModelRuntimeException
contextURI
- a URI or nullsubject
- a Resource (URI or BlankNode)predicate
- object
- a NodeModelRuntimeException
- if any internal (I/O related) exception occursvoid addStatement(Statement statement) throws ModelRuntimeException
statement
- ModelRuntimeException
- if any internal (I/O related) exception occursvoid addAll(Iterator<? extends Statement> statement) throws ModelRuntimeException
statement
- ModelRuntimeException
- if any internal (I/O related) exception occursvoid removeStatement(URI contextURI, Resource subject, URI predicate, Node object) throws ModelRuntimeException
context
- a URI or nullsubject
- a Resource (URI or BlankNode)predicate
- object
- a NodeModelRuntimeException
- if any internal (I/O related) exception occursvoid removeStatement(Statement statement) throws ModelRuntimeException
statement
- a StatementModelRuntimeException
- if any internal (I/O related) exception occursvoid removeAll(Iterator<? extends Statement> statement) throws ModelRuntimeException
statement
- ModelRuntimeException
- if any internal (I/O related) exception occursvoid removeStatements(QuadPattern quadPattern) throws ModelRuntimeException
quadPattern
- ModelRuntimeException
void removeStatements(UriOrVariable context, ResourceOrVariable subject, UriOrVariable predicate, NodeOrVariable object) throws ModelRuntimeException
ModelRuntimeException
void update(DiffReader diff) throws ModelRuntimeException
diff
- ModelRuntimeException
- if a model or statement in a model to be removed does not
exist.Copyright © 2005–2019 IT-Consulting Dr. Max Völkel | Project started at FZI Forschungszentrum Informatik, www.fzi.de. All rights reserved.