org.ontoware.rdf2go.model
Interface ModelWriter

All Known Subinterfaces:
Diff, Model, ModelAddRemove, ModelRemovePatterns

public interface ModelWriter

Author:
voelkel

Method Summary
 void addAll(java.util.Iterator<? extends Statement> other)
          Add all statements contained in 'other' to this model = 'union'
 void addStatement(Resource subject, URI predicate, Node object)
          adds a (subject, property ,object)-statement to this model
 void addStatement(Resource subject, URI predicate, java.lang.String literal)
          adds a (subject, property, literal)-statement to the model.
 void addStatement(Resource subject, URI predicate, java.lang.String literal, java.lang.String languageTag)
          adds a (subject, property, liteal, language-tag)-statement to the model.
 void addStatement(Resource subject, URI predicate, java.lang.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(java.lang.String subjectURIString, URI predicate, java.lang.String literal)
          adds a (subject, property, literal)-statement to the model.
 void addStatement(java.lang.String subjectURIString, URI predicate, java.lang.String literal, java.lang.String languageTag)
          adds a (subject, property, liteal, language-tag)-statement to the model.
 void addStatement(java.lang.String subjectURIString, URI predicate, java.lang.String literal, URI datatypeURI)
          adds a (subject, property, literal, data-type)-statement to the model.
 

Method Detail

addStatement

void addStatement(Statement statement)
                  throws ModelRuntimeException
adds a statement to this model

Parameters:
statement - the statement to add
Throws:
ModelRuntimeException

addAll

void addAll(java.util.Iterator<? extends Statement> other)
            throws ModelRuntimeException
Add all statements contained in 'other' to this model = 'union'

Parameters:
other - another RDF2GO model
Throws:
ModelRuntimeException

addStatement

void addStatement(Resource subject,
                  URI predicate,
                  Node object)
                  throws ModelRuntimeException
adds a (subject, property ,object)-statement to this model

Parameters:
subject -
predicate -
object -
Throws:
ModelRuntimeException

addStatement

void addStatement(Resource subject,
                  URI predicate,
                  java.lang.String literal,
                  java.lang.String languageTag)
                  throws ModelRuntimeException
adds a (subject, property, liteal, language-tag)-statement to the model. This method is intended to give the user convenience and allows the underlying implementation to convert directly to native objects without converting to RDF2Go objects first.

Parameters:
subject - URI or Object (= blankNode)
predicate -
literal -
languageTag - RDF language tag
Throws:
ModelRuntimeException

addStatement

void addStatement(Resource subject,
                  URI predicate,
                  java.lang.String literal,
                  URI datatypeURI)
                  throws ModelRuntimeException
adds a (subject, property, literal ,datatype)-statement to the model. This method is intended to give the user convenience and allows the underlying implementation to convert directly to native objects without converting to RDF2Go objects first. datatype normaly is an uri for a xml schema datatype (xsd)

Parameters:
subject -
predicate -
literal -
datatypeURI -
Throws:
ModelRuntimeException

addStatement

void addStatement(Resource subject,
                  URI predicate,
                  java.lang.String literal)
                  throws ModelRuntimeException
adds a (subject, property, literal)-statement to the model. This method is intended to give the user convenience and allows the underlying implementation to convert directly to native objects without converting to RDF2Go objects first.

Parameters:
subject -
predicate -
literal -
Throws:
ModelRuntimeException

addStatement

void addStatement(java.lang.String subjectURIString,
                  URI predicate,
                  java.lang.String literal,
                  java.lang.String languageTag)
                  throws ModelRuntimeException
adds a (subject, property, liteal, language-tag)-statement to the model. This method is intended to give the user convenience and allows the underlying implementation to convert directly to native objects without converting to RDF2Go objects first.

Parameters:
subject - - interpretded as a URI
predicate -
literal -
languageTag - RDF language tag
Throws:
ModelRuntimeException

addStatement

void addStatement(java.lang.String subjectURIString,
                  URI predicate,
                  java.lang.String literal,
                  URI datatypeURI)
                  throws ModelRuntimeException
adds a (subject, property, literal, data-type)-statement to the model. This method is intended to give the user convenience and allows the underlying implementation to convert directly to native objects without converting to RDF2Go objects first. data-type normally is an URI for a XML schema datatype (XSD)

Parameters:
subject -
predicate -
literal -
datatypeURI -
Throws:
ModelRuntimeException

addStatement

void addStatement(java.lang.String subjectURIString,
                  URI predicate,
                  java.lang.String literal)
                  throws ModelRuntimeException
adds a (subject, property, literal)-statement to the model. This method is intended to give the user convenience and allows the underlying implementation to convert directly to native objects without converting to RDF2Go objects first.

Parameters:
subject -
predicate -
literal -
Throws:
ModelRuntimeException


Copyright © 2005-2008 FZI - Forschungszentrum Informatik | Karlsruhe | Germany. All Rights Reserved.