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.
CSVOutput
public CSVOutput()
format
public void format(OutputStream out,
ResultSet resultSet)
- Description copied from interface:
OutputFormatter
- Format a result set - output on the given stream
format
public void format(OutputStream out,
boolean booleanResult)
- Description copied from interface:
OutputFormatter
- Format a boolean result - output on the given stream
Licenced under the Apache License, Version 2.0