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
ModelWriter
addAll
in interface ModelWriter
other
- another RDF2GO modelModelRuntimeException
- if there is either an error with the
underlying model or an IOException
public void addStatement(Resource subject, URI predicate, String literal) throws ModelRuntimeException
ModelWriter
addStatement
in interface ModelWriter
subject
- 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 IOException
public void addStatement(Resource subject, URI predicate, String literal, String languageTag) throws ModelRuntimeException
ModelWriter
addStatement
in interface ModelWriter
subject
- 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 IOException
public void addStatement(Resource subject, URI predicate, String literal, URI datatypeURI) throws ModelRuntimeException
ModelWriter
addStatement
in interface ModelWriter
subject
- 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 IOException
public void addStatement(String subjectURIString, URI predicate, String literal) throws ModelRuntimeException
ModelWriter
addStatement
in interface ModelWriter
subjectURIString
- interpreted as URI of the statementpredicate
- of the statementliteral
- for the PlainLiteral
ModelRuntimeException
- if there is either an error with the
underlying model or an IOException
public void addStatement(String subjectURIString, URI predicate, String literal, String languageTag) throws ModelRuntimeException
ModelWriter
addStatement
in interface ModelWriter
subjectURIString
- interpreted as a URIpredicate
- of the statementliteral
- main part of the LanguageTagLiteral
languageTag
- RDF language tag of the LanguageTagLiteral
ModelRuntimeException
- if there is either an error with the
underlying model or an IOException
public void addStatement(String subjectURIString, URI predicate, String literal, URI datatypeURI) throws ModelRuntimeException
ModelWriter
addStatement
in interface ModelWriter
subjectURIString
- interpreted as URI of the statementpredicate
- of the statementliteral
- for the DatatypeLiteral
datatypeURI
- for the DatatypeLiteral
ModelRuntimeException
- if there is either an error with the
underlying model or an IOException
public void addStatement(Statement statement) throws ModelRuntimeException
ModelWriter
addStatement
in interface ModelWriter
statement
- the statement to addModelRuntimeException
- if there is either an error with the
underlying model or an IOException
public abstract void addStatement(Resource subject, URI predicate, Node object) throws ModelRuntimeException
ModelWriter
addStatement
in interface ModelWriter
subject
- of the statementpredicate
- of the statementobject
- of the statementModelRuntimeException
- if there is either an error with the
underlying model or an IOException
Copyright © 2005–2017 IT-Consulting Dr. Max Völkel | Project started at FZI Forschungszentrum Informatik, www.fzi.de. All rights reserved.