public class NotifyingModelLayer extends DelegatingModel implements NotifyingModel
model| Constructor and Description |
|---|
NotifyingModelLayer(Model model) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(Iterator<? extends Statement> other)
Add all statements contained in 'other' to this model = 'union'
|
void |
addModelChangedListener(ModelChangedListener listener) |
void |
addModelChangedListener(ModelChangedListener listener,
TriplePattern pattern) |
void |
addStatement(Resource subject,
URI predicate,
Node object)
adds a (subject, property ,object)-statement to this model
|
void |
addStatement(Resource subject,
URI predicate,
String literal)
adds a (subject, property, literal)-statement to the model.
|
void |
addStatement(Resource subject,
URI predicate,
String literal,
String languageTag)
adds a (subject, property, liteal, language-tag)-statement to the model.
|
void |
addStatement(Resource subject,
URI predicate,
String literal,
URI datatypeURI)
adds a (subject, property, literal ,datatype)-statement to the model.
|
void |
addStatement(Statement statement)
adds a statement to this model
|
void |
addStatement(String subjectURIString,
URI predicate,
String literal)
adds a (subject, property, literal)-statement to the model.
|
void |
addStatement(String subjectURIString,
URI predicate,
String literal,
String languageTag)
adds a (subject, property, liteal, language-tag)-statement to the model.
|
void |
addStatement(String subjectURIString,
URI predicate,
String literal,
URI datatypeURI)
adds a (subject, property, literal, data-type)-statement to the model.
|
void |
removeAll(Iterator<? extends Statement> other)
Removes all statements contained in 'other' from this model =
'difference'
|
void |
removeModelChangedListener(ModelChangedListener listener) |
void |
removeStatement(Resource subject,
URI predicate,
Node object)
remove a (subject, property ,object)-statement from the model
|
void |
removeStatement(Resource subject,
URI predicate,
String literal) |
void |
removeStatement(Resource subject,
URI predicate,
String literal,
String languageTag)
remove a (subject, property ,literal, language tag)-statement from the
model
|
void |
removeStatement(Resource subject,
URI predicate,
String literal,
URI datatypeURI)
remove a (subject, property ,literal, datatype)-statement from the model
datatype often is an uri for a xml schema datatype (xsd)
|
void |
removeStatement(Statement statement)
remove a rdf2go-statement from the model
|
void |
removeStatement(String subjectURIString,
URI predicate,
String literal) |
void |
removeStatement(String subjectURIString,
URI predicate,
String literal,
String languageTag)
remove a (subject, property ,literal, language tag)-statement from the
model
|
void |
removeStatement(String subjectURIString,
URI predicate,
String literal,
URI datatypeURI)
remove a (subject, property ,literal, datatype)-statement from the model
datatype often is an uri for a xml schema datatype (xsd)
|
void |
removeStatements(ResourceOrVariable subject,
UriOrVariable predicate,
NodeOrVariable object)
remove a (subject, property ,object)-statement from the model
|
void |
update(DiffReader diff)
Implementations with support for transactions should use them instead of
this implementation.
|
addModel, close, commit, contains, createBlankNode, createBlankNode, createURI, dump, findStatements, findStatements, getContextURI, getDelegatedModel, getDiff, getNamespace, getNamespaces, getProperty, getUnderlyingModelImplementation, isEmpty, isIsomorphicWith, isLocked, isOpen, isValidURI, iterator, lock, newRandomUniqueURI, open, queryConstruct, querySelect, readFrom, readFrom, readFrom, readFrom, readFrom, readFrom, removeAll, removeNamespace, setAutocommit, setDelegatedModel, setNamespace, setProperty, size, sparqlAsk, sparqlConstruct, sparqlDescribe, sparqlSelect, unlock, writeTo, writeTo, writeTo, writeToaddReificationOf, addReificationOf, assertModel, contains, contains, countStatements, createDatatypeLiteral, createLanguageTagLiteral, createPlainLiteral, createStatement, createTriplePattern, deleteReification, getAllReificationsOf, hasReifications, removeStatements, serializeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateDatatypeLiteral, createLanguageTagLiteral, createPlainLiteral, createStatementremoveStatementsforEach, spliteratorcontains, contains, countStatements, createTriplePatternaddReificationOf, addReificationOf, deleteReification, getAllReificationsOf, hasReificationspublic NotifyingModelLayer(Model model)
public void addAll(Iterator<? extends Statement> other) throws ModelRuntimeException
ModelWriteraddAll in interface ModelWriteraddAll in class DelegatingModelother - another RDF2GO modelModelRuntimeException - if there is either an error with the
underlying model or an IOExceptionpublic void addStatement(Resource subject, URI predicate, Node object) throws ModelRuntimeException
ModelWriteraddStatement in interface ModelWriteraddStatement in class DelegatingModelsubject - of the statementpredicate - of the statementobject - of the statementModelRuntimeException - if there is either an error with the
underlying model or an IOExceptionpublic void addStatement(Resource subject, URI predicate, String literal, String languageTag) throws ModelRuntimeException
ModelWriteraddStatement in interface ModelWriteraddStatement in class DelegatingModelsubject - URI or Object (= blankNode)predicate - of the statementliteral - main part of literal value of the statementlanguageTag - RDF language tagModelRuntimeException - if there is either an error with the
underlying model or an IOExceptionpublic void addStatement(Resource subject, URI predicate, String literal, URI datatypeURI) throws ModelRuntimeException
ModelWriteraddStatement in interface ModelWriteraddStatement in class DelegatingModelsubject - of the statementpredicate - of the statementliteral - main part of the literal of the statementdatatypeURI - for the datatype part of the literalModelRuntimeException - if there is either an error with the
underlying model or an IOExceptionpublic void addStatement(Resource subject, URI predicate, String literal) throws ModelRuntimeException
ModelWriteraddStatement in interface ModelWriteraddStatement in class DelegatingModelsubject - of the statementpredicate - of the statementliteral - of the statement. A PlainLiteral will be created.ModelRuntimeException - if there is either an error with the
underlying model or an IOExceptionpublic void addStatement(Statement statement) throws ModelRuntimeException
ModelWriteraddStatement in interface ModelWriteraddStatement in class DelegatingModelstatement - the statement to addModelRuntimeException - if there is either an error with the
underlying model or an IOExceptionpublic void addStatement(String subjectURIString, URI predicate, String literal, String languageTag) throws ModelRuntimeException
ModelWriteraddStatement in interface ModelWriteraddStatement in class DelegatingModelsubjectURIString - interpreted as a URIpredicate - of the statementliteral - main part of the LanguageTagLiterallanguageTag - RDF language tag of the LanguageTagLiteralModelRuntimeException - if there is either an error with the
underlying model or an IOExceptionpublic void addStatement(String subjectURIString, URI predicate, String literal, URI datatypeURI) throws ModelRuntimeException
ModelWriteraddStatement in interface ModelWriteraddStatement in class DelegatingModelsubjectURIString - interpreted as URI of the statementpredicate - of the statementliteral - for the DatatypeLiteraldatatypeURI - for the DatatypeLiteralModelRuntimeException - if there is either an error with the
underlying model or an IOExceptionpublic void addStatement(String subjectURIString, URI predicate, String literal) throws ModelRuntimeException
ModelWriteraddStatement in interface ModelWriteraddStatement in class DelegatingModelsubjectURIString - interpreted as URI of the statementpredicate - of the statementliteral - for the PlainLiteralModelRuntimeException - if there is either an error with the
underlying model or an IOExceptionpublic void removeAll(Iterator<? extends Statement> other) throws ModelRuntimeException
ModelAddRemoveremoveAll in interface ModelAddRemoveremoveAll in class DelegatingModelModelRuntimeExceptionpublic void removeStatement(Resource subject, URI predicate, Node object) throws ModelRuntimeException
ModelAddRemoveremoveStatement in interface ModelAddRemoveremoveStatement in class DelegatingModelsubject - URI or Object (= blankNode)object - URI or String (=plainLiteral) or BlankNode (=blankNode) or
TypedLiteral or LanguageTagLiteralModelRuntimeExceptionpublic void removeStatement(Resource subject, URI predicate, String literal, String languageTag) throws ModelRuntimeException
ModelAddRemoveremoveStatement in interface ModelAddRemoveremoveStatement in class DelegatingModelModelRuntimeExceptionpublic void removeStatement(Resource subject, URI predicate, String literal, URI datatypeURI) throws ModelRuntimeException
ModelAddRemoveremoveStatement in interface ModelAddRemoveremoveStatement in class DelegatingModelModelRuntimeExceptionpublic void removeStatement(Resource subject, URI predicate, String literal) throws ModelRuntimeException
removeStatement in interface ModelAddRemoveremoveStatement in class DelegatingModelModelRuntimeExceptionpublic void removeStatement(Statement statement) throws ModelRuntimeException
ModelAddRemoveremoveStatement in interface ModelAddRemoveremoveStatement in class DelegatingModelModelRuntimeExceptionpublic void removeStatement(String subjectURIString, URI predicate, String literal, String languageTag) throws ModelRuntimeException
ModelAddRemoveremoveStatement in interface ModelAddRemoveremoveStatement in class DelegatingModelModelRuntimeExceptionpublic void removeStatement(String subjectURIString, URI predicate, String literal, URI datatypeURI) throws ModelRuntimeException
ModelAddRemoveremoveStatement in interface ModelAddRemoveremoveStatement in class DelegatingModelModelRuntimeExceptionpublic void removeStatement(String subjectURIString, URI predicate, String literal) throws ModelRuntimeException
removeStatement in interface ModelAddRemoveremoveStatement in class DelegatingModelModelRuntimeExceptionpublic void removeStatements(ResourceOrVariable subject, UriOrVariable predicate, NodeOrVariable object) throws ModelRuntimeException
ModelRemovePatternsremoveStatements in interface ModelRemovePatternsremoveStatements in class DelegatingModelsubject - URI or Object (= blankNode)object - URI or String (=plainLiteral) or BlankNode (=blankNode) or
TypedLiteral or LanguageTagLiteralModelRuntimeExceptionpublic void update(DiffReader diff) throws ModelRuntimeException
AbstractModelupdate in interface ModelAddRemoveupdate in class DelegatingModelModelRuntimeExceptionpublic void addModelChangedListener(ModelChangedListener listener, TriplePattern pattern)
addModelChangedListener in interface NotifyingModellistener - must not be null; gets notified on model change eventspattern - all add or remove statement events matching the pattern
will be send to the listener. Updates are always send.public void addModelChangedListener(ModelChangedListener listener)
addModelChangedListener in interface NotifyingModelpublic void removeModelChangedListener(ModelChangedListener listener)
removeModelChangedListener in interface NotifyingModelCopyright © 2005–2016 IT-Consulting Dr. Max V?lkel | Project started at FZI Forschungszentrum Informatik, www.fzi.de. All rights reserved.