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, wait
getInputStream, getReader
public 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 OWLOntologyDocumentSource
public void setAcceptHeaders(String headers)
setAcceptHeaders
in interface OWLOntologyDocumentSource
headers
- 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()
OWLOntologyDocumentSource
getDocumentIRI
in interface OWLOntologyDocumentSource
public boolean hasAlredyFailedOnStreams()
hasAlredyFailedOnStreams
in interface OWLOntologyDocumentSource
public boolean hasAlredyFailedOnIRIResolution()
hasAlredyFailedOnIRIResolution
in interface OWLOntologyDocumentSource
public void setIRIResolutionFailed(boolean value)
OWLOntologyDocumentSource
setIRIResolutionFailed
in interface OWLOntologyDocumentSource
value
- new value for the flagpublic Optional<OWLDocumentFormat> getFormat()
getFormat
in interface OWLOntologyDocumentSource
public Optional<String> getMIMEType()
getMIMEType
in interface OWLOntologyDocumentSource
Copyright © 2020 The University of Manchester. All rights reserved.