public class OntologyImpl extends OntResourceImpl implements Ontology
Implementation of the Ontology interface, encapsulating nodes that hold the meta-data about whole ontologies.
| Modifier and Type | Field and Description |
|---|---|
static Implementation |
factory
A factory for generating Ontology facets from nodes in enhanced graphs.
|
KNOWN_LANGUAGESrdfNodeFactory| Constructor and Description |
|---|
OntologyImpl(Node n,
EnhGraph g)
Construct an ontology metadata node represented by the given node in the given graph.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBackwardCompatibleWith(Resource res)
Add a resource representing an ontology that this ontology
(strictly, the ontology represented by this node) is backwards compatible with.
|
void |
addImport(Resource res)
Add a resource representing an ontology that this ontology
(strictly, the ontology represented by this node) imports.
|
void |
addIncompatibleWith(Resource res)
Add a resource representing an ontology that this ontology
(strictly, the ontology represented by this node) is incompatible with.
|
void |
addPriorVersion(Resource res)
Add a resource representing an ontology that this ontology
(strictly, the ontology represented by this node) supercedes.
|
OntResource |
getBackwardCompatibleWith()
Answer a resource that represents an ontology that is backwards compatible with this ontology.
|
OntResource |
getImport()
Answer a resource that represents an ontology imported by this ontology.
|
OntResource |
getIncompatibleWith()
Answer a resource that represents an ontology that is incompatible with this ontology.
|
OntResource |
getPriorVersion()
Answer a resource that represents an ontology that is superceded by this ontology.
|
boolean |
hasPriorVersion(Resource res)
Answer true if this ontology (the ontology represented by this
resource) supercedes the given resource.
|
boolean |
imports(Resource res)
Answer true if this ontology (the ontology represented by this
resource) imports the given resource.
|
boolean |
isBackwardCompatibleWith(Resource res)
Answer true if this ontology (the ontology represented by this
resource) is backward compatible with the given resource.
|
boolean |
isIncompatibleWith(Resource res)
Answer true if this ontology (the ontology represented by this
resource) is incompatible with the given resource.
|
ExtendedIterator<OntResource> |
listBackwardCompatibleWith()
Answer an iterator over all of the resources representing
ontologies that this ontology is backwards compatible with.
|
ExtendedIterator<OntResource> |
listImports()
Answer an iterator over all of the resources representing ontologies imported by this ontology.
|
ExtendedIterator<OntResource> |
listIncompatibleWith()
Answer an iterator over all of the resources representing
ontologies that this ontology is incompatible with.
|
ExtendedIterator<OntResource> |
listPriorVersion()
Answer an iterator over all of the resources representing
ontologies that this ontology supercedes.
|
void |
removeBackwardCompatibleWith(Resource res)
Remove the statement that this ontology is backwards compatible with
the ontology represented by the given resource.
|
void |
removeImport(Resource res)
Remove the statement that this ontology imports the ontology represented by the given resource.
|
void |
removeIncompatibleWith(Resource res)
Remove the statement that the given ontology is incompatible with this ontology.
|
void |
removePriorVersion(Resource res)
Remove the statement that the given ontology is a prior version of this ontology.
|
void |
setBackwardCompatibleWith(Resource res)
Assert that this ontology is backward compatible with the given ontology.
|
void |
setImport(Resource res)
Assert that this ontology imports only the given ontology.
|
void |
setIncompatibleWith(Resource res)
Assert that this ontology is incompatible with the given ontology.
|
void |
setPriorVersion(Resource res)
Assert that this ontology is a new version of the given ontology.
|
addComment, addComment, addDifferentFrom, addIsDefinedBy, addLabel, addLabel, addRDFType, addSameAs, addSeeAlso, addVersionInfo, asAllDifferent, asAnnotationProperty, asClass, asDataRange, asDatatypeProperty, asIndividual, asObjectProperty, asOntology, asProperty, getCardinality, getComment, getDifferentFrom, getIsDefinedBy, getLabel, getOntModel, getProfile, getPropertyValue, getRDFType, getRDFType, getSameAs, getSeeAlso, getVersionInfo, hasComment, hasComment, hasLabel, hasLabel, hasRDFType, hasRDFType, hasRDFType, hasSeeAlso, hasVersionInfo, isAllDifferent, isAnnotationProperty, isClass, isDataRange, isDatatypeProperty, isDefinedBy, isDifferentFrom, isIndividual, isObjectProperty, isOntLanguageTerm, isOntology, isProperty, isSameAs, listComments, listDifferentFrom, listIsDefinedBy, listLabels, listPropertyValues, listRDFTypes, listSameAs, listSeeAlso, listVersionInfo, remove, removeComment, removeComment, removeDefinedBy, removeDifferentFrom, removeLabel, removeLabel, removeProperty, removeRDFType, removeSameAs, removeSeeAlso, removeVersionInfo, setComment, setDifferentFrom, setIsDefinedBy, setLabel, setPropertyValue, setRDFType, setSameAs, setSeeAlso, setVersionInfoabort, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, addProperty, asLiteral, asResource, begin, commit, getId, getLocalName, getModel, getNameSpace, getProperty, getProperty, getPropertyResourceValue, getRequiredProperty, getRequiredProperty, getStmtTerm, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, inModel, listProperties, listProperties, listProperties, removeAll, removeProperties, toString, visitWithas, asNode, canAs, equals, getGraph, hashCode, isAnon, isLiteral, isResource, isStmtResource, isURIResource, isValid, viewAsaddView, supportsaddComment, addComment, addDifferentFrom, addIsDefinedBy, addLabel, addLabel, addRDFType, addSameAs, addSeeAlso, addVersionInfo, asAllDifferent, asAnnotationProperty, asClass, asDataRange, asDatatypeProperty, asIndividual, asObjectProperty, asOntology, asProperty, getCardinality, getComment, getDifferentFrom, getIsDefinedBy, getLabel, getOntModel, getProfile, getPropertyValue, getRDFType, getRDFType, getSameAs, getSeeAlso, getVersionInfo, hasComment, hasComment, hasLabel, hasLabel, hasRDFType, hasRDFType, hasRDFType, hasSeeAlso, hasVersionInfo, isAllDifferent, isAnnotationProperty, isClass, isDataRange, isDatatypeProperty, isDefinedBy, isDifferentFrom, isIndividual, isObjectProperty, isOntLanguageTerm, isOntology, isProperty, isSameAs, listComments, listDifferentFrom, listIsDefinedBy, listLabels, listPropertyValues, listRDFTypes, listSameAs, listSeeAlso, listVersionInfo, remove, removeComment, removeComment, removeDefinedBy, removeDifferentFrom, removeLabel, removeLabel, removeProperty, removeRDFType, removeSameAs, removeSeeAlso, removeVersionInfo, setComment, setDifferentFrom, setIsDefinedBy, setLabel, setPropertyValue, setRDFType, setSameAs, setSeeAlso, setVersionInfoabort, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addLiteral, addProperty, addProperty, addProperty, addProperty, begin, commit, equals, getId, getLocalName, getNameSpace, getProperty, getProperty, getPropertyResourceValue, getRequiredProperty, getRequiredProperty, getStmtTerm, getURI, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasLiteral, hasProperty, hasProperty, hasProperty, hasProperty, hasURI, inModel, listProperties, listProperties, listProperties, removeAll, removeProperties, toStringas, asLiteral, asResource, canAs, getModel, isAnon, isLiteral, isResource, isStmtResource, isURIResource, visitWithasNodepublic static Implementation factory
public void setImport(Resource res)
Assert that this ontology imports only the given ontology. Any existing
statements for sameAs will be removed.
setImport in interface Ontologyres - Represents a resource that this ontology imports.ProfileException - If the Profile.IMPORTS() property is not supported in the current language profile.public void addImport(Resource res)
Add a resource representing an ontology that this ontology (strictly, the ontology represented by this node) imports.
addImport in interface Ontologyres - Represents a resource that this ontology imports.ProfileException - If the Profile.IMPORTS() property is not supported in the current language profile.public OntResource getImport()
Answer a resource that represents an ontology imported by this ontology. If there is more than one such resource, an arbitrary selection is made.
getImport in interface OntologyProfileException - If the Profile.IMPORTS() property is not supported in the current language profile.public ExtendedIterator<OntResource> listImports()
Answer an iterator over all of the resources representing ontologies imported by this ontology.
Each element of the iterator will be an OntResource.
listImports in interface OntologyProfileException - If the Profile.IMPORTS() property is not supported in the current language profile.public boolean imports(Resource res)
Answer true if this ontology (the ontology represented by this resource) imports the given resource.
public void removeImport(Resource res)
Remove the statement that this ontology imports the ontology represented by the given resource. If this statement is not true of the current model, nothing happens.
removeImport in interface Ontologyres - A resource that represents an ontology that is no longer to be importedpublic void setBackwardCompatibleWith(Resource res)
Assert that this ontology is backward compatible with the given ontology. Any existing
statements for sameAs will be removed.
setBackwardCompatibleWith in interface Ontologyres - Represents a resource that this ontology is compatible with.ProfileException - If the Profile.BACKWARD_COMPATIBLE_WITH() property is not supported in the current language profile.public void addBackwardCompatibleWith(Resource res)
Add a resource representing an ontology that this ontology (strictly, the ontology represented by this node) is backwards compatible with.
addBackwardCompatibleWith in interface Ontologyres - Represents a resource that this ontology is compatible with.ProfileException - If the Profile.BACKWARD_COMPATIBLE_WITH() property is not supported in the current language profile.public OntResource getBackwardCompatibleWith()
Answer a resource that represents an ontology that is backwards compatible with this ontology. If there is more than one such resource, an arbitrary selection is made.
getBackwardCompatibleWith in interface OntologyProfileException - If the Profile.BACKWARD_COMPATIBLE_WITH() property is not supported in the current language profile.public ExtendedIterator<OntResource> listBackwardCompatibleWith()
Answer an iterator over all of the resources representing
ontologies that this ontology is backwards compatible with.
Each element of the iterator will be an OntResource.
listBackwardCompatibleWith in interface OntologyProfileException - If the Profile.BACKWARD_COMPATIBLE_WITH() property is not supported in the current language profile.public boolean isBackwardCompatibleWith(Resource res)
Answer true if this ontology (the ontology represented by this resource) is backward compatible with the given resource.
isBackwardCompatibleWith in interface Ontologyres - A resource to test againstrespublic void removeBackwardCompatibleWith(Resource res)
Remove the statement that this ontology is backwards compatible with the ontology represented by the given resource. If this statement is not true of the current model, nothing happens.
removeBackwardCompatibleWith in interface Ontologyres - A resource that represents an ontology that is no longer to be importedpublic void setPriorVersion(Resource res)
Assert that this ontology is a new version of the given ontology. Any existing
statements for priorVersion will be removed.
setPriorVersion in interface Ontologyres - Represents a resource that this ontology supercedes.ProfileException - If the Profile.PRIOR_VERSION() property is not supported in the current language profile.public void addPriorVersion(Resource res)
Add a resource representing an ontology that this ontology (strictly, the ontology represented by this node) supercedes.
addPriorVersion in interface Ontologyres - Represents a resource that this ontology supercedes.ProfileException - If the Profile.PRIOR_VERSION() property is not supported in the current language profile.public OntResource getPriorVersion()
Answer a resource that represents an ontology that is superceded by this ontology. If there is more than one such resource, an arbitrary selection is made.
getPriorVersion in interface OntologyProfileException - If the Profile.PRIOR_VERSION() property is not supported in the current language profile.public ExtendedIterator<OntResource> listPriorVersion()
Answer an iterator over all of the resources representing
ontologies that this ontology supercedes.
Each element of the iterator will be an OntResource.
listPriorVersion in interface OntologyProfileException - If the Profile.PRIOR_VERSION() property is not supported in the current language profile.public boolean hasPriorVersion(Resource res)
Answer true if this ontology (the ontology represented by this resource) supercedes the given resource.
hasPriorVersion in interface Ontologyres - A resource to test againstrespublic void removePriorVersion(Resource res)
Remove the statement that the given ontology is a prior version of this ontology. If this statement is not true of the current model, nothing happens.
removePriorVersion in interface Ontologyres - A resource that represents an ontology that is no longer a prior version of this ontologypublic void setIncompatibleWith(Resource res)
Assert that this ontology is incompatible with the given ontology. Any existing
statements for incompatibleWith will be removed.
setIncompatibleWith in interface Ontologyres - Represents a resource that this ontology is incompatible with.ProfileException - If the Profile.INCOMPATIBLE_WITH() property is not supported in the current language profile.public void addIncompatibleWith(Resource res)
Add a resource representing an ontology that this ontology (strictly, the ontology represented by this node) is incompatible with.
addIncompatibleWith in interface Ontologyres - Represents a resource that this ontology is incompatible with.ProfileException - If the Profile.INCOMPATIBLE_WITH() property is not supported in the current language profile.public OntResource getIncompatibleWith()
Answer a resource that represents an ontology that is incompatible with this ontology. If there is more than one such resource, an arbitrary selection is made.
getIncompatibleWith in interface OntologyProfileException - If the Profile.INCOMPATIBLE_WITH() property is not supported in the current language profile.public ExtendedIterator<OntResource> listIncompatibleWith()
Answer an iterator over all of the resources representing
ontologies that this ontology is incompatible with.
Each element of the iterator will be an OntResource.
listIncompatibleWith in interface OntologyProfileException - If the Profile.INCOMPATIBLE_WITH() property is not supported in the current language profile.public boolean isIncompatibleWith(Resource res)
Answer true if this ontology (the ontology represented by this resource) is incompatible with the given resource.
isIncompatibleWith in interface Ontologyres - A resource to test againstrespublic void removeIncompatibleWith(Resource res)
Remove the statement that the given ontology is incompatible with this ontology. If this statement is not true of the current model, nothing happens.
removeIncompatibleWith in interface Ontologyres - A resource that represents an ontology that is no longer incompatible with this ontologyLicenced under the Apache License, Version 2.0