D
- the type of the ClassExpression
descriptor instantiated during
Class.Disjoint.buildDisjointClasses()
through Class.Disjoint.getDisjointClassDescriptor(Object, Object)
.public static interface ClassExpression.Disjoint<D extends ClassExpression> extends Class.Disjoint<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,D>, ClassExpression
Class.Disjoint
expression for a Descriptor
whose ground is OWLClass
.
It specifies how to queryDisjointClasses()
and writeAxioms()
for the
classes disjoint 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 |
addDisjointClass(org.semanticweb.owlapi.model.OWLClass instance)
It is an helper that just calls:
{@link #getDisjointClasses()}.add( cl)
in order to add a new class in the EntitySet list. |
default boolean |
addDisjointClass(java.lang.String className)
It is an helper that just calls:
{@link #getDisjointClasses()}.add( {@link #getOntologyReference()}.getOWLClass( propertyName))
in order to add a new class (given by name) in the EntitySet list. |
default Classes |
queryDisjointClasses()
Queries to the OWL representation of the disjointed classes for
this class. |
default boolean |
removeDisjointClass(org.semanticweb.owlapi.model.OWLClass instance)
It is an helper that just calls:
{@link #getDisjointClasses()}.remove( cl)
in order to remove a class in the EntitySet list. |
default boolean |
removeDisjointClass(java.lang.String className)
It is an helper that just calls:
{@link #getDisjointClasses()}.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. |
buildDisjointClasses, getDisjointClassDescriptor, getDisjointClasses, readAxioms, synchroniseDisjointClassesFromExpressionAxioms, synchroniseDisjointClassesToExpressionAxioms
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 addDisjointClass(java.lang.String className)
{@link #getDisjointClasses()}.add( {@link #getOntologyReference()}.getOWLClass( propertyName))
in order to add a new class (given by name) in the EntitySet
list.
This method should be always synchronised with Axiom.Descriptor.writeAxiomsReasonReadAxioms()
to be perfectly aligned with the ontology, since it affects ClassExpression.Sub
EntitySet
.className
- the class name to add for synchronisation.true
if the axioms changed as a result of the call.default boolean addDisjointClass(org.semanticweb.owlapi.model.OWLClass instance)
{@link #getDisjointClasses()}.add( cl)
in order to add a new class in the EntitySet
list.
This method should be always synchronised with Axiom.Descriptor.writeAxiomsReasonReadAxioms()
to be perfectly aligned with the ontology, since it affects ClassExpression.Sub
EntitySet
.instance
- the class to add for synchronisation.true
if the axioms changed as a result of the call.default boolean removeDisjointClass(java.lang.String className)
{@link #getDisjointClasses()}.remove( {@link #getOntologyReference()}.getOWLClass( propertyName))
in order to remove a class (given by name) from the EntitySet
list.
This method should be always synchronised with Axiom.Descriptor.writeAxiomsReasonReadAxioms()
to be perfectly aligned with the ontology, since it affects ClassExpression.Sub
EntitySet
.className
- the class name to remove for synchronisation.true
if an element was removed as a result of this call.default boolean removeDisjointClass(org.semanticweb.owlapi.model.OWLClass instance)
{@link #getDisjointClasses()}.remove( cl)
in order to remove a class in the EntitySet
list.
This method should be always synchronised with Axiom.Descriptor.writeAxiomsReasonReadAxioms()
to be perfectly aligned with the ontology, since it affects ClassExpression.Sub
EntitySet
.instance
- the class to remove for synchronisation.true
if an element was removed as a result of this call.default Classes queryDisjointClasses()
Class.Disjoint
this
class.queryDisjointClasses
in interface Class.Disjoint<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,D extends ClassExpression>
EntitySet
contained the disjointed classes from
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
).