D
- the type of the ClassExpression
descriptor instantiated during
Class.Equivalent.buildEquivalentClasses()
through Class.Equivalent.getEquivalentClassDescriptor(Object, Object)
.public static interface ClassExpression.Equivalent<D extends ClassExpression> extends Class.Equivalent<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,D>, ClassExpression
Class.Equivalent
expression for a Descriptor
whose ground is OWLClass
.
It specifies how to queryEquivalentClasses()
and writeAxioms()
for the
classes equivalent to the ground Class (ClassExpression.getGroundInstance()
) .
ClassExpression.Disjoint<D extends ClassExpression>, ClassExpression.Equivalent<D extends ClassExpression>, ClassExpression.EquivalentRestriction, ClassExpression.Instance<D extends IndividualExpression>, ClassExpression.Sub<D extends ClassExpression>, ClassExpression.Super<D extends ClassExpression>
Class.Restriction<O,J,Y>
Axiom.Descriptor.OntologyReference
DescriptorGroundInterface.ConceptGroundInstance, DescriptorGroundInterface.DataGroundInstance, DescriptorGroundInterface.GroundInstance<J extends org.semanticweb.owlapi.model.OWLObject>, DescriptorGroundInterface.IndividualGroundInstance, DescriptorGroundInterface.ObjectGroundInstance
Axiom.Descriptor<O,J>, Axiom.EntitySet<Y>, Axiom.ExpressionEntity<S,Y>, Axiom.ExpressionEntitySet<F extends Axiom.ExpressionEntity<?,Y>,Y>, Axiom.Ground<O,J>, Axiom.MappingIntent<I extends Axiom.Ground,C>
Modifier and Type | Method and Description |
---|---|
default boolean |
addEquivalentClass(org.semanticweb.owlapi.model.OWLClass instance)
It is an helper that just calls:
{@link #getEquivalentClasses()}.add( cl)
in order to add a new class in the EntitySet list. |
default boolean |
addEquivalentClass(java.lang.String className)
It is an helper that just calls:
{@link #getEquivalentClasses()}.add( {@link #getOntologyReference()}.getOWLClass( propertyName))
in order to add a new class (given by name) in the EntitySet list. |
default Classes |
queryEquivalentClasses()
Queries to the OWL representation for the equivalent classes of
this class. |
default boolean |
removeEquivalentClass(org.semanticweb.owlapi.model.OWLClass instance)
It is an helper that just calls:
{@link #getEquivalentClasses()}.remove( cl)
in order to remove a class in the EntitySet list. |
default boolean |
removeEquivalentClass(java.lang.String className)
It is an helper that just calls:
{@link #getEquivalentClasses()}.remove( {@link #getOntologyReference()}.getOWLClass( propertyName))
in order to remove a class (given by name) from the EntitySet list. |
default java.util.List<Axiom.MappingIntent> |
writeAxioms()
This method is used to update the ontology with a specific
Axiom.EntitySet (or Axiom.ExpressionEntitySet )
by synchronizing the OWL representation with the internal state of the descriptor, such that they are equal. |
buildEquivalentClasses, getEquivalentClassDescriptor, getEquivalentClasses, readAxioms, synchroniseEquivalentClassesFromExpressionAxioms, synchroniseEquivalentClassesToExpressionAxioms
getGroundInstance, getGroundOntology
activateAMORlogging, getChangingIntent, getGround, getGroundInstanceName, getInstance, getIntent, getOntologyReference, groundReason, writeAxiomsReasonReadAxioms, writeAxiomsReasonReadAxioms
getOntologyName, getOWLClass, getOWLDataFactory, getOWLDataProperty, getOWLDataType, getOWLIndividual, getOWLLiteral, getOWLName, getOWLName, getOWLObjectProperty, getOWLOntology, getOWLReasoner, isCompleteQuery, isReasonedQuery, reason, saveOntology, saveOntology, setCompleteQuery, setReasonedQuery
copyGround
default boolean addEquivalentClass(java.lang.String className)
{@link #getEquivalentClasses()}.add( {@link #getOntologyReference()}.getOWLClass( propertyName))
in order to add a new class (given by name) in the EntitySet
list.className
- the class name to add for synchronisation.true
if the axioms changed as a result of the call.default boolean addEquivalentClass(org.semanticweb.owlapi.model.OWLClass instance)
{@link #getEquivalentClasses()}.add( cl)
in order to add a new class in the EntitySet
list.instance
- the class to add for synchronisation.true
if the axioms changed as a result of the call.default boolean removeEquivalentClass(java.lang.String className)
{@link #getEquivalentClasses()}.remove( {@link #getOntologyReference()}.getOWLClass( propertyName))
in order to remove a class (given by name) from the EntitySet
list.className
- the class name to remove for synchronisation.true
if an element was removed as a result of this call.default boolean removeEquivalentClass(org.semanticweb.owlapi.model.OWLClass instance)
{@link #getEquivalentClasses()}.remove( cl)
in order to remove a class in the EntitySet
list.instance
- the class to remove for synchronisation.true
if an element was removed as a result of this call.default Classes queryEquivalentClasses()
Class.Equivalent
this
class.queryEquivalentClasses
in interface Class.Equivalent<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,D extends ClassExpression>
EntitySet
contained the equivalent classes to
the OWL structure of Axiom.Descriptor.getInstance()
.default java.util.List<Axiom.MappingIntent> writeAxioms()
Axiom.Descriptor
Axiom.EntitySet
(or Axiom.ExpressionEntitySet
)
by synchronizing the OWL representation with the internal state of the descriptor, such that they are equal.
It is based on EntitySet#synchroniseTo(EntitySet)
.writeAxioms
in interface Axiom.Descriptor<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass>
Axiom.MappingIntent.getOntologyChanges()
field
initialised (i.e.: OWLOntologyChange
).