D
- the type of the ClassExpression
descriptor instantiated during
Class.Sub.buildSubClasses()
through Class.Sub.getSubClassDescriptor(Object, Object)
.public static interface ClassExpression.Sub<D extends ClassExpression> extends Class.Sub<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,D>, ClassExpression
Class.Sub
expression for a Descriptor
whose ground is OWLClass
.
It specifies how to querySubClasses()
and writeAxioms()
for the
sub-classes of the ground Class (Axiom.Descriptor.getGroundInstanceName()
).
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 |
addSubClass(org.semanticweb.owlapi.model.OWLClass instance)
It is an helper that just calls:
{@link #getSubClasses()}.add( cl)
in order to add a new class in the EntitySet list. |
default boolean |
addSubClass(java.lang.String className)
It is an helper that just calls:
{@link #getSubClasses()}.add( {@link #getOntologyReference()}.getOWLClass( propertyName))
in order to add a new class (given by name) in the EntitySet list. |
default Classes |
querySubClasses()
Queries to the OWL representation for the sub classes of
this class. |
default boolean |
removeSubClass(org.semanticweb.owlapi.model.OWLClass instance)
It is an helper that just calls:
{@link #getSubClasses()}.remove( cl)
in order to remove a class in the EntitySet list. |
default boolean |
removeSubClass(java.lang.String className)
It is an helper that just calls:
{@link #getSubClasses()}.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. |
buildSubClasses, getSubClassDescriptor, getSubClasses, readAxioms, synchroniseSubClassesFromExpressionAxioms, synchroniseSubClassesToExpressionAxioms
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 addSubClass(java.lang.String className)
{@link #getSubClasses()}.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 addSubClass(org.semanticweb.owlapi.model.OWLClass instance)
{@link #getSubClasses()}.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 removeSubClass(java.lang.String className)
{@link #getSubClasses()}.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 removeSubClass(org.semanticweb.owlapi.model.OWLClass instance)
{@link #getSubClasses()}.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 querySubClasses()
Class.Sub
this
class.querySubClasses
in interface Class.Sub<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,D extends ClassExpression>
EntitySet
contained the sub 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
).