Class TurtleTriGWriter
java.lang.Object
tech.oxfordsemantic.jrdfox.formats.TurtleTriGWriter
A class for writing RDF triples and quads in the Turtle and TriG formats.
-
Constructor Summary
ConstructorsConstructorDescriptionTurtleTriGWriter(Prefixes prefixes, OutputStream outputStream) Creates a new TurtleTriGWriter object that writes to the specified output stream. -
Method Summary
-
Constructor Details
-
TurtleTriGWriter
Creates a new TurtleTriGWriter object that writes to the specified output stream.- Parameters:
prefixes- the prefixes to be used for writing the RDF dataoutputStream- the output stream to which the RDF data will be written (using UTF8 encoding)
-
-
Method Details
-
writeTriple
-
writeQuad
-
flush
Flushes the output stream.- Throws:
IOException- if an error occurs while writing to the output stream
-
close
Flushes, then closes the output stream.- Throws:
IOException- if an error occurs
-