public class MORFullIndividual extends MORIndividualBase implements MORIndividual.Disjoint<MORFullIndividual>, MORIndividual.Equivalent<MORFullIndividual>, MORIndividual.Type<MORFullConcept>, MORIndividual.ObjectLink<MORFullObjectProperty>, MORIndividual.DataLink<MORFullDataProperty>
This is an example of how use the Semantic.Descriptor
s for implement
a individual that is synchronised w.r.t. all interfaces of MORIndividual
.
Its purpose is only to instanciate the MORAxioms.Individuals
,
MORAxioms.ObjectSemantics
and MORAxioms.DataSemantics
for the
respective descriptions, as well as call all interfaces in the
readSemantic()
and writeSemantic()
methods.
All its constructions are based on MORIndividualBase
in order
to automatically manage a grounding MORGrounding.ConceptInstance
.
From an OOP prospective it returns an MORFullObjectProperty
and MORFullDataProperty
, be aware that this may be not efficient and
perhaps a less complete descriptor is enough for your case.
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 MORDefinitionIndividual
,
MORLinkIndividual
and MORTypeIndividual
(generally, all the classes in the it.emarolab.owloop.aMORDescriptor.utility
package)
as templates for doing that.
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 |
---|
MORFullIndividual(java.lang.String instanceName,
it.emarolab.amor.owlInterface.OWLReferences onto) |
MORFullIndividual(java.lang.String instanceName,
java.lang.String ontoName) |
MORFullIndividual(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
MORFullIndividual(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath,
boolean bufferingChanges) |
MORFullIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual instance,
it.emarolab.amor.owlInterface.OWLReferences onto) |
MORFullIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual instance,
java.lang.String ontoName) |
MORFullIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual instance,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
MORFullIndividual(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.DataSemantics |
getDataSemantics()
Returns the
Semantic.Axioms that describes the specified data properties applied to
this Individual ; from a no OOP point of view. |
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. |
MORFullDataProperty |
getNewDataIndividual(MORAxioms.DataSemantic instance,
it.emarolab.amor.owlInterface.OWLReferences ontology)
This method is called by
Individual.DataLink.buildDataIndividual() and
its purpose is to instantiate a new DataProperty to represent
a data value applied to this Individual Semantic.Descriptor . |
MORFullIndividual |
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 . |
MORFullIndividual |
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 . |
MORFullObjectProperty |
getNewObjectIndividual(MORAxioms.ObjectSemantic instance,
it.emarolab.amor.owlInterface.OWLReferences ontology)
This method is called by
Individual.ObjectLink.buildObjectIndividual() and
its purpose is to instantiate a new ObjectProperty to represent
an object value applied to this Individual Semantic.Descriptor . |
MORFullConcept |
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.ObjectSemantics |
getObjectSemantics()
Returns the
Semantic.Axioms that describes the specified object properties applied to
this Individual ; from a no OOP point of view. |
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. |
buildDataIndividual, synchroniseDataIndividualFromSemantic, synchroniseDataIndividualToSemantic
buildDisjointIndividual, synchroniseDisjointIndividualFromSemantic, synchroniseDisjointIndividualToSemantic
buildEquivalentIndividual, synchroniseEquivalentIndividualFromSemantic, synchroniseEquivalentIndividualToSemantic
buildObjectIndividual, synchroniseObjectIndividualFromSemantic, synchroniseObjectIndividualToSemantic
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
addData, addData, addData, addData, addData, addData, addData, addData, addObject, addObject, getLiteral, getLiteral, getLiterals, getLiterals, queryDataIndividual, removeData, removeData, removeData, removeData, removeObject
addDisjointIndividual, addDisjointIndividual, queryDisjointIndividual, removeDisjointIndividual, removeDisjointIndividual
addEquivalentIndividual, addEquivalentIndividual, queryEquivalentIndividual, removeEquivalentIndividual, removeEquivalentIndividual
addObject, addObject, addObject, addObject, addObject, addObject, addObject, addObject, addObject, addObject, getObject, getObject, getObjects, getObjects, queryObject, removeObject, removeObject, removeObject, removeObject, removeObject
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 MORFullIndividual(java.lang.String instanceName, it.emarolab.amor.owlInterface.OWLReferences onto)
public MORFullIndividual(java.lang.String instanceName, java.lang.String ontoName)
public MORFullIndividual(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public MORFullIndividual(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath, boolean bufferingChanges)
public MORFullIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual instance, it.emarolab.amor.owlInterface.OWLReferences onto)
public MORFullIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual instance, java.lang.String ontoName)
public MORFullIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual instance, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public MORFullIndividual(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.DataLink<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLNamedIndividual,MORAxioms.ObjectSemantic,org.semanticweb.owlapi.model.OWLObjectProperty,D extends MORObjectProperty>
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 Individual.ObjectLink<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLNamedIndividual,MORAxioms.ObjectSemantic,org.semanticweb.owlapi.model.OWLObjectProperty,D extends MORObjectProperty>
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.DataLink<MORFullDataProperty>
writeSemantic
in interface MORIndividual.Disjoint<MORFullIndividual>
writeSemantic
in interface MORIndividual.Equivalent<MORFullIndividual>
writeSemantic
in interface MORIndividual.ObjectLink<MORFullObjectProperty>
writeSemantic
in interface MORIndividual.Type<MORFullConcept>
writeSemantic
in interface Semantic.Descriptor<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLNamedIndividual>
Semantic.MappingIntent.getOntologyChanges()
field
initialised (i.e.: OWLOntologyChange
).public MORFullIndividual 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<MORFullIndividual>
this
individual.public MORFullIndividual 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<MORFullIndividual>
this
individual.public MORFullConcept 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<MORFullConcept>
this
individual.public MORFullObjectProperty getNewObjectIndividual(MORAxioms.ObjectSemantic instance, it.emarolab.amor.owlInterface.OWLReferences ontology)
Individual.ObjectLink
Individual.ObjectLink.buildObjectIndividual()
and
its purpose is to instantiate a new ObjectProperty
to represent
an object value applied to this
Individual
Semantic.Descriptor
.getNewObjectIndividual
in interface Individual.ObjectLink<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLNamedIndividual,MORAxioms.ObjectSemantic,org.semanticweb.owlapi.model.OWLObjectProperty,D extends MORObjectProperty>
instance
- the instance to ground the new ObjectProperty
.ontology
- the ontology in which ground the new ObjectProperty
.Semantic.Descriptor
for all the object properties
that are applied to this
interface.public MORAxioms.ObjectSemantics getObjectSemantics()
Individual.ObjectLink
Semantic.Axioms
that describes the specified object properties applied to
this
Individual
; from a no OOP point of view.getObjectSemantics
in interface Individual.ObjectLink<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLNamedIndividual,MORAxioms.ObjectSemantic,org.semanticweb.owlapi.model.OWLObjectProperty,D extends MORObjectProperty>
getObjectSemantics
in interface MORIndividual.ObjectLink<MORFullObjectProperty>
this
individual.public MORFullDataProperty getNewDataIndividual(MORAxioms.DataSemantic instance, it.emarolab.amor.owlInterface.OWLReferences ontology)
Individual.DataLink
Individual.DataLink.buildDataIndividual()
and
its purpose is to instantiate a new DataProperty
to represent
a data value applied to this
Individual
Semantic.Descriptor
.getNewDataIndividual
in interface Individual.DataLink<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLNamedIndividual,MORAxioms.ObjectSemantic,org.semanticweb.owlapi.model.OWLObjectProperty,D extends MORObjectProperty>
instance
- the instance to ground the new Individual.DataLink
.ontology
- the ontology in which ground the new DataProperty
.Semantic.Descriptor
for all the data properties
that are applied to this
interface.public MORAxioms.DataSemantics getDataSemantics()
Individual.DataLink
Semantic.Axioms
that describes the specified data properties applied to
this
Individual
; from a no OOP point of view.getDataSemantics
in interface Individual.DataLink<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLNamedIndividual,MORAxioms.ObjectSemantic,org.semanticweb.owlapi.model.OWLObjectProperty,D extends MORObjectProperty>
getDataSemantics
in interface MORIndividual.DataLink<MORFullDataProperty>
this
individual.public java.lang.String toString()
toString
in class java.lang.Object