public interface OWLDocumentFormat extends Serializable
Modifier and Type | Method and Description |
---|---|
PrefixDocumentFormat |
asPrefixOWLOntologyFormat()
If this format is an instance of
PrefixDocumentFormat
then this method will obtain it as a
PrefixDocumentFormat . |
String |
getKey() |
OWLOntologyLoaderMetaData |
getOntologyLoaderMetaData()
If this format describes an ontology that was loaded from some ontology document (rather than
created programmatically) there may be some meta data about the loading process.
|
Serializable |
getParameter(Serializable key,
Serializable defaultValue) |
boolean |
isAddMissingTypes()
Determines if untyped entities should automatically be typed (declared) during rendering.
|
boolean |
isPrefixOWLOntologyFormat()
Determines if this format is an instance of a format that uses prefixes to shorted IRIs.
|
boolean |
isTextual()
Determines whether this format contains textual output, as opposed to binary output.
|
void |
setAddMissingTypes(boolean addMissingTypes)
Determines if untyped entities should automatically be typed during rendering.
|
void |
setOntologyLoaderMetaData(OWLOntologyLoaderMetaData loaderMetaData)
Sets the meta data for the ontology loader.
|
void |
setParameter(Serializable key,
Serializable value) |
default boolean |
supportsRelativeIRIs()
Some formats support relative IRIs in output (all parsers must create axioms with absolute
IRIs, but some formats allow relative IRIs, with the understanding that in parsing the base
IRI will be used to convert them to absolute IRIs).
|
boolean isAddMissingTypes()
true
if untyped entities should automatically be typed during rendering,
otherwise false
.void setAddMissingTypes(boolean addMissingTypes)
addMissingTypes
- true
if untyped entities should automatically be typed during
rendering, otherwise false
.void setParameter(Serializable key, Serializable value)
key
- key for the new entryvalue
- value for the new entrySerializable getParameter(Serializable key, Serializable defaultValue)
key
- key for the new entrydefaultValue
- value for the new entryboolean isPrefixOWLOntologyFormat()
true
if this format is an instance of
PrefixDocumentFormat
other wise false
.@Nonnull PrefixDocumentFormat asPrefixOWLOntologyFormat()
PrefixDocumentFormat
then this method will obtain it as a
PrefixDocumentFormat
.PrefixDocumentFormat
.ClassCastException
- if this format is not an instance of
PrefixDocumentFormat
@Nonnull OWLOntologyLoaderMetaData getOntologyLoaderMetaData()
OWLOntologyFormat
will provide accessors etc. to details pertaining to the meta
data about loading.void setOntologyLoaderMetaData(@Nonnull OWLOntologyLoaderMetaData loaderMetaData)
loaderMetaData
- The metadata.NullPointerException
- if the argument is null
.boolean isTextual()
default boolean supportsRelativeIRIs()
Copyright © 2020 The University of Manchester. All rights reserved.