Class TriGWriter

  • All Implemented Interfaces:
    org.eclipse.rdf4j.common.io.CharSink, org.eclipse.rdf4j.common.io.Sink, RDFHandler, RDFWriter
    Direct Known Subclasses:
    TriGStarWriter

    public class TriGWriter
    extends TurtleWriter
    An extension of TurtleWriter that writes RDF documents in TriG format by adding graph scopes to the Turtle document.
    Author:
    Arjohn Kampman
    • Constructor Detail

      • TriGWriter

        public TriGWriter​(OutputStream out)
        Creates a new TriGWriter that will write to the supplied OutputStream.
        Parameters:
        out - The OutputStream to write the TriG document to.
      • TriGWriter

        public TriGWriter​(OutputStream out,
                          org.eclipse.rdf4j.common.net.ParsedIRI baseIRI)
        Creates a new TriGWriter that will write to the supplied OutputStream.
        Parameters:
        out - The OutputStream to write the TriG document to.
        baseIRI -
      • TriGWriter

        public TriGWriter​(Writer writer)
        Creates a new TriGWriter that will write to the supplied Writer.
        Parameters:
        writer - The Writer to write the TriG document to.
      • TriGWriter

        public TriGWriter​(Writer writer,
                          org.eclipse.rdf4j.common.net.ParsedIRI baseIRI)
        Creates a new TriGWriter that will write to the supplied Writer.
        Parameters:
        writer - The Writer to write the TriG document to.
        baseIRI -