Interface StreamRDF

All Known Subinterfaces:
StreamRDFCounting
All Known Implementing Classes:
BatchedStreamRDF, CollectorStreamBase, CollectorStreamQuads, CollectorStreamRDF, CollectorStreamTriples, InfStreamRDFS, LoggingStreamRDF, PrintingStreamRDF, ProgressStreamRDF, StreamCanonicalLangTag, StreamCanonicalLiterals, StreamRDF2, StreamRDF2Protobuf, StreamRDF2Thrift, StreamRDFApply, StreamRDFApply, StreamRDFApplyObject, StreamRDFBase, StreamRDFCollectOne, StreamRDFCountingBase, StreamRDFReject, StreamRDFWrapper, StreamTriplesOnly, StreamWriterTriX, WriterStreamRDFBase, WriterStreamRDFBlocks, WriterStreamRDFFlat, WriterStreamRDFPlain

public interface StreamRDF
The interface for the output of RDF, such as the RIOT parsers. The parser event model is that items are emitted for significant events. The events are start/finish, emitting triples/quads/tuples as necessary, prefixes and base directives. Tuples are generalized triples or quads. A triple language will call triple(), quad language quad() in preference.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    base(String base)
    base declaration seen
    void
    Finish processing
    void
    prefix(String prefix, String iri)
    prefix declaration seen
    void
    quad(Quad quad)
    Quad emitted
    void
    Start processing
    void
    triple(org.apache.jena.graph.Triple triple)
    Triple emitted
  • Method Details

    • start

      void start()
      Start processing
    • triple

      void triple(org.apache.jena.graph.Triple triple)
      Triple emitted
    • quad

      void quad(Quad quad)
      Quad emitted
    • base

      void base(String base)
      base declaration seen
    • prefix

      void prefix(String prefix, String iri)
      prefix declaration seen
    • finish

      void finish()
      Finish processing