public class StringDocumentSource extends OWLOntologyDocumentSourceBase
| Constructor and Description |
|---|
StringDocumentSource(String string) |
StringDocumentSource(StringDocumentTarget target) |
StringDocumentSource(String string,
IRI iri) |
StringDocumentSource(String string,
IRI documentIRI,
OWLDocumentFormat f,
String mime)
Specifies a string as an ontology document.
|
StringDocumentSource(String string,
String prefix,
OWLDocumentFormat f,
String mime)
Specifies a string as an ontology document.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<Reader> |
getReader()
Gets a reader which an ontology document can be read from.
|
getAcceptHeaders, getDocumentIRI, getFormat, getMIMEType, hasAlredyFailedOnIRIResolution, hasAlredyFailedOnStreams, setAcceptHeaders, setIRIResolutionFailedequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInputStreampublic StringDocumentSource(String string)
string - the source stringpublic StringDocumentSource(String string, IRI iri)
string - the source stringiri - The document IRIpublic StringDocumentSource(StringDocumentTarget target)
target - a document targetpublic StringDocumentSource(String string, IRI documentIRI, @Nullable OWLDocumentFormat f, @Nullable String mime)
string - The stringdocumentIRI - The document IRIf - ontology formatmime - mime typepublic Optional<Reader> getReader()
OWLOntologyDocumentSourceReader. If there is no reader stream
available, returns Optional.absent.Reader which the ontology can be read from, wrapped in an Optional.Copyright © 2021 The University of Manchester. All rights reserved.