public abstract class RDFOntologyFormat extends PrefixOWLOntologyFormat
Constructor and Description |
---|
RDFOntologyFormat() |
Modifier and Type | Method and Description |
---|---|
void |
addError(RDFResourceParseError error) |
RDFParserMetaData |
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.
|
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.
|
void |
setAddMissingTypes(boolean addMissingTypes)
Determines if untyped entities should automatically be typed during rendering.
|
clearPrefixes, containsPrefixMapping, copyPrefixesFrom, copyPrefixesFrom, getDefaultPrefix, getIRI, getPrefix, getPrefixIRI, getPrefixName2PrefixMap, getPrefixNames, setDefaultPrefix, setPrefix
asPrefixOWLOntologyFormat, equals, getParameter, hashCode, isPrefixOWLOntologyFormat, setOntologyLoaderMetaData, setParameter
public boolean isAddMissingTypes()
isMissingType(org.semanticweb.owlapi.model.OWLEntity, org.semanticweb.owlapi.model.OWLOntology)
method to determine if it needs to add a type.true
if untyped entities should automatically be typed during rendering,
otherwise false
.public static boolean isMissingType(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 void setAddMissingTypes(boolean addMissingTypes)
addMissingTypes
- true
if untyped entities should automatically be typed during rendering,
otherwise false
.public RDFParserMetaData getOntologyLoaderMetaData()
OWLOntologyFormat
OWLOntologyFormat
will provide
accessors etc. to details pertaining to the meta data about loading.getOntologyLoaderMetaData
in class OWLOntologyFormat
null
.public void addError(RDFResourceParseError error)
error
- error to add to the error set