public abstract class OWLDocumentFormatImpl extends Object implements OWLDocumentFormat
| Constructor and Description |
|---|
OWLDocumentFormatImpl() |
| Modifier and Type | Method and Description |
|---|---|
static Collection<IRI> |
determineIllegalPunnings(boolean add,
Collection<OWLEntity> signature,
Collection<IRI> punnedEntities) |
boolean |
equals(Object obj) |
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) |
int |
hashCode() |
boolean |
isAddMissingTypes()
Determines if untyped entities should automatically be typed (declared) during rendering.
|
static boolean |
isMissingType(OWLEntity entity,
OWLOntology ontology)
Determines if a declaration axiom (type triple) needs to be added to the specified ontology
for the given entity.
|
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) |
String |
toString() |
asPrefixOWLOntologyFormat, getKey, isPrefixOWLOntologyFormat, supportsRelativeIRIspublic boolean isAddMissingTypes()
OWLDocumentFormatisAddMissingTypes in interface OWLDocumentFormattrue if untyped entities should automatically be typed during rendering,
otherwise false.public static boolean isMissingType(@Nonnull OWLEntity entity, OWLOntology ontology)
entity - The entityontology - The ontology.false if the entity is built in. false if the ontology doesn't
contain the entity in its signature. false if the entity is already declared
in the imports closure of the ontology. false if the transitive imports does
not contain the ontology but the entity is contained in the signature of one of the
imported ontologies, true if none of the previous conditions are met.public static Collection<IRI> determineIllegalPunnings(boolean add, Collection<OWLEntity> signature, Collection<IRI> punnedEntities)
signature - signature for the ontologypunnedEntities - the set of entities that are known already to be punnedadd - true if missing declarations should be added. If false, no declarations will be
added.public void setAddMissingTypes(boolean addMissingTypes)
OWLDocumentFormatsetAddMissingTypes in interface OWLDocumentFormataddMissingTypes - true if untyped entities should automatically be typed during
rendering, otherwise false.public void setParameter(Serializable key, Serializable value)
setParameter in interface OWLDocumentFormatkey - key for the new entryvalue - value for the new entrypublic Serializable getParameter(Serializable key, Serializable defaultValue)
getParameter in interface OWLDocumentFormatkey - key for the new entrydefaultValue - value for the new entrypublic OWLOntologyLoaderMetaData getOntologyLoaderMetaData()
OWLDocumentFormatOWLOntologyFormat will provide accessors etc. to details pertaining to the meta
data about loading.getOntologyLoaderMetaData in interface OWLDocumentFormatpublic void setOntologyLoaderMetaData(OWLOntologyLoaderMetaData loaderMetaData)
OWLDocumentFormatsetOntologyLoaderMetaData in interface OWLDocumentFormatloaderMetaData - The metadata.public boolean isTextual()
OWLDocumentFormatisTextual in interface OWLDocumentFormatCopyright © 2020 The University of Manchester. All rights reserved.