Class WriterStreamRDFPlain

  • All Implemented Interfaces:
    StreamRDF
    Direct Known Subclasses:
    PrintingStreamRDF

    public class WriterStreamRDFPlain
    extends java.lang.Object
    implements StreamRDF
    An output of triples / quads that is streaming. It writes N-triples/N-quads.
    • Constructor Detail

      • WriterStreamRDFPlain

        public WriterStreamRDFPlain​(org.apache.jena.atlas.io.AWriter w)
        Output tuples, using UTF8 output See StreamRDFLib.writer(java.io.OutputStream) for ways to create a AWriter object.
      • WriterStreamRDFPlain

        public WriterStreamRDFPlain​(org.apache.jena.atlas.io.AWriter w,
                                    org.apache.jena.atlas.lib.CharSpace charSpace)
        Output tuples, choosing ASCII or UTF8 See StreamRDFLib.writer(java.io.OutputStream) for ways to create a AWriter object.
    • Method Detail

      • 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
      • triple

        public void triple​(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
      • base

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

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