public class HierarchicalClassDesc extends ClassGround implements ClassExpression.Sub<HierarchicalClassDesc>, ClassExpression.Super<HierarchicalClassDesc>
ClassExpression
) interfaces:
ClassExpression.Sub
: to describe that a Class subsumes another Class.ClassExpression.Super
: to describe that a Class is a super-class of another Class.FullClassDesc
for an example of a 'compound' Class Descriptor that implements all ClassExpressions (aka ClassExpression
).
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>
NL
Constructor and Description |
---|
HierarchicalClassDesc(org.semanticweb.owlapi.model.OWLClass instance,
it.emarolab.amor.owlInterface.OWLReferences onto) |
HierarchicalClassDesc(org.semanticweb.owlapi.model.OWLClass instance,
java.lang.String ontoName) |
HierarchicalClassDesc(org.semanticweb.owlapi.model.OWLClass instance,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
HierarchicalClassDesc(org.semanticweb.owlapi.model.OWLClass instance,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath,
boolean bufferingChanges) |
HierarchicalClassDesc(java.lang.String instanceName,
it.emarolab.amor.owlInterface.OWLReferences onto) |
HierarchicalClassDesc(java.lang.String instanceName,
java.lang.String ontoName) |
HierarchicalClassDesc(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
HierarchicalClassDesc(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath,
boolean bufferingChanges) |
Modifier and Type | Method and Description |
---|---|
HierarchicalClassDesc |
getSubClassDescriptor(org.semanticweb.owlapi.model.OWLClass instance,
it.emarolab.amor.owlInterface.OWLReferences ontology)
This method is called by
Class.Sub.buildSubClasses() and
its purpose is to instantiate a new Class to represent
an sub class of this Class Descriptor . |
Classes |
getSubClasses()
|
HierarchicalClassDesc |
getSuperClassDescriptor(org.semanticweb.owlapi.model.OWLClass instance,
it.emarolab.amor.owlInterface.OWLReferences ontology)
This method is called by
Class.Super.buildSuperClasses() and
its purpose is to instantiate a new Class to represent
an super class of this Class Descriptor . |
Classes |
getSuperClasses()
Returns the
EntitySet that describes all the super classes of
this Class from a no OOP point of view. |
java.util.List<Axiom.MappingIntent> |
readAxioms()
This method is used to update specific
Axiom.EntitySet (or Axiom.ExpressionEntitySet ) by synchronizing
the internal state of the descriptor with the queried OWL structure, such that they are equal. |
java.lang.String |
toString() |
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. |
getGround, getNewGround, getNewGround
copyGround, equals, getGroundInstanceName, hashCode, reason, setGround, setGroundInstance, setGroundInstance
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addSubClass, addSubClass, querySubClasses, removeSubClass, removeSubClass
buildSubClasses, synchroniseSubClassesFromExpressionAxioms, synchroniseSubClassesToExpressionAxioms
addSuperClass, addSuperClass, querySuperClasses, removeSuperClass, removeSuperClass
buildSuperClasses, synchroniseSuperClassesFromExpressionAxioms, synchroniseSuperClassesToExpressionAxioms
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
public HierarchicalClassDesc(org.semanticweb.owlapi.model.OWLClass instance, it.emarolab.amor.owlInterface.OWLReferences onto)
public HierarchicalClassDesc(java.lang.String instanceName, it.emarolab.amor.owlInterface.OWLReferences onto)
public HierarchicalClassDesc(org.semanticweb.owlapi.model.OWLClass instance, java.lang.String ontoName)
public HierarchicalClassDesc(org.semanticweb.owlapi.model.OWLClass instance, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public HierarchicalClassDesc(org.semanticweb.owlapi.model.OWLClass instance, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath, boolean bufferingChanges)
public HierarchicalClassDesc(java.lang.String instanceName, java.lang.String ontoName)
public HierarchicalClassDesc(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public HierarchicalClassDesc(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath, boolean bufferingChanges)
public java.util.List<Axiom.MappingIntent> readAxioms()
Axiom.Descriptor
Axiom.EntitySet
(or Axiom.ExpressionEntitySet
) by synchronizing
the internal state of the descriptor with the queried OWL structure, such that they are equal.
It is based on EntitySet#synchroniseFrom(EntitySet)
.readAxioms
in interface Axiom.Descriptor<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass>
readAxioms
in interface Class.Sub<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,HierarchicalClassDesc>
readAxioms
in interface Class.Super<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,HierarchicalClassDesc>
Axiom.EntitySet
during the reading.
Note that the elements of the returned list, may not have the Axiom.MappingIntent.getOntologyChanges()
field
initialised (i.e.: Void
).public 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>
writeAxioms
in interface ClassExpression.Sub<HierarchicalClassDesc>
writeAxioms
in interface ClassExpression.Super<HierarchicalClassDesc>
Axiom.MappingIntent.getOntologyChanges()
field
initialised (i.e.: OWLOntologyChange
).public HierarchicalClassDesc getSubClassDescriptor(org.semanticweb.owlapi.model.OWLClass instance, it.emarolab.amor.owlInterface.OWLReferences ontology)
Class.Sub
Class.Sub.buildSubClasses()
and
its purpose is to instantiate a new Class
to represent
an sub class of this
Class
Descriptor
.getSubClassDescriptor
in interface Class.Sub<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,HierarchicalClassDesc>
instance
- the instance to ground the new Class
.ontology
- the ontology in which ground the new Class
.Axiom.Descriptor
for all the sub classes
of this
descriptor.public Classes getSubClasses()
Class.Sub
getSubClasses
in interface Class.Sub<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,HierarchicalClassDesc>
this
class.public HierarchicalClassDesc getSuperClassDescriptor(org.semanticweb.owlapi.model.OWLClass instance, it.emarolab.amor.owlInterface.OWLReferences ontology)
Class.Super
Class.Super.buildSuperClasses()
and
its purpose is to instantiate a new Class
to represent
an super class of this
Class
Descriptor
.getSuperClassDescriptor
in interface Class.Super<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,HierarchicalClassDesc>
instance
- the instance to ground the new Class
.ontology
- the ontology in which ground the new Class
.Axiom.Descriptor
for all the super classes
of this
descriptor.public Classes getSuperClasses()
Class.Super
EntitySet
that describes all the super classes of
this
Class
from a no OOP point of view.getSuperClasses
in interface Class.Super<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,HierarchicalClassDesc>
this
class.public java.lang.String toString()
toString
in class java.lang.Object