This PR adds the functionality to format query results to the official W3C CSV and TSV formats. The new functions CSVFormat and TSVFormat can be piped to an existing pipeline of bindings and used as follows
import { CSVFormat } from 'sparql-engine'
// configure your datasets, graphs and the plan builder as usual
let pipeline = builder.execute(/* some SPARQL query */)
// plug-in the csv formatter
pipeline = pipeline.pipe(CSVFormat)
// output results
pipeline.subscribe(console.log, console.error, () => console.log('done'))
This PR adds the functionality to format query results to the official W3C CSV and TSV formats. The new functions
CSVFormat
andTSVFormat
can be piped to an existing pipeline of bindings and used as follows