public abstract class OWLOntologyDocumentSourceBase extends Object implements OWLOntologyDocumentSource
| Constructor and Description |
|---|
OWLOntologyDocumentSourceBase(IRI iri,
OWLDocumentFormat format,
String mime)
Constructs an ontology input source using the specified file.
|
OWLOntologyDocumentSourceBase(String iriPrefix,
OWLDocumentFormat format,
String mime)
Constructs an ontology input source using the specified file.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
getAcceptHeaders() |
IRI |
getDocumentIRI()
Gets the IRI of the ontology document.
|
Optional<OWLDocumentFormat> |
getFormat() |
Optional<String> |
getMIMEType() |
boolean |
hasAlredyFailedOnIRIResolution() |
boolean |
hasAlredyFailedOnStreams() |
void |
setAcceptHeaders(String headers) |
void |
setIRIResolutionFailed(boolean value)
IRI resolution does not happen inside this class.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInputStream, getReaderpublic OWLOntologyDocumentSourceBase(IRI iri, @Nullable OWLDocumentFormat format, @Nullable String mime)
iri - document IRIformat - ontology format. If null, it is considered unspecifiedmime - mime type. If null or empty, it is considered unspecified.public OWLOntologyDocumentSourceBase(String iriPrefix, @Nullable OWLDocumentFormat format, @Nullable String mime)
iriPrefix - document IRI prefix - used to generate a new IRIformat - ontology format. If null, it is considered unspecifiedmime - mime type. If null or empty, it is considered unspecified.public Optional<String> getAcceptHeaders()
getAcceptHeaders in interface OWLOntologyDocumentSourcepublic void setAcceptHeaders(String headers)
setAcceptHeaders in interface OWLOntologyDocumentSourceheaders - accept headers; if not set, the mime type will be used; if that is also
missing, the available parsers will contribute the headerspublic final IRI getDocumentIRI()
OWLOntologyDocumentSourcegetDocumentIRI in interface OWLOntologyDocumentSourcepublic boolean hasAlredyFailedOnStreams()
hasAlredyFailedOnStreams in interface OWLOntologyDocumentSourcepublic boolean hasAlredyFailedOnIRIResolution()
hasAlredyFailedOnIRIResolution in interface OWLOntologyDocumentSourcepublic void setIRIResolutionFailed(boolean value)
OWLOntologyDocumentSourcesetIRIResolutionFailed in interface OWLOntologyDocumentSourcevalue - new value for the flagpublic Optional<OWLDocumentFormat> getFormat()
getFormat in interface OWLOntologyDocumentSourcepublic Optional<String> getMIMEType()
getMIMEType in interface OWLOntologyDocumentSourceCopyright © 2019 The University of Manchester. All rights reserved.