Package com.complexible.common.rdf
Interface RDFStreamSupplier
- All Superinterfaces:
AutoCloseable,Closeable,StatementSource
- All Known Subinterfaces:
RDFFileSupplier
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
Modifier and TypeMethodDescriptionformat()Return the RDF format used by the sourceReturn the parser options that should be used to parse the contents of the streamOpens the input stream that backs this statement source.Methods inherited from interface com.complexible.common.rdf.StatementSource
containsVirtual, estimatedCount, getContext, inMemory, statements, streams
-
Method Details
-
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
Opens the input stream that backs this statement source.- Returns:
- the input stream
- Throws:
IOException
-