public class MORTypeIndividual extends MORIndividualBase implements MORIndividual.Type<MORHierarchicalConcept>
This is an example of how use the Semantic.Descriptor
s for implement
an individual that is synchronised w.r.t. its MORIndividual.Type
s.
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.
From an OOP prospective it returns the classified types as instances
of MORHierarchicalConcept
s.
All its constructions are based on MORIndividualBase
in order
to automatically manage a grounding MORGrounding.IndividualInstance
.
You may want to use this class (see also MORDefinitionIndividual
and MORLinkIndividual
,
as well as other classes in the it.emarolab.owloop.aMORDescriptor.utility
package)
as templates to build a specific MORIndividual
descriptor that fits your needs
and maximises the OWL synchronisation efficiency.
MORGrounding.ConceptInstance, MORGrounding.DataInstance, MORGrounding.GroundBase<J extends org.semanticweb.owlapi.model.OWLObject>, MORGrounding.IndividualInstance, MORGrounding.ObjectInstance
MORIndividual.DataLink<D extends MORDataProperty>, MORIndividual.Disjoint<D extends MORIndividual>, MORIndividual.Equivalent<D extends MORIndividual>, MORIndividual.ObjectLink<D extends MORObjectProperty>, MORIndividual.Type<D extends MORConcept>
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 |
---|
MORTypeIndividual(java.lang.String instanceName,
it.emarolab.amor.owlInterface.OWLReferences onto) |
MORTypeIndividual(java.lang.String instanceName,
java.lang.String ontoName) |
MORTypeIndividual(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
MORTypeIndividual(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath,
boolean bufferingChanges) |
MORTypeIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual instance,
it.emarolab.amor.owlInterface.OWLReferences onto) |
MORTypeIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual instance,
java.lang.String ontoName) |
MORTypeIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual instance,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
MORTypeIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual instance,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath,
boolean bufferingChanges) |
Modifier and Type | Method and Description |
---|---|
MORHierarchicalConcept |
getNewTypeIndividual(org.semanticweb.owlapi.model.OWLClass instance,
it.emarolab.amor.owlInterface.OWLReferences ontology)
This method is called by
Individual.Type.buildTypeIndividual() and
its purpose is to instantiate a new Concept to represent
the types of this Individual Semantic.Descriptor . |
MORAxioms.Concepts |
getTypeIndividual()
Returns the
Semantic.Axioms that describes all the classes in which
this Individual is belonging to, 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. |
buildTypeIndividual, synchroniseTypeIndividualFromSemantic, synchroniseTypeIndividualToSemantic
copyGround, equals, hashCode, reason, setGround, setInstance, setInstance
aMORlogging, getOntologyName, getOWLClass, getOWLDataFactory, getOWLDataProperty, getOWLDataType, getOWLIndividual, getOWLLiteral, getOWLName, getOWLName, getOWLObjectProperty, getOWLOntology, getReasoner, isCompleteQuery, isReasonedQuery, reason, saveOntology, saveOntology, setCompleteQuery, setReasonedQuery
getGroundInstance, getGroundOntology
addTypeIndividual, addTypeIndividual, queryTypeIndividual, removeTypeIndividual, removeTypeIndividual
getGround, getNewGround, getNewGround
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getChangingIntent, getGround, getInstance, getIntent, getOntology, groundReason, writeSemanticInconsistencySafe, writeSemanticInconsistencySafe
copyGround
public MORTypeIndividual(java.lang.String instanceName, it.emarolab.amor.owlInterface.OWLReferences onto)
public MORTypeIndividual(java.lang.String instanceName, java.lang.String ontoName)
public MORTypeIndividual(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public MORTypeIndividual(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath, boolean bufferingChanges)
public MORTypeIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual instance, it.emarolab.amor.owlInterface.OWLReferences onto)
public MORTypeIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual instance, java.lang.String ontoName)
public MORTypeIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual instance, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public MORTypeIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual 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 Individual.Type<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLNamedIndividual,org.semanticweb.owlapi.model.OWLClass,D extends MORConcept>
readSemantic
in interface Semantic.Descriptor<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLNamedIndividual>
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 MORIndividual.Type<MORHierarchicalConcept>
writeSemantic
in interface Semantic.Descriptor<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLNamedIndividual>
Semantic.MappingIntent.getOntologyChanges()
field
initialised (i.e.: OWLOntologyChange
).public MORHierarchicalConcept getNewTypeIndividual(org.semanticweb.owlapi.model.OWLClass instance, it.emarolab.amor.owlInterface.OWLReferences ontology)
Individual.Type
Individual.Type.buildTypeIndividual()
and
its purpose is to instantiate a new Concept
to represent
the types of this
Individual
Semantic.Descriptor
.getNewTypeIndividual
in interface Individual.Type<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLNamedIndividual,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 classes
in which this
individual is belonging to.public MORAxioms.Concepts getTypeIndividual()
Individual.Type
Semantic.Axioms
that describes all the classes in which
this
Individual
is belonging to, from a no OOP point of view.getTypeIndividual
in interface Individual.Type<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLNamedIndividual,org.semanticweb.owlapi.model.OWLClass,D extends MORConcept>
getTypeIndividual
in interface MORIndividual.Type<MORHierarchicalConcept>
this
individual.public java.lang.String toString()
toString
in class java.lang.Object