Class WriterStreamRDFBase

  • All Implemented Interfaces:
    StreamRDF
    Direct Known Subclasses:
    WriterStreamRDFBlocks, WriterStreamRDFFlat

    public abstract class WriterStreamRDFBase
    extends java.lang.Object
    implements StreamRDF
    Core engine for output of triples / quads that is streaming. Handles prefixes and base, together with the environment for processing. If fed quads, the output is valid TriG. If fed only triples, the output is valid Turtle. Not for N-Quads and N-triples.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void base​(java.lang.String base)
      base declaration seen
      void finish()
      Finish processing
      void prefix​(java.lang.String prefix, java.lang.String iri)
      prefix declaration seen
      void quad​(Quad quad)
      Quad emitted
      void start()
      Start processing
      void triple​(Triple triple)
      Triple emitted
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WriterStreamRDFBase

        public WriterStreamRDFBase​(java.io.OutputStream output,
                                   Context context)
      • WriterStreamRDFBase

        public WriterStreamRDFBase​(java.io.Writer output,
                                   Context context)
      • WriterStreamRDFBase

        public WriterStreamRDFBase​(org.apache.jena.atlas.io.IndentedWriter output,
                                   Context context)
    • Method Detail

      • start

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

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

        public final void triple​(Triple triple)
        Description copied from interface: StreamRDF
        Triple emitted
        Specified by:
        triple in interface StreamRDF
      • quad

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

        public final void base​(java.lang.String base)
        Description copied from interface: StreamRDF
        base declaration seen
        Specified by:
        base in interface StreamRDF
      • prefix

        public final void prefix​(java.lang.String prefix,
                                 java.lang.String iri)
        Description copied from interface: StreamRDF
        prefix declaration seen
        Specified by:
        prefix in interface StreamRDF