public class MORLinkIndividual extends MORIndividualBase implements MORIndividual.ObjectLink<MORFullObjectProperty>, MORIndividual.DataLink<MORFullDataProperty>
This is an example of how use the Semantic.Descriptor
s for implement
an individual that is synchronised w.r.t. its MORIndividual.DataLink
s
and MORIndividual.ObjectLink
s.
Its purpose is only to instanciate the MORAxioms.ObjectSemantics
for the
respective descriptions, as well as call the derived 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.
You may want to use this class (see also MORDefinitionIndividual
and MORTypeIndividual
,
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 |
---|
MORLinkIndividual(java.lang.String instanceName,
it.emarolab.amor.owlInterface.OWLReferences onto) |
MORLinkIndividual(java.lang.String instanceName,
java.lang.String ontoName) |
MORLinkIndividual(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
MORLinkIndividual(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath,
boolean bufferingChanges) |
MORLinkIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual instance,
it.emarolab.amor.owlInterface.OWLReferences onto) |
MORLinkIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual instance,
java.lang.String ontoName) |
MORLinkIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual instance,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
MORLinkIndividual(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. |
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 . |
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 . |
MORAxioms.ObjectSemantics |
getObjectSemantics()
Returns the
Semantic.Axioms that describes the specified object properties applied to
this Individual ; 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
buildObjectIndividual, synchroniseObjectIndividualFromSemantic, synchroniseObjectIndividualToSemantic
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
addObject, addObject, addObject, addObject, addObject, addObject, addObject, addObject, addObject, addObject, getObject, getObject, getObjects, getObjects, queryObject, removeObject, removeObject, removeObject, removeObject, removeObject
getGround, getNewGround, getNewGround
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getChangingIntent, getGround, getInstance, getIntent, getOntology, groundReason, writeSemanticInconsistencySafe, writeSemanticInconsistencySafe
copyGround
public MORLinkIndividual(java.lang.String instanceName, it.emarolab.amor.owlInterface.OWLReferences onto)
public MORLinkIndividual(java.lang.String instanceName, java.lang.String ontoName)
public MORLinkIndividual(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public MORLinkIndividual(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath, boolean bufferingChanges)
public MORLinkIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual instance, it.emarolab.amor.owlInterface.OWLReferences onto)
public MORLinkIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual instance, java.lang.String ontoName)
public MORLinkIndividual(org.semanticweb.owlapi.model.OWLNamedIndividual instance, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public MORLinkIndividual(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.ObjectLink<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLNamedIndividual,MORAxioms.ObjectSemantic,org.semanticweb.owlapi.model.OWLObjectProperty,D extends MORObjectProperty>
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.ObjectLink<MORFullObjectProperty>
writeSemantic
in interface Semantic.Descriptor<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLNamedIndividual>
Semantic.MappingIntent.getOntologyChanges()
field
initialised (i.e.: OWLOntologyChange
).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