com.hp.hpl.jena.sparql.resultset
Class CSVOutput
java.lang.Object
com.hp.hpl.jena.sparql.resultset.OutputBase
com.hp.hpl.jena.sparql.resultset.CSVOutput
- All Implemented Interfaces:
- OutputFormatter
public class CSVOutput
- extends OutputBase
Convenient comma separated values - see also TSV (tab separated values)
which outputs full RDF terms (in Turtle-style).
The CSV format supported is:
- First row is variable names without '?'
- Strings, quoted if necessary and numbers output only.
No language tags, or datatypes.
URIs are send without $lt;>
CSV is RFC 4180, but there are many variations.
|
Method Summary |
void |
format(java.io.OutputStream out,
boolean booleanResult)
Format a boolean result - output on the given stream |
void |
format(java.io.OutputStream out,
ResultSet resultSet)
Format a result set - output on the given stream |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CSVOutput
public CSVOutput()
format
public void format(java.io.OutputStream out,
ResultSet resultSet)
- Description copied from interface:
OutputFormatter
- Format a result set - output on the given stream
format
public void format(java.io.OutputStream out,
boolean booleanResult)
- Description copied from interface:
OutputFormatter
- Format a boolean result - output on the given stream
Copyright ? 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP Copyright ? 2010 Talis Systems Ltd. Copyright ? 2010, 2011 Epimorphics Ltd.