public class MORHierarchicalConcept extends MORConceptBase implements MORConcept.Sub<MORHierarchicalConcept>, MORConcept.Super<MORHierarchicalConcept>
This is an example of how use the Semantic.Descriptor
s for implement
a concept that is synchronised w.r.t. its MORConcept.Sub
and MORConcept.Super
concepts.
Its purpose is only to instanciate the MORAxioms.Concepts
for the
respective descriptions, as well as call both interfaces in the
readSemantic()
and writeSemantic()
methods.
All its constructions are based on MORConceptBase
in order
to automatically manage a grounding MORGrounding.ConceptInstance
.
You may want to use this class (see also MORHierarchicalConcept
,
as well as other classes in the it.emarolab.owloop.aMORDescriptor.utility
package)
as templates to build a specific MORConcept
descriptor that fits your needs
and maximises the OWL synchronisation efficiency.
MORConcept.Classify<D extends MORIndividual>, MORConcept.Define, MORConcept.Disjoint<D extends MORConcept>, MORConcept.Equivalent<D extends MORConcept>, MORConcept.Sub<D extends MORConcept>, MORConcept.Super<D extends MORConcept>
MORGrounding.ConceptInstance, MORGrounding.DataInstance, MORGrounding.GroundBase<J extends org.semanticweb.owlapi.model.OWLObject>, MORGrounding.IndividualInstance, MORGrounding.ObjectInstance
Semantic.Axioms<Y>, Semantic.Descriptor<O,J>, Semantic.Ground<O,J>, Semantic.MappingIntent<I extends Semantic.Ground,C>, Semantic.SemanticAxiom<S,Y>, Semantic.SemanticAxioms<F extends Semantic.SemanticAxiom<?,Y>,Y>
Constructor and Description |
---|
MORHierarchicalConcept(java.lang.String instanceName,
it.emarolab.amor.owlInterface.OWLReferences onto) |
MORHierarchicalConcept(java.lang.String instanceName,
java.lang.String ontoName) |
MORHierarchicalConcept(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
MORHierarchicalConcept(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath,
boolean bufferingChanges) |
MORHierarchicalConcept(org.semanticweb.owlapi.model.OWLClass instance,
it.emarolab.amor.owlInterface.OWLReferences onto) |
MORHierarchicalConcept(org.semanticweb.owlapi.model.OWLClass instance,
java.lang.String ontoName) |
MORHierarchicalConcept(org.semanticweb.owlapi.model.OWLClass instance,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
MORHierarchicalConcept(org.semanticweb.owlapi.model.OWLClass instance,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath,
boolean bufferingChanges) |
Modifier and Type | Method and Description |
---|---|
MORHierarchicalConcept |
getNewSubConcept(org.semanticweb.owlapi.model.OWLClass instance,
it.emarolab.amor.owlInterface.OWLReferences ontology)
This method is called by
Concept.Sub.buildSubConcept() and
its purpose is to instantiate a new Concept to represent
an sub class of this Concept Semantic.Descriptor . |
MORHierarchicalConcept |
getNewSuperConcept(org.semanticweb.owlapi.model.OWLClass instance,
it.emarolab.amor.owlInterface.OWLReferences ontology)
This method is called by
Concept.Super.buildSuperConcept() and
its purpose is to instantiate a new Concept to represent
an super class of this Concept Semantic.Descriptor . |
MORAxioms.Concepts |
getSubConcept()
Returns the
Semantic.Axioms that describes all the sub classes of
this Concept from a no OOP point of view. |
MORAxioms.Concepts |
getSuperConcept()
Returns the
Semantic.Axioms that describes all the super classes of
this Concept from a no OOP point of view. |
java.util.List<Semantic.MappingIntent> |
readSemantic()
This method is used to synchronise specific
Semantic.Axioms (or Semantic.SemanticAxioms )
from the ontology. |
java.lang.String |
toString() |
java.util.List<Semantic.MappingIntent> |
writeSemantic()
This method is used to synchronise specific
Semantic.Axioms (or Semantic.SemanticAxioms )
to the ontology. |
buildSubConcept, synchroniseSubConceptFromSemantic, synchroniseSubConceptToSemantic
buildSuperConcept, synchroniseSuperConceptFromSemantic, synchroniseSuperConceptToSemantic
copyGround, equals, hashCode, reason, setGround, setInstance, setInstance
getGroundInstance, getGroundOntology
addSubConcept, addSubConcept, querySubConcept, removeSubConcept, removeSubConcept
addSuperConcept, addSuperConcept, querySuperConcept, removeSuperConcept, removeSuperConcept
getGround, getNewGround, getNewGround
aMORlogging, getOntologyName, getOWLClass, getOWLDataFactory, getOWLDataProperty, getOWLDataType, getOWLIndividual, getOWLLiteral, getOWLName, getOWLName, getOWLObjectProperty, getOWLOntology, getReasoner, isCompleteQuery, isReasonedQuery, reason, saveOntology, saveOntology, setCompleteQuery, setReasonedQuery
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getChangingIntent, getGround, getInstance, getIntent, getOntology, groundReason, writeSemanticInconsistencySafe, writeSemanticInconsistencySafe
copyGround
public MORHierarchicalConcept(java.lang.String instanceName, it.emarolab.amor.owlInterface.OWLReferences onto)
public MORHierarchicalConcept(java.lang.String instanceName, java.lang.String ontoName)
public MORHierarchicalConcept(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public MORHierarchicalConcept(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath, boolean bufferingChanges)
public MORHierarchicalConcept(org.semanticweb.owlapi.model.OWLClass instance, it.emarolab.amor.owlInterface.OWLReferences onto)
public MORHierarchicalConcept(org.semanticweb.owlapi.model.OWLClass instance, java.lang.String ontoName)
public MORHierarchicalConcept(org.semanticweb.owlapi.model.OWLClass instance, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public MORHierarchicalConcept(org.semanticweb.owlapi.model.OWLClass instance, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath, boolean bufferingChanges)
public java.util.List<Semantic.MappingIntent> readSemantic()
Semantic.Descriptor
Semantic.Axioms
(or Semantic.SemanticAxioms
)
from the ontology. It manipulates the OWLLOOP representation to be
equal to the queried OWL structure. It is based on Axioms#synchroniseFrom(Axioms)
.readSemantic
in interface Concept.Sub<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,D extends MORConcept>
readSemantic
in interface Concept.Super<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,D extends MORConcept>
readSemantic
in interface Semantic.Descriptor<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass>
Semantic.Axioms
during the reading.
Those objects may not have the Semantic.MappingIntent.getOntologyChanges()
field
initialised (i.e.: Void
).public java.util.List<Semantic.MappingIntent> writeSemantic()
Semantic.Descriptor
Semantic.Axioms
(or Semantic.SemanticAxioms
)
to the ontology. It manipulates the OWL representation to be
equal to the OWLOOP structure. It is based on Axioms#synchroniseTo(Axioms)
.writeSemantic
in interface MORConcept.Sub<MORHierarchicalConcept>
writeSemantic
in interface MORConcept.Super<MORHierarchicalConcept>
writeSemantic
in interface Semantic.Descriptor<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass>
Semantic.MappingIntent.getOntologyChanges()
field
initialised (i.e.: OWLOntologyChange
).public MORHierarchicalConcept getNewSubConcept(org.semanticweb.owlapi.model.OWLClass instance, it.emarolab.amor.owlInterface.OWLReferences ontology)
Concept.Sub
Concept.Sub.buildSubConcept()
and
its purpose is to instantiate a new Concept
to represent
an sub class of this
Concept
Semantic.Descriptor
.getNewSubConcept
in interface Concept.Sub<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,D extends MORConcept>
instance
- the instance to ground the new Concept
.ontology
- the ontology in which ground the new Concept
.Semantic.Descriptor
for all the sub classes
of this
descriptor.public MORAxioms.Concepts getSubConcept()
Concept.Sub
Semantic.Axioms
that describes all the sub classes of
this
Concept
from a no OOP point of view.getSubConcept
in interface Concept.Sub<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,D extends MORConcept>
this
class.public MORHierarchicalConcept getNewSuperConcept(org.semanticweb.owlapi.model.OWLClass instance, it.emarolab.amor.owlInterface.OWLReferences ontology)
Concept.Super
Concept.Super.buildSuperConcept()
and
its purpose is to instantiate a new Concept
to represent
an super class of this
Concept
Semantic.Descriptor
.getNewSuperConcept
in interface Concept.Super<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,D extends MORConcept>
instance
- the instance to ground the new Concept
.ontology
- the ontology in which ground the new Concept
.Semantic.Descriptor
for all the super classes
of this
descriptor.public MORAxioms.Concepts getSuperConcept()
Concept.Super
Semantic.Axioms
that describes all the super classes of
this
Concept
from a no OOP point of view.getSuperConcept
in interface Concept.Super<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,D extends MORConcept>
this
class.public java.lang.String toString()
toString
in class java.lang.Object