Class StreamRDF2Protobuf

java.lang.Object
org.apache.jena.riot.protobuf.StreamRDF2Protobuf
All Implemented Interfaces:
AutoCloseable, StreamRDF

public class StreamRDF2Protobuf extends Object implements StreamRDF, AutoCloseable
Encode StreamRDF in RDF_StreamRow and send to a handler.
See Also:
  • Method Details

    • createDelimited

      public static StreamRDF createDelimited(OutputStream outputStream, boolean withValues)
    • writeBlk

      public static void writeBlk(OutputStream outputStream, Consumer<StreamRDF> stream, boolean withValues)
    • start

      public void start()
      Description copied from interface: StreamRDF
      Start processing
      Specified by:
      start in interface StreamRDF
    • finish

      public void finish()
      Description copied from interface: StreamRDF
      Finish processing
      Specified by:
      finish in interface StreamRDF
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • base

      public void base(String base)
      Description copied from interface: StreamRDF
      base declaration seen
      Specified by:
      base in interface StreamRDF
    • prefix

      public void prefix(String prefix, String iri)
      Description copied from interface: StreamRDF
      prefix declaration seen
      Specified by:
      prefix in interface StreamRDF
    • triple

      public void triple(org.apache.jena.graph.Triple triple)
      Description copied from interface: StreamRDF
      Triple emitted
      Specified by:
      triple in interface StreamRDF
    • quad

      public void quad(Quad quad)
      Description copied from interface: StreamRDF
      Quad emitted
      Specified by:
      quad in interface StreamRDF