public interface OWLOntologyDocumentSource
Reader
InputStream
IRI
Modifier and Type | Method and Description |
---|---|
default Optional<String> |
getAcceptHeaders() |
IRI |
getDocumentIRI()
Gets the IRI of the ontology document.
|
default Optional<OWLDocumentFormat> |
getFormat() |
default Optional<InputStream> |
getInputStream()
If an input stream can be obtained from this document source then this method creates it.
|
default Optional<String> |
getMIMEType() |
default Optional<Reader> |
getReader()
Gets a reader which an ontology document can be read from.
|
boolean |
hasAlredyFailedOnIRIResolution() |
boolean |
hasAlredyFailedOnStreams() |
default void |
setAcceptHeaders(String headers) |
void |
setIRIResolutionFailed(boolean value)
IRI resolution does not happen inside this class.
|
default Optional<Reader> getReader()
Reader
. If there is no reader stream
available, returns Optional.absent.Reader
which the ontology can be read from, wrapped in an Optional.default Optional<InputStream> getInputStream()
IRI getDocumentIRI()
default Optional<OWLDocumentFormat> getFormat()
default Optional<String> getMIMEType()
default void setAcceptHeaders(String headers)
headers
- accept headers; if not set, the mime type will be used; if that is also
missing, the available parsers will contribute the headersboolean hasAlredyFailedOnStreams()
boolean hasAlredyFailedOnIRIResolution()
void setIRIResolutionFailed(boolean value)
value
- new value for the flagCopyright © 2020 The University of Manchester. All rights reserved.