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.
|
OWLDocumentFormat |
getFormat() |
InputStream |
getInputStream()
If an input stream can be obtained from this document source then this method creates it.
|
String |
getMIMEType() |
Reader |
getReader()
Gets a reader which an ontology document can be read from.
|
boolean |
isFormatKnown() |
boolean |
isInputStreamAvailable()
Determines if an input stream is available which an ontology document can be parsed from.
|
boolean |
isMIMETypeKnown() |
boolean |
isReaderAvailable()
Determines if a reader is available which an ontology document can be parsed from.
|
default void |
setAcceptHeaders(String headers) |
boolean isReaderAvailable()
true
if a reader can be obtained from this document source, or false
if a reader cannot be obtained from this document source.@Nonnull Reader getReader()
Reader
. This method should not be called if
the isReaderAvailable
method returns false. A Runtime
execption will be
thrown if this happens.Reader
which the ontology can be read from.boolean isInputStreamAvailable()
true
if an input stream can be obtained, false
if an input stream
cannot be obtained from this document source.@Nonnull InputStream getInputStream()
isInputStreamAvailable
method returns
false
.@Nonnull IRI getDocumentIRI()
@Nullable OWLDocumentFormat getFormat()
boolean isFormatKnown()
String getMIMEType()
boolean isMIMETypeKnown()
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 headersCopyright © 2020 The University of Manchester. All rights reserved.