public class MORDefinitionConcept extends MORConceptBase implements MORConcept.Define, MORConcept.Disjoint<MORDefinitionConcept>, MORConcept.Equivalent<MORDefinitionConcept>, MORConcept.Classify<MORLinkIndividual>
This is an example of how use the Semantic.Descriptor
s for implement
a concept that is synchronised w.r.t. its MORConcept.Disjoint
and MORConcept.Equivalent
classes
as wel as with its MORConcept.Define
restrictions and MORConcept.Classify
ed individuals.
Its purpose is only to instanciate the MORAxioms.Concepts
for the
respective descriptions, as well as call the derived 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 |
---|
MORDefinitionConcept(java.lang.String instanceName,
it.emarolab.amor.owlInterface.OWLReferences onto) |
MORDefinitionConcept(java.lang.String instanceName,
java.lang.String ontoName) |
MORDefinitionConcept(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
MORDefinitionConcept(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath,
boolean bufferingChanges) |
MORDefinitionConcept(org.semanticweb.owlapi.model.OWLClass instance,
it.emarolab.amor.owlInterface.OWLReferences onto) |
MORDefinitionConcept(org.semanticweb.owlapi.model.OWLClass instance,
java.lang.String ontoName) |
MORDefinitionConcept(org.semanticweb.owlapi.model.OWLClass instance,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
MORDefinitionConcept(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. |
MORDefinitionConcept |
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 . |
MORDefinitionConcept |
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 . |
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
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
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 MORDefinitionConcept(java.lang.String instanceName, it.emarolab.amor.owlInterface.OWLReferences onto)
public MORDefinitionConcept(java.lang.String instanceName, java.lang.String ontoName)
public MORDefinitionConcept(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public MORDefinitionConcept(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath, boolean bufferingChanges)
public MORDefinitionConcept(org.semanticweb.owlapi.model.OWLClass instance, it.emarolab.amor.owlInterface.OWLReferences onto)
public MORDefinitionConcept(org.semanticweb.owlapi.model.OWLClass instance, java.lang.String ontoName)
public MORDefinitionConcept(org.semanticweb.owlapi.model.OWLClass instance, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public MORDefinitionConcept(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 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<MORDefinitionConcept>
writeSemantic
in interface MORConcept.Equivalent<MORDefinitionConcept>
writeSemantic
in interface Semantic.Descriptor<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass>
Semantic.MappingIntent.getOntologyChanges()
field
initialised (i.e.: OWLOntologyChange
).public MORDefinitionConcept 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 MORDefinitionConcept 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 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