org.ontoware.rdf2go.model.impl
Class StatementWriter

java.lang.Object
  extended by org.ontoware.rdf2go.model.impl.AbstractModelWriter
      extended by org.ontoware.rdf2go.model.impl.StatementWriter
All Implemented Interfaces:
ModelWriter

public class StatementWriter
extends AbstractModelWriter
implements ModelWriter

Writes a simple Model in TRiX syntax, using a given context URI.

Author:
voelkel

Constructor Summary
StatementWriter(java.io.Writer w, URI graphName)
           
 
Method Summary
 void addStatement(Resource subject, URI predicate, Node object)
           
 void close()
           
 
Methods inherited from class org.ontoware.rdf2go.model.impl.AbstractModelWriter
addAll, addStatement, addStatement, addStatement, addStatement, addStatement, addStatement, addStatement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ontoware.rdf2go.model.ModelWriter
addAll, addStatement, addStatement, addStatement, addStatement, addStatement, addStatement, addStatement
 

Constructor Detail

StatementWriter

public StatementWriter(java.io.Writer w,
                       URI graphName)
                throws java.io.IOException
Parameters:
w -
Throws:
java.io.IOException
Method Detail

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

addStatement

public void addStatement(Resource subject,
                         URI predicate,
                         Node object)
                  throws ModelRuntimeException
Specified by:
addStatement in interface ModelWriter
Specified by:
addStatement in class AbstractModelWriter
Throws:
ModelRuntimeException


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