Class ConsoleStreamRDF

java.lang.Object
fr.mines_stetienne.ci.sparql_generate.cli.ConsoleStreamRDF
All Implemented Interfaces:
org.apache.jena.riot.system.StreamRDF

public class ConsoleStreamRDF extends Object implements org.apache.jena.riot.system.StreamRDF
Outputs Stream RDF as Turtle, one triple per line, to a PrintStream with a PrefixMapping. The stream is flushed at the end, not closed.
Author:
Maxime Lefrançois
  • Constructor Details

    • ConsoleStreamRDF

      public ConsoleStreamRDF(PrintStream out, org.apache.jena.shared.PrefixMapping pm)
    • ConsoleStreamRDF

      public ConsoleStreamRDF(OutputStream out, org.apache.jena.shared.PrefixMapping pm)
      Writes to an output stream through a buffer, in UTF-8.
  • Method Details

    • start

      public void start()
      Specified by:
      start in interface org.apache.jena.riot.system.StreamRDF
    • base

      public void base(String string)
      Specified by:
      base in interface org.apache.jena.riot.system.StreamRDF
    • prefix

      public void prefix(String prefix, String uri)
      Specified by:
      prefix in interface org.apache.jena.riot.system.StreamRDF
    • triple

      public void triple(org.apache.jena.graph.Triple triple)
      Specified by:
      triple in interface org.apache.jena.riot.system.StreamRDF
    • quad

      public void quad(org.apache.jena.sparql.core.Quad quad)
      Specified by:
      quad in interface org.apache.jena.riot.system.StreamRDF
    • finish

      public void finish()
      Specified by:
      finish in interface org.apache.jena.riot.system.StreamRDF