Search in sources :

Example 1 with N3WriterFactory

use of org.openrdf.rio.n3.N3WriterFactory in project qi4j-sdk by Qi4j.

the class ApplicationXmlTest method writeN3.

private void writeN3(Iterable<Statement> graph) throws RDFHandlerException, IOException {
    RDFWriterFactory writerFactory = new N3WriterFactory();
    RDFWriter writer = writerFactory.getWriter(System.out);
    writeOutput(writer, graph);
}
Also used : RDFWriterFactory(org.openrdf.rio.RDFWriterFactory) N3WriterFactory(org.openrdf.rio.n3.N3WriterFactory) RDFWriter(org.openrdf.rio.RDFWriter)

Aggregations

RDFWriter (org.openrdf.rio.RDFWriter)1 RDFWriterFactory (org.openrdf.rio.RDFWriterFactory)1 N3WriterFactory (org.openrdf.rio.n3.N3WriterFactory)1