public abstract class AbstractModelWriter extends Object implements ModelWriter
| Constructor and Description |
|---|
AbstractModelWriter() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAll(Iterator<? extends Statement> other)
Add all statements contained in 'other' to this model = 'union'
|
abstract 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.
|
public void addAll(Iterator<? extends Statement> other) throws ModelRuntimeException
ModelWriteraddAll in interface ModelWriterother - another RDF2GO modelModelRuntimeException - 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 ModelWritersubject - 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(Resource subject, URI predicate, String literal, String languageTag) throws ModelRuntimeException
ModelWriteraddStatement in interface ModelWritersubject - 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 ModelWritersubject - 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(String subjectURIString, URI predicate, String literal) throws ModelRuntimeException
ModelWriteraddStatement in interface ModelWritersubjectURIString - 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 addStatement(String subjectURIString, URI predicate, String literal, String languageTag) throws ModelRuntimeException
ModelWriteraddStatement in interface ModelWritersubjectURIString - 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 ModelWritersubjectURIString - 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(Statement statement) throws ModelRuntimeException
ModelWriteraddStatement in interface ModelWriterstatement - the statement to addModelRuntimeException - if there is either an error with the
underlying model or an IOExceptionpublic abstract void addStatement(Resource subject, URI predicate, Node object) throws ModelRuntimeException
ModelWriteraddStatement in interface ModelWritersubject - of the statementpredicate - of the statementobject - of the statementModelRuntimeException - if there is either an error with the
underlying model or an IOExceptionCopyright © 2005–2016 IT-Consulting Dr. Max V?lkel | Project started at FZI Forschungszentrum Informatik, www.fzi.de. All rights reserved.