D
- the type of the MORDataProperty
descriptors instantiated during
Individual.ObjectLink.buildObjectIndividual()
through Individual.ObjectLink.getNewObjectIndividual(SemanticAxiom, Object)
.public static interface MORIndividual.ObjectLink<D extends MORObjectProperty> extends Individual.ObjectLink<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLNamedIndividual,MORAxioms.ObjectSemantic,org.semanticweb.owlapi.model.OWLObjectProperty,D>, MORIndividual
Individual.ObjectLink
Semantic.Descriptor
implementation for OWLNamedIndividual
.
It specify how to queryObject()
and writeSemantic()
for the
object properties applied to Semantic.Descriptor.getInstance()
(i.e.: this individual
).
It also implements common function to populate the Semantic.SemanticAxioms
(of type MORAxioms.ObjectSemantic
) that specify the object properties of this individual
that are synchronised with this Semantic.Descriptor
. For efficiency purposes,
this descriptor does not map all the property of an individual but only the one which
semantic
have been initialised in the Semantic.SemanticAxiom
.
On the other hand, if the set of Semantic.SemanticAxioms
is leaved empty during
Individual.ObjectLink.readSemantic()
, it maps all the object properties applied to the described
individual.
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>
Modifier and Type | Method and Description |
---|---|
default boolean |
addObject(java.lang.String property)
Add a new semantic (i.e.: object property) to this
Semantic.Descriptor . |
default boolean |
addObject(java.lang.String property,
boolean singleton)
Add a new semantic (i.e.: object property) to this
Semantic.Descriptor . |
default boolean |
addObject(java.lang.String property,
java.lang.String value)
Add a new semantic (i.e.: object property) to this
Semantic.Descriptor with a particular value. |
default boolean |
addObject(java.lang.String property,
java.lang.String value,
boolean singleton)
Add a new semantic (i.e.: object property) to this
Semantic.Descriptor with a particular value. |
default boolean |
addObject(org.semanticweb.owlapi.model.OWLObjectProperty property)
Add a new semantic (i.e.: object property) to this
Semantic.Descriptor . |
default boolean |
addObject(org.semanticweb.owlapi.model.OWLObjectProperty property,
boolean singleton)
Add a new semantic (i.e.: object property) to this
Semantic.Descriptor . |
default boolean |
addObject(org.semanticweb.owlapi.model.OWLObjectProperty property,
java.util.Set<org.semanticweb.owlapi.model.OWLNamedIndividual> values)
Add a new semantic (i.e.: object property) to this
Semantic.Descriptor with a particular set of values. |
default boolean |
addObject(org.semanticweb.owlapi.model.OWLObjectProperty property,
java.util.Set<org.semanticweb.owlapi.model.OWLNamedIndividual> values,
boolean singleton)
Add a new semantic (i.e.: object property) to this
Semantic.Descriptor with a particular set of values. |
default boolean |
addObject(org.semanticweb.owlapi.model.OWLObjectProperty property,
org.semanticweb.owlapi.model.OWLNamedIndividual value)
Add a new semantic (i.e.: object property) to this
Semantic.Descriptor with a particular value. |
default boolean |
addObject(org.semanticweb.owlapi.model.OWLObjectProperty property,
org.semanticweb.owlapi.model.OWLNamedIndividual value,
boolean singleton)
Add a new semantic (i.e.: object property) to this
Semantic.Descriptor with a particular value. |
default org.semanticweb.owlapi.model.OWLNamedIndividual |
getObject(java.lang.String semanticName)
A shortcut for
MORAxioms.SemanticAxiomsBase.getLink(OWLProperty) |
default org.semanticweb.owlapi.model.OWLNamedIndividual |
getObject(org.semanticweb.owlapi.model.OWLObjectProperty semantic)
A shortcut for
MORAxioms.SemanticAxiomsBase.getLink(OWLProperty) |
default Semantic.Axioms<org.semanticweb.owlapi.model.OWLNamedIndividual> |
getObjects(java.lang.String semanticName)
A shortcut for
MORAxioms.SemanticAxiomsBase.getLinks(OWLProperty) |
default Semantic.Axioms<org.semanticweb.owlapi.model.OWLNamedIndividual> |
getObjects(org.semanticweb.owlapi.model.OWLObjectProperty semantic)
A shortcut for
MORAxioms.SemanticAxiomsBase.getLinks(OWLProperty) |
MORAxioms.ObjectSemantics |
getObjectSemantics()
Returns the
Semantic.Axioms that describes the specified object properties applied to
this Individual ; from a no OOP point of view. |
default MORAxioms.ObjectSemantics |
queryObject()
Queries to the OWL representation for the data properties applied to
this Semantic.Descriptor . |
default boolean |
removeObject(java.lang.String property)
Remove the
Semantic.SemanticAxiom of the given semantic (MORAxioms.ObjectSemantic.getSemantic() )
from the Semantic.Descriptor . |
default boolean |
removeObject(java.lang.String property,
java.lang.String value)
Remove the
Semantic.SemanticAxiom.getSemantic() of the given property, with a specific value, from this
Semantic.Descriptor . |
default boolean |
removeObject(org.semanticweb.owlapi.model.OWLObjectProperty property)
Remove the
Semantic.SemanticAxiom of the given semantic (MORAxioms.ObjectSemantic.getSemantic() )
from the Semantic.Descriptor . |
default boolean |
removeObject(org.semanticweb.owlapi.model.OWLObjectProperty property,
java.util.Set<org.semanticweb.owlapi.model.OWLNamedIndividual> values)
Remove the
Semantic.SemanticAxiom.getSemantic() of the given property, with specific values, from this
Semantic.Descriptor . |
default boolean |
removeObject(org.semanticweb.owlapi.model.OWLObjectProperty property,
org.semanticweb.owlapi.model.OWLNamedIndividual value)
Remove the
Semantic.SemanticAxiom.getSemantic() of the given property, with a specific value, from this
Semantic.Descriptor . |
default java.util.List<Semantic.MappingIntent> |
writeSemantic()
This method is used to synchronise specific
Semantic.Axioms (or Semantic.SemanticAxioms )
to the ontology. |
buildObjectIndividual, getNewObjectIndividual, readSemantic, synchroniseObjectIndividualFromSemantic, synchroniseObjectIndividualToSemantic
aMORlogging, getOntologyName, getOWLClass, getOWLDataFactory, getOWLDataProperty, getOWLDataType, getOWLIndividual, getOWLLiteral, getOWLName, getOWLName, getOWLObjectProperty, getOWLOntology, getReasoner, isCompleteQuery, isReasonedQuery, reason, saveOntology, saveOntology, setCompleteQuery, setReasonedQuery
getGroundInstance, getGroundOntology
getChangingIntent, getGround, getInstance, getIntent, getOntology, groundReason, writeSemanticInconsistencySafe, writeSemanticInconsistencySafe
copyGround
default boolean removeObject(java.lang.String property)
Semantic.SemanticAxiom
of the given semantic (MORAxioms.ObjectSemantic.getSemantic()
)
from the Semantic.Descriptor
. This call may remove multiple value attached to that
semantic. It will no longer be used during Individual.ObjectLink.readSemantic()
and writeSemantic()
.property
- an object property name contained in an element of getObjectSemantics()
to be removed.true
if an element was removed as a result of this call.default boolean removeObject(org.semanticweb.owlapi.model.OWLObjectProperty property)
Semantic.SemanticAxiom
of the given semantic (MORAxioms.ObjectSemantic.getSemantic()
)
from the Semantic.Descriptor
. This call may remove multiple value attached to that
semantic. It will no longer be used during Individual.ObjectLink.readSemantic()
and writeSemantic()
.property
- an object property contained in an element of getObjectSemantics()
to be removed.true
if an element was removed as a result of this call.default boolean removeObject(java.lang.String property, java.lang.String value)
Semantic.SemanticAxiom.getSemantic()
of the given property, with a specific value, from this
Semantic.Descriptor
. This call does not remove the semantic from this object, and it may be
repopulate (or completely removed) by calling: Individual.ObjectLink.readSemantic()
.property
- the name of the object property which value, contained in getObjectSemantics()
, will be removed.value
- the property value to be removed from the MORAxioms.ObjectSemantic.getValues()
set.true
if an element was removed as a result of this call.default boolean removeObject(org.semanticweb.owlapi.model.OWLObjectProperty property, org.semanticweb.owlapi.model.OWLNamedIndividual value)
Semantic.SemanticAxiom.getSemantic()
of the given property, with a specific value, from this
Semantic.Descriptor
. This call does not remove the semantic from this object, and it may be
repopulate (or completely removed) by calling: Individual.ObjectLink.readSemantic()
.property
- the object property which value, contained in getObjectSemantics()
, will be removed.value
- the specific property literal to be removed from the MORAxioms.ObjectSemantic.getValues()
set.true
if an element was removed as a result of this call.default boolean removeObject(org.semanticweb.owlapi.model.OWLObjectProperty property, java.util.Set<org.semanticweb.owlapi.model.OWLNamedIndividual> values)
Semantic.SemanticAxiom.getSemantic()
of the given property, with specific values, from this
Semantic.Descriptor
. This call does not remove the semantic from this object, and it may be
repopulate (or completely removed) by calling: Individual.ObjectLink.readSemantic()
.property
- the object property which value, contained in getObjectSemantics()
, will be removed.values
- the specific set of property literal to be removed from the MORAxioms.ObjectSemantic.getValues()
set.true
if an element was removed as a result of this call.default boolean addObject(java.lang.String property)
Semantic.Descriptor
.
In case it already exists, this will set the MORAxioms.AxiomsBase.isSingleton()
value to false
anyway.
On the other hand, it does not assign any value to the properties that are automatically
queried during Individual.ObjectLink.readSemantic()
.property
- the name of the object property to synchronise.true
if an element was added as a result of this call
(a change of singleton value is not considered).default boolean addObject(org.semanticweb.owlapi.model.OWLObjectProperty property)
Semantic.Descriptor
.
In case it already exists, this will set the MORAxioms.AxiomsBase.isSingleton()
value to false
anyway.
On the other hand, it does not assign any value to the properties that are automatically
queried during Individual.ObjectLink.readSemantic()
.property
- the object property to synchronise.true
if an element was added as a result of this call
(a change of singleton value is not considered).default boolean addObject(java.lang.String property, boolean singleton)
Semantic.Descriptor
.
In case it already exists, this will set the MORAxioms.AxiomsBase.isSingleton()
to the specified value anyway.
On the other hand, it does not assign any value to the properties that are automatically
queried during Individual.ObjectLink.readSemantic()
.property
- the name of the object property to synchronise.singleton
- the flag to enable the synchronisation of only one element of the set,
others will be discarded.true
if an element was added as a result of this call
(a change of singleton value is not considered).default boolean addObject(org.semanticweb.owlapi.model.OWLObjectProperty property, boolean singleton)
Semantic.Descriptor
.
In case it already exists, this will set the MORAxioms.AxiomsBase.isSingleton()
to the specified value anyway.
On the other hand, it does not assign any value to the properties that are automatically
queried during Individual.ObjectLink.readSemantic()
.property
- the object property to synchronise.singleton
- the flag to enable the synchronisation of only one element of the set,
others will be discarded.true
if an element was added as a result of this call
(a change of singleton value is not considered).default boolean addObject(java.lang.String property, java.lang.String value)
Semantic.Descriptor
with a particular value.
In case it already exists, this will set the MORAxioms.AxiomsBase.isSingleton()
value to false
anyway.
The class of the specified value represents its object type, supported OWLLiteral
are:
Integer
, Boolean
, Double
, Float
and Long
(see MORGrounding.getOWLLiteral(Object)
).property
- the name of the object property to synchronise.value
- the specific object to be added to the MORAxioms.ObjectSemantic.getValues()
set.true
if an element was added as a result of this call
(a change of singleton value is not considered).default boolean addObject(org.semanticweb.owlapi.model.OWLObjectProperty property, org.semanticweb.owlapi.model.OWLNamedIndividual value)
Semantic.Descriptor
with a particular value.
In case it already exists, this will set the MORAxioms.AxiomsBase.isSingleton()
value to false
anyway.property
- the object property to synchronise.value
- the literal to be added to the MORAxioms.ObjectSemantic.getValues()
set.true
if an element was added as a result of this call
(a change of singleton value is not considered).default boolean addObject(java.lang.String property, java.lang.String value, boolean singleton)
Semantic.Descriptor
with a particular value.
In case it already exists, this will set the MORAxioms.AxiomsBase.isSingleton()
value to specified boolean anyway.property
- the name of the object property to synchronise.value
- the specific object to be added to the MORAxioms.ObjectSemantic.getValues()
set.singleton
- the flag specifying if the new MORAxioms.Literals
should contains only one element.true
if an element was added as a result of this call
(a change of singleton value is not considered).default boolean addObject(org.semanticweb.owlapi.model.OWLObjectProperty property, org.semanticweb.owlapi.model.OWLNamedIndividual value, boolean singleton)
Semantic.Descriptor
with a particular value.
In case it already exists, this will set the MORAxioms.AxiomsBase.isSingleton()
value to specified boolean anyway.
If getObjectSemantics()
represents a singleton set this call clear the
previous contents.property
- the object property to synchronise.value
- the specific property literal to be added to the MORAxioms.ObjectSemantic.getValues()
set.singleton
- the flag specifying if the new MORAxioms.Literals
should contains only one element.true
if an element was added as a result of this call
(a change of singleton value is not considered).default boolean addObject(org.semanticweb.owlapi.model.OWLObjectProperty property, java.util.Set<org.semanticweb.owlapi.model.OWLNamedIndividual> values, boolean singleton)
Semantic.Descriptor
with a particular set of values.
In case it already exists, this will set the MORAxioms.AxiomsBase.isSingleton()
value to specified boolean anyway.
If getObjectSemantics()
represents a singleton set this call clear the
previous contents.property
- the object property to synchronise.values
- the specific set of property literal to be added to the MORAxioms.ObjectSemantic.getValues()
set.singleton
- the flag specifying if the new MORAxioms.Literals
should contains only one element.true
if an element was added as a result of this call
(a change of singleton value is not considered).default boolean addObject(org.semanticweb.owlapi.model.OWLObjectProperty property, java.util.Set<org.semanticweb.owlapi.model.OWLNamedIndividual> values)
Semantic.Descriptor
with a particular set of values.
In case it already exists, this will set the MORAxioms.AxiomsBase.isSingleton()
value to specified boolean anyway.
If getObjectSemantics()
represents a singleton set this call clear the
previous contents.
This call, automatically sets the singleton
flag to false.property
- the object property to synchronise.values
- the specific set of property literal to be added to the MORAxioms.ObjectSemantic.getValues()
set.true
if an element was added as a result of this call
(a change of singleton value is not considered).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>
this
individual.default org.semanticweb.owlapi.model.OWLNamedIndividual getObject(org.semanticweb.owlapi.model.OWLObjectProperty semantic)
MORAxioms.SemanticAxiomsBase.getLink(OWLProperty)
semantic
- the object property to look for its values.Null
if is not available.default org.semanticweb.owlapi.model.OWLNamedIndividual getObject(java.lang.String semanticName)
MORAxioms.SemanticAxiomsBase.getLink(OWLProperty)
semanticName
- the name of the object property to look for its values.Null
if is not available.default Semantic.Axioms<org.semanticweb.owlapi.model.OWLNamedIndividual> getObjects(org.semanticweb.owlapi.model.OWLObjectProperty semantic)
MORAxioms.SemanticAxiomsBase.getLinks(OWLProperty)
semantic
- the object property to look for its values.empty
HashSet
if is not available.default Semantic.Axioms<org.semanticweb.owlapi.model.OWLNamedIndividual> getObjects(java.lang.String semanticName)
MORAxioms.SemanticAxiomsBase.getLinks(OWLProperty)
semanticName
- the name of the object property to look for its values.Null
if is not available.default MORAxioms.ObjectSemantics queryObject()
Individual.ObjectLink
this
Semantic.Descriptor
.queryObject
in interface Individual.ObjectLink<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLNamedIndividual,MORAxioms.ObjectSemantic,org.semanticweb.owlapi.model.OWLObjectProperty,D extends MORObjectProperty>
Semantic.SemanticAxioms
contained the object properties of Semantic.Descriptor.getInstance()
;
into the OWL structure.default 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 Semantic.Descriptor<O,J>
Semantic.MappingIntent.getOntologyChanges()
field
initialised (i.e.: OWLOntologyChange
).