Class TriGWriter

All Implemented Interfaces:
CharSink, 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 Details

    • 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, 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, ParsedIRI baseIRI)
      Creates a new TriGWriter that will write to the supplied Writer.
      Parameters:
      writer - The Writer to write the TriG document to.
      baseIRI -
  • Method Details