Interface RDFStreamSupplier

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable, StatementSource
    All Known Subinterfaces:
    RDFFileSupplier

    public interface RDFStreamSupplier
    extends StatementSource

    A statement source that produces statements by parsing the contents of an input stream. Implementations of this this interface may *not* be reusable, i.e. iterating over the statements in the source may deplete it.

    • Method Detail

      • format

        RDFFormat format()
        Return the RDF format used by the source
        Returns:
        the format
      • getParserConfig

        Options getParserConfig()
        Return the parser options that should be used to parse the contents of the stream
        Returns:
        the parser config
      • openStream

        java.io.InputStream openStream()
                                throws java.io.IOException
        Opens the input stream that backs this statement source.
        Returns:
        the input stream
        Throws:
        java.io.IOException