Class MaterializeRDFViewOfLPG.MyCachingStreamRDF

java.lang.Object
se.liu.ida.hefquin.cli.MaterializeRDFViewOfLPG.MyCachingStreamRDF
All Implemented Interfaces:
org.apache.jena.riot.system.StreamRDF
Enclosing class:
MaterializeRDFViewOfLPG

protected static class MaterializeRDFViewOfLPG.MyCachingStreamRDF extends Object implements org.apache.jena.riot.system.StreamRDF
Collects the emitted triples into a graph and writes this graph to the given OutputStream upon calling the finish() function.
  • Field Details

    • fmt

      protected final org.apache.jena.riot.RDFFormat fmt
    • out

      protected final OutputStream out
    • graph

      protected final org.apache.jena.graph.Graph graph
  • Constructor Details

    • MyCachingStreamRDF

      public MyCachingStreamRDF(org.apache.jena.riot.RDFFormat fmt, OutputStream out)
  • Method Details

    • start

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

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

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

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

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

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