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 |
|---|---|
IRI |
getDocumentIRI()
Gets the IRI of the ontology document.
|
Optional<OWLDocumentFormat> |
getFormat() |
Optional<String> |
getMIMEType() |
boolean |
hasAlredyFailedOnIRIResolution() |
boolean |
hasAlredyFailedOnStreams() |
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 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 © 2017 The University of Manchester. All rights reserved.