org.eaglei.repository.format
Class RDFHTMLWriter

java.lang.Object
  extended by org.openrdf.rio.helpers.RDFHandlerBase
      extended by org.eaglei.repository.format.RDFHTMLWriter
All Implemented Interfaces:
org.openrdf.rio.RDFHandler, org.openrdf.rio.RDFWriter

public class RDFHTMLWriter
extends org.openrdf.rio.helpers.RDFHandlerBase
implements org.openrdf.rio.RDFWriter

RDF HTML writer About the Format: Writes a simple HTML table. It is intended to let the human operator quickly evaluate the results of a graph query or "getStatements" from a clean tabular display. It is NOT intended to be styled and presented. This implementation is crude and ugly, but at least it has a small memory footprint and does not depend on building a DOM model like e.g. the more sophisticated JDOM output drivers. TODO: add namespace abbreviations of URIs for more compact and readable URIs

Version:
$Id: $
Author:
Larry Stone Started May 24, 2010

Field Summary
static org.openrdf.rio.RDFFormat FORMAT
          Constant FORMAT
static java.lang.String MIME
          Constant MIME="text/html"
 
Constructor Summary
RDFHTMLWriter(java.io.Writer out)
          Constructor for RDFHTMLWriter.
 
Method Summary
 void endRDF()
          endRDF
 org.openrdf.rio.RDFFormat getRDFFormat()
          getRDFFormat
 void handleStatement(org.openrdf.model.Statement s)
          
 void startRDF()
          startRDF
 
Methods inherited from class org.openrdf.rio.helpers.RDFHandlerBase
handleComment, handleNamespace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openrdf.rio.RDFHandler
handleComment, handleNamespace
 

Field Detail

MIME

public static final java.lang.String MIME
Constant MIME="text/html"

See Also:
Constant Field Values

FORMAT

public static final org.openrdf.rio.RDFFormat FORMAT
Constant FORMAT

Constructor Detail

RDFHTMLWriter

public RDFHTMLWriter(java.io.Writer out)

Constructor for RDFHTMLWriter.

Parameters:
out - a Writer object.
Method Detail

getRDFFormat

public org.openrdf.rio.RDFFormat getRDFFormat()

getRDFFormat

Specified by:
getRDFFormat in interface org.openrdf.rio.RDFWriter
Returns:
a RDFFormat object.

handleStatement

public void handleStatement(org.openrdf.model.Statement s)
                     throws org.openrdf.rio.RDFHandlerException

Specified by:
handleStatement in interface org.openrdf.rio.RDFHandler
Overrides:
handleStatement in class org.openrdf.rio.helpers.RDFHandlerBase
Throws:
org.openrdf.rio.RDFHandlerException

endRDF

public void endRDF()
            throws org.openrdf.rio.RDFHandlerException

endRDF

Specified by:
endRDF in interface org.openrdf.rio.RDFHandler
Overrides:
endRDF in class org.openrdf.rio.helpers.RDFHandlerBase
Throws:
org.openrdf.rio.RDFHandlerException - if any.

startRDF

public void startRDF()
              throws org.openrdf.rio.RDFHandlerException

startRDF

Specified by:
startRDF in interface org.openrdf.rio.RDFHandler
Overrides:
startRDF in class org.openrdf.rio.helpers.RDFHandlerBase
Throws:
org.openrdf.rio.RDFHandlerException - if any.


Copyright © 2009-2010 Eagle-I. All Rights Reserved.