Class RDFJSONWriter

java.lang.Object
org.apache.jena.riot.writer.WriterGraphRIOTBase
org.apache.jena.riot.writer.RDFJSONWriter
All Implemented Interfaces:
WriterGraphRIOT

public class RDFJSONWriter extends WriterGraphRIOTBase
RDF-JSON.

This is not JSON-LD.

See Also:
  • Constructor Details

    • RDFJSONWriter

      public RDFJSONWriter()
  • Method Details

    • output

      public static void output(OutputStream out, org.apache.jena.graph.Graph graph)
    • output

      public static void output(Writer out, org.apache.jena.graph.Graph graph)
    • getLang

      public Lang getLang()
    • write

      public void write(Writer out, org.apache.jena.graph.Graph graph, PrefixMap prefixMap, String baseURI, Context context)
      Description copied from interface: WriterGraphRIOT
      Use of Writer is discouraged - let the serializer manage character sets in accordance with the format
      Specified by:
      write in interface WriterGraphRIOT
      Specified by:
      write in class WriterGraphRIOTBase
      Parameters:
      out - Writer
      graph - Graph to be written
      prefixMap - PrefixMap - maybe null (default should be to use the prefix mapping from the Graph)
      baseURI - base URI - may be null for "none"
      context - Context (see specific implementation for details)
    • write

      public void write(OutputStream out, org.apache.jena.graph.Graph graph, PrefixMap prefixMap, String baseURI, Context context)
      Specified by:
      write in interface WriterGraphRIOT
      Specified by:
      write in class WriterGraphRIOTBase
      Parameters:
      out - OutputStream
      graph - Graph to be written
      prefixMap - PrefixMap - maybe null (default should be to use the prefix mapping from the Graph)
      baseURI - base URI - may be null for "none"
      context - Context (see specific implementation for details)