de.fuberlin.wiwiss.ng4j.trix
Class JenaRDFWriter

java.lang.Object
  extended by de.fuberlin.wiwiss.ng4j.trix.JenaRDFWriter
All Implemented Interfaces:
RDFWriter

public class JenaRDFWriter
extends Object
implements RDFWriter

Simple RDFWriter that adds support for the TriX syntax (see TriX specification) to the Jena framework. It writes all statements from a Jena model into a single trix:graph element, ignoring the named graph features of TriX.

Author:
Richard Cyganiak (richard@cyganiak.de)

Field Summary
 
Fields inherited from interface com.hp.hpl.jena.rdf.model.RDFWriter
NSPREFIXPROPBASE
 
Constructor Summary
JenaRDFWriter()
           
 
Method Summary
 RDFErrorHandler setErrorHandler(RDFErrorHandler errHandler)
           
 Object setProperty(String propName, Object propValue)
           
 void write(Model model, OutputStream out, String base)
           
 void write(Model model, Writer out, String base)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JenaRDFWriter

public JenaRDFWriter()
Method Detail

write

public void write(Model model,
                  Writer out,
                  String base)
Specified by:
write in interface RDFWriter

write

public void write(Model model,
                  OutputStream out,
                  String base)
Specified by:
write in interface RDFWriter

setProperty

public Object setProperty(String propName,
                          Object propValue)
Specified by:
setProperty in interface RDFWriter

setErrorHandler

public RDFErrorHandler setErrorHandler(RDFErrorHandler errHandler)
Specified by:
setErrorHandler in interface RDFWriter