public class MORFullConcept extends MORConceptBase implements MORConcept.Define, MORConcept.Disjoint<MORFullConcept>, MORConcept.Equivalent<MORFullConcept>, MORConcept.Sub<MORFullConcept>, MORConcept.Super<MORFullConcept>, MORConcept.Classify<MORLinkIndividual>
This is an example of how use the Semantic.Descriptor
s for implement
a class that is synchronised w.r.t. all interfaces of MORConcept
.
Its purpose is only to instanciate the MORAxioms.Concepts
and MORAxioms.Restrictions
for the
respective descriptions, as well as call all interfaces in the
readSemantic()
and writeSemantic()
methods.
All its constructions are based on MORConceptBase
in order
to automatically manage a grounding MORGrounding.ConceptInstance
.
In order to optimise the synchronisation efficiency (i.e.: minimize
reasoning calls) use this object only if it is necessary.
Otherwise is recommended to use an had hoc Semantic.Descriptor
.
You may want to use this class, see also MORDefinitionConcept
and MORHierarchicalConcept
(generally, all the classes in the it.emarolab.owloop.aMORDescriptor.utility
package)
as templates for doing that.
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 |
---|
MORFullConcept(java.lang.String instanceName,
it.emarolab.amor.owlInterface.OWLReferences onto) |
MORFullConcept(java.lang.String instanceName,
java.lang.String ontoName) |
MORFullConcept(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
MORFullConcept(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath,
boolean bufferingChanges) |
MORFullConcept(org.semanticweb.owlapi.model.OWLClass instance,
it.emarolab.amor.owlInterface.OWLReferences onto) |
MORFullConcept(org.semanticweb.owlapi.model.OWLClass instance,
java.lang.String ontoName) |
MORFullConcept(org.semanticweb.owlapi.model.OWLClass instance,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
MORFullConcept(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 |
---|---|
MORAxioms.Restrictions |
getDefinitionConcept()
Returns the
Semantic.Axioms that describes all the definition restriction of
this Concept from a no OOP point of view. |
MORAxioms.Concepts |
getDisjointConcept()
Returns the
Semantic.Axioms that describes all the disjointed classes of
this Concept from a no OOP point of view. |
MORAxioms.Concepts |
getEquivalentConcept()
Returns the
Semantic.Axioms that describes all the equivalent classes of
this Concept from a no OOP point of view. |
MORAxioms.Individuals |
getIndividualClassified()
Returns the
Semantic.Axioms that describes all the individual classified
in this Concept from a no OOP point of view. |
MORFullConcept |
getNewDisjointConcept(org.semanticweb.owlapi.model.OWLClass instance,
it.emarolab.amor.owlInterface.OWLReferences ontology)
This method is called by
Concept.Disjoint.buildDisjointConcept() and
its purpose is to instantiate a new Concept to represent
an class disjointed from this Concept Semantic.Descriptor . |
MORFullConcept |
getNewEquivalentConcept(org.semanticweb.owlapi.model.OWLClass instance,
it.emarolab.amor.owlInterface.OWLReferences ontology)
This method is called by
Concept.Equivalent.buildEquivalentConcept() and
its purpose is to instantiate a new Concept to represent
an class equivalent from this Concept Semantic.Descriptor . |
MORLinkIndividual |
getNewIndividualClassified(org.semanticweb.owlapi.model.OWLNamedIndividual instance,
it.emarolab.amor.owlInterface.OWLReferences ontology)
This method is called by
Concept.Classify.buildIndividualClassified() and
its purpose is to instantiate a new Individual to represent
an individual classified in this Concept Semantic.Descriptor . |
MORFullConcept |
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 . |
MORFullConcept |
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. |
buildIndividualClassified, synchroniseIndividualClassifiedFromSemantic, synchroniseIndividualClassifiedToSemantic
synchroniseDefinitionConceptFromSemantic, synchroniseDefinitionConceptToSemantic
buildDisjointConcept, synchroniseDisjointConceptFromSemantic, synchroniseDisjointConceptToSemantic
buildEquivalentConcept, synchroniseEquivalentConceptFromSemantic, synchroniseEquivalentConceptToSemantic
buildSubConcept, synchroniseSubConceptFromSemantic, synchroniseSubConceptToSemantic
buildSuperConcept, synchroniseSuperConceptFromSemantic, synchroniseSuperConceptToSemantic
copyGround, equals, hashCode, reason, setGround, setInstance, setInstance
getGroundInstance, getGroundOntology
addIndividualClassified, addIndividualClassified, queryIndividualClassified, removeIndividualClassified, removeIndividualClassified
addClassRestriction, addClassRestriction, addExactDataRestriction, addExactDataRestriction, addExactObjectRestriction, addExactObjectRestriction, addMaxDataRestriction, addMaxDataRestriction, addMaxObjectRestriction, addMaxObjectRestriction, addMinDataRestriction, addMinDataRestriction, addMinObjectRestriction, addMinObjectRestriction, addOnlyDataRestriction, addOnlyDataRestriction, addOnlyObjectRestrcition, addOnlyObjectRestrcition, addSomeDataRestriction, addSomeDataRestriction, addSomeObjectRestrcition, addSomeObjectRestrcition, createClassRestriction, createClassRestriction, createExactDataRestriction, createExactDataRestriction, createExactObjectRestriction, createExactObjectRestriction, createMaxDataRestriction, createMaxDataRestriction, createMaxObjectRestriction, createMaxObjectRestriction, createMinDataRestriction, createMinDataRestriction, createMinObjectRestriction, createMinObjectRestriction, createOnlyDataRestriction, createOnlyDataRestriction, createOnlyObjectRestriction, createOnlyObjectRestriction, createSomeDataRestriction, createSomeDataRestriction, createSomeObjectRestriction, createSomeObjectRestriction, queryDefinitionConcept, removeClassRestriction, removeExactDataRestriction, removeExactDataRestriction, removeExactObjectRestriction, removeExactObjectRestriction, removeMaxDataRestriction, removeMaxDataRestriction, removeMaxObjectRestriction, removeMaxObjectRestriction, removeMinDataRestriction, removeMinDataRestriction, removeMinObjectRestriction, removeMinObjectRestriction, removeOnlyDataRestriction, removeOnlyDataRestriction, removeOnlyObjectRestrcition, removeOnlyObjectRestrcition, removeSomeDataRestriction, removeSomeDataRestriction, removeSomeObjectRestrcition, removeSomeObjectRestrcition, remvoveClassRestriction
addDisjointConcept, addDisjointConcept, queryDisjointConcept, removeDisjointConcept, removeDisjointConcept
addEquivalentConcept, addEquivalentConcept, queryEquivalentConcept, removeEquivalentConcept, removeEquivalentConcept
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 MORFullConcept(java.lang.String instanceName, it.emarolab.amor.owlInterface.OWLReferences onto)
public MORFullConcept(java.lang.String instanceName, java.lang.String ontoName)
public MORFullConcept(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public MORFullConcept(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath, boolean bufferingChanges)
public MORFullConcept(org.semanticweb.owlapi.model.OWLClass instance, it.emarolab.amor.owlInterface.OWLReferences onto)
public MORFullConcept(org.semanticweb.owlapi.model.OWLClass instance, java.lang.String ontoName)
public MORFullConcept(org.semanticweb.owlapi.model.OWLClass instance, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public MORFullConcept(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.Classify<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,org.semanticweb.owlapi.model.OWLNamedIndividual,D extends MORIndividual>
readSemantic
in interface Concept.Define<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,it.emarolab.amor.owlInterface.SemanticRestriction>
readSemantic
in interface Concept.Disjoint<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,it.emarolab.amor.owlInterface.SemanticRestriction>
readSemantic
in interface Concept.Equivalent<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,it.emarolab.amor.owlInterface.SemanticRestriction>
readSemantic
in interface Concept.Sub<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,it.emarolab.amor.owlInterface.SemanticRestriction>
readSemantic
in interface Concept.Super<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,it.emarolab.amor.owlInterface.SemanticRestriction>
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.Classify<MORLinkIndividual>
writeSemantic
in interface MORConcept.Define
writeSemantic
in interface MORConcept.Disjoint<MORFullConcept>
writeSemantic
in interface MORConcept.Equivalent<MORFullConcept>
writeSemantic
in interface MORConcept.Sub<MORFullConcept>
writeSemantic
in interface MORConcept.Super<MORFullConcept>
writeSemantic
in interface Semantic.Descriptor<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass>
Semantic.MappingIntent.getOntologyChanges()
field
initialised (i.e.: OWLOntologyChange
).public MORFullConcept getNewDisjointConcept(org.semanticweb.owlapi.model.OWLClass instance, it.emarolab.amor.owlInterface.OWLReferences ontology)
Concept.Disjoint
Concept.Disjoint.buildDisjointConcept()
and
its purpose is to instantiate a new Concept
to represent
an class disjointed from this
Concept
Semantic.Descriptor
.getNewDisjointConcept
in interface Concept.Disjoint<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,it.emarolab.amor.owlInterface.SemanticRestriction>
instance
- the instance to ground the new Concept
.ontology
- the ontology in which ground the new Concept
.Semantic.Descriptor
for all the classes
disjointed to this
descriptor.public MORAxioms.Concepts getDisjointConcept()
Concept.Disjoint
Semantic.Axioms
that describes all the disjointed classes of
this
Concept
from a no OOP point of view.getDisjointConcept
in interface Concept.Disjoint<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,it.emarolab.amor.owlInterface.SemanticRestriction>
this
objectpublic MORFullConcept getNewEquivalentConcept(org.semanticweb.owlapi.model.OWLClass instance, it.emarolab.amor.owlInterface.OWLReferences ontology)
Concept.Equivalent
Concept.Equivalent.buildEquivalentConcept()
and
its purpose is to instantiate a new Concept
to represent
an class equivalent from this
Concept
Semantic.Descriptor
.getNewEquivalentConcept
in interface Concept.Equivalent<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,it.emarolab.amor.owlInterface.SemanticRestriction>
instance
- the instance to ground the new Concept
.ontology
- the ontology in which ground the new Concept
.Semantic.Descriptor
for all the classes
equivalent to this
descriptor.public MORAxioms.Concepts getEquivalentConcept()
Concept.Equivalent
Semantic.Axioms
that describes all the equivalent classes of
this
Concept
from a no OOP point of view.getEquivalentConcept
in interface Concept.Equivalent<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,it.emarolab.amor.owlInterface.SemanticRestriction>
this
objectpublic MORAxioms.Restrictions getDefinitionConcept()
Concept.Define
Semantic.Axioms
that describes all the definition restriction of
this
Concept
from a no OOP point of view.getDefinitionConcept
in interface Concept.Define<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,it.emarolab.amor.owlInterface.SemanticRestriction>
getDefinitionConcept
in interface MORConcept.Define
this
class.public MORFullConcept 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,it.emarolab.amor.owlInterface.SemanticRestriction>
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,it.emarolab.amor.owlInterface.SemanticRestriction>
this
class.public MORFullConcept 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,it.emarolab.amor.owlInterface.SemanticRestriction>
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,it.emarolab.amor.owlInterface.SemanticRestriction>
this
class.public MORLinkIndividual getNewIndividualClassified(org.semanticweb.owlapi.model.OWLNamedIndividual instance, it.emarolab.amor.owlInterface.OWLReferences ontology)
Concept.Classify
Concept.Classify.buildIndividualClassified()
and
its purpose is to instantiate a new Individual
to represent
an individual classified in this
Concept
Semantic.Descriptor
.getNewIndividualClassified
in interface Concept.Classify<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,org.semanticweb.owlapi.model.OWLNamedIndividual,D extends MORIndividual>
instance
- the instance to ground the new Individual
.ontology
- the ontology in which ground the new Individual
.Semantic.Descriptor
for all the individuals
classified by this
descriptor.public MORAxioms.Individuals getIndividualClassified()
Concept.Classify
Semantic.Axioms
that describes all the individual classified
in this
Concept
from a no OOP point of view.getIndividualClassified
in interface Concept.Classify<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,org.semanticweb.owlapi.model.OWLNamedIndividual,D extends MORIndividual>
this
objectpublic java.lang.String toString()
toString
in class java.lang.Object