Package com.complexible.common.rdf
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.
-
-
Field Summary
-
Fields inherited from interface com.complexible.common.rdf.StatementSource
NO_ESTIMATE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RDFFormat
format()
Return the RDF format used by the sourceOptions
getParserConfig()
Return the parser options that should be used to parse the contents of the streamjava.io.InputStream
openStream()
Opens the input stream that backs this statement source.-
Methods inherited from interface com.complexible.common.rdf.StatementSource
containsVirtual, estimatedCount, getContext, inMemory, statements, streams
-
-
-
-
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
-
-