public class MORDefinitionIndividual extends MORIndividualBase implements MORIndividual.Disjoint<MORDefinitionIndividual>, MORIndividual.Equivalent<MORDefinitionIndividual>
This is an example of how use the Semantic.Descriptor
s for implement
am individual that is synchronised w.r.t. to MORIndividual.Equivalent
and MORIndividual.Disjoint
instances.
Its purpose is only to instanciate the MORAxioms.Individuals
for the
respective descriptions, as well as call both interfaces in the
readSemantic()
and writeSemantic()
methods.
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 MORTypeIndividual
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 for data properties.
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 |
---|
MORDefinitionIndividual(java.lang.String instanceName,
it.emarolab.amor.owlInterface.OWLReferences onto) |
MORDefinitionIndividual(java.lang.String instanceName,
java.lang.String ontoName) |
MORDefinitionIndividual(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
MORDefinitionIndividual(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath,
boolean bufferingChanges) |
MORDefinitionIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual instance,
it.emarolab.amor.owlInterface.OWLReferences onto) |
MORDefinitionIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual instance,
java.lang.String ontoName) |
MORDefinitionIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual instance,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
MORDefinitionIndividual(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 |
---|---|
MORAxioms.Individuals |
getDisjointIndividual()
Returns the
Semantic.Axioms that describes all the different individual from
this Individual ; from a no OOP point of view. |
MORAxioms.Individuals |
getEquivalentIndividual()
Returns the
Semantic.Axioms that describes all the equivalent individual from
this Individual ; from a no OOP point of view. |
MORDefinitionIndividual |
getNewDisjointIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual instance,
it.emarolab.amor.owlInterface.OWLReferences ontology)
This method is called by
Individual.Disjoint.buildDisjointIndividual() and
its purpose is to instantiate a new Individual to represent
an equivalent individual from this Individual Semantic.Descriptor . |
MORDefinitionIndividual |
getNewEquivalentIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual instance,
it.emarolab.amor.owlInterface.OWLReferences ontology)
This method is called by
Individual.Equivalent.buildEquivalentIndividual() and
its purpose is to instantiate a new Individual to represent
a different individual from this Individual 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. |
buildDisjointIndividual, synchroniseDisjointIndividualFromSemantic, synchroniseDisjointIndividualToSemantic
buildEquivalentIndividual, synchroniseEquivalentIndividualFromSemantic, synchroniseEquivalentIndividualToSemantic
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
addDisjointIndividual, addDisjointIndividual, queryDisjointIndividual, removeDisjointIndividual, removeDisjointIndividual
addEquivalentIndividual, addEquivalentIndividual, queryEquivalentIndividual, removeEquivalentIndividual, removeEquivalentIndividual
getGround, getNewGround, getNewGround
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getChangingIntent, getGround, getInstance, getIntent, getOntology, groundReason, writeSemanticInconsistencySafe, writeSemanticInconsistencySafe
copyGround
public MORDefinitionIndividual(java.lang.String instanceName, it.emarolab.amor.owlInterface.OWLReferences onto)
public MORDefinitionIndividual(java.lang.String instanceName, java.lang.String ontoName)
public MORDefinitionIndividual(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public MORDefinitionIndividual(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath, boolean bufferingChanges)
public MORDefinitionIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual instance, it.emarolab.amor.owlInterface.OWLReferences onto)
public MORDefinitionIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual instance, java.lang.String ontoName)
public MORDefinitionIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual instance, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public MORDefinitionIndividual(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.Disjoint<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLNamedIndividual,D extends MORIndividual>
readSemantic
in interface Individual.Equivalent<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLNamedIndividual,D extends MORIndividual>
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.Disjoint<MORDefinitionIndividual>
writeSemantic
in interface MORIndividual.Equivalent<MORDefinitionIndividual>
writeSemantic
in interface Semantic.Descriptor<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLNamedIndividual>
Semantic.MappingIntent.getOntologyChanges()
field
initialised (i.e.: OWLOntologyChange
).public MORDefinitionIndividual getNewDisjointIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual instance, it.emarolab.amor.owlInterface.OWLReferences ontology)
Individual.Disjoint
Individual.Disjoint.buildDisjointIndividual()
and
its purpose is to instantiate a new Individual
to represent
an equivalent individual from this
Individual
Semantic.Descriptor
.getNewDisjointIndividual
in interface Individual.Disjoint<it.emarolab.amor.owlInterface.OWLReferences,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
that are equivalent from the one described by this
interface.public MORAxioms.Individuals getDisjointIndividual()
Individual.Disjoint
Semantic.Axioms
that describes all the different individual from
this
Individual
; from a no OOP point of view.getDisjointIndividual
in interface Individual.Disjoint<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLNamedIndividual,D extends MORIndividual>
getDisjointIndividual
in interface MORIndividual.Disjoint<MORDefinitionIndividual>
this
individual.public MORDefinitionIndividual getNewEquivalentIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual instance, it.emarolab.amor.owlInterface.OWLReferences ontology)
Individual.Equivalent
Individual.Equivalent.buildEquivalentIndividual()
and
its purpose is to instantiate a new Individual
to represent
a different individual from this
Individual
Semantic.Descriptor
.getNewEquivalentIndividual
in interface Individual.Equivalent<it.emarolab.amor.owlInterface.OWLReferences,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
that are different from the one described by this
interface.public MORAxioms.Individuals getEquivalentIndividual()
Individual.Equivalent
Semantic.Axioms
that describes all the equivalent individual from
this
Individual
; from a no OOP point of view.getEquivalentIndividual
in interface Individual.Equivalent<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLNamedIndividual,D extends MORIndividual>
getEquivalentIndividual
in interface MORIndividual.Equivalent<MORDefinitionIndividual>
this
individual.public java.lang.String toString()
toString
in class java.lang.Object