D
- the type of the MORDataProperty
descriptors instantiated during
Individual.DataLink.buildDataIndividual()
through Individual.DataLink.getNewDataIndividual(SemanticAxiom, Object)
.public static interface MORIndividual.DataLink<D extends MORDataProperty> extends Individual.DataLink<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLNamedIndividual,MORAxioms.DataSemantic,org.semanticweb.owlapi.model.OWLDataProperty,D>, MORIndividual
Individual.DataLink
Semantic.Descriptor
implementation for OWLNamedIndividual
.
It specify how to queryDataIndividual()
and writeSemantic()
for the
data properties applied to Semantic.Descriptor.getInstance()
(i.e.: this individual
).
It also implements common function to populate the Semantic.SemanticAxioms
(of type MORAxioms.DataSemantic
) that specify the data 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.DataLink.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 |
addData(java.lang.String property)
Add a new semantic (i.e.: data property) to this
Semantic.Descriptor . |
default boolean |
addData(java.lang.String property,
boolean singleton)
Add a new semantic (i.e.: data property) to this
Semantic.Descriptor . |
default boolean |
addData(java.lang.String property,
java.lang.Object value)
Add a new semantic (i.e.: data property) to this
Semantic.Descriptor with a particular value. |
default boolean |
addData(java.lang.String property,
java.lang.Object value,
boolean singleton)
Add a new semantic (i.e.: data property) to this
Semantic.Descriptor with a particular value. |
default boolean |
addData(org.semanticweb.owlapi.model.OWLDataProperty property)
Add a new semantic (i.e.: data property) to this
Semantic.Descriptor . |
default boolean |
addData(org.semanticweb.owlapi.model.OWLDataProperty property,
boolean singleton)
Add a new semantic (i.e.: data property) to this
Semantic.Descriptor . |
default boolean |
addData(org.semanticweb.owlapi.model.OWLDataProperty property,
org.semanticweb.owlapi.model.OWLLiteral value)
Add a new semantic (i.e.: data property) to this
Semantic.Descriptor with a particular value. |
default boolean |
addData(org.semanticweb.owlapi.model.OWLDataProperty property,
org.semanticweb.owlapi.model.OWLLiteral value,
boolean singleton)
Add a new semantic (i.e.: data property) to this
Semantic.Descriptor with a particular value. |
default boolean |
addObject(org.semanticweb.owlapi.model.OWLDataProperty property,
java.util.Set<org.semanticweb.owlapi.model.OWLLiteral> values)
Add a new semantic (i.e.: data property) to this
Semantic.Descriptor with a particular set of values. |
default boolean |
addObject(org.semanticweb.owlapi.model.OWLDataProperty property,
java.util.Set<org.semanticweb.owlapi.model.OWLLiteral> values,
boolean singleton)
Add a new semantic (i.e.: data property) to this
Semantic.Descriptor with a particular set of values. |
MORAxioms.DataSemantics |
getDataSemantics()
Returns the
Semantic.Axioms that describes the specified data properties applied to
this Individual ; from a no OOP point of view. |
default org.semanticweb.owlapi.model.OWLLiteral |
getLiteral(java.lang.String semanticName)
A shortcut for
MORAxioms.SemanticAxiomsBase.getLink(OWLProperty) |
default org.semanticweb.owlapi.model.OWLLiteral |
getLiteral(org.semanticweb.owlapi.model.OWLDataProperty semantic)
A shortcut for
MORAxioms.SemanticAxiomsBase.getLink(OWLProperty) |
default Semantic.Axioms<org.semanticweb.owlapi.model.OWLLiteral> |
getLiterals(java.lang.String semanticName)
A shortcut for
MORAxioms.SemanticAxiomsBase.getLinks(OWLProperty) |
default Semantic.Axioms<org.semanticweb.owlapi.model.OWLLiteral> |
getLiterals(org.semanticweb.owlapi.model.OWLDataProperty semantic)
A shortcut for
MORAxioms.SemanticAxiomsBase.getLinks(OWLProperty) |
default MORAxioms.DataSemantics |
queryDataIndividual()
Queries to the OWL representation for the data properties applied to
this Semantic.Descriptor . |
default boolean |
removeData(java.lang.String property)
Remove the
Semantic.SemanticAxiom of the given semantic (MORAxioms.DataSemantic.getSemantic() )
from the Semantic.Descriptor . |
default boolean |
removeData(java.lang.String property,
java.lang.Object value)
Remove the
Semantic.SemanticAxiom.getSemantic() of the given property, with a specific value, from this
Semantic.Descriptor . |
default boolean |
removeData(org.semanticweb.owlapi.model.OWLDataProperty property)
Remove the
Semantic.SemanticAxiom of the given semantic (MORAxioms.DataSemantic.getSemantic() )
from the Semantic.Descriptor . |
default boolean |
removeData(org.semanticweb.owlapi.model.OWLDataProperty property,
org.semanticweb.owlapi.model.OWLLiteral 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.OWLDataProperty property,
java.util.Set<org.semanticweb.owlapi.model.OWLLiteral> values) |
default java.util.List<Semantic.MappingIntent> |
writeSemantic()
This method is used to synchronise specific
Semantic.Axioms (or Semantic.SemanticAxioms )
to the ontology. |
buildDataIndividual, getNewDataIndividual, readSemantic, synchroniseDataIndividualFromSemantic, synchroniseDataIndividualToSemantic
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 removeData(java.lang.String property)
Semantic.SemanticAxiom
of the given semantic (MORAxioms.DataSemantic.getSemantic()
)
from the Semantic.Descriptor
. This call may remove multiple value attached to that
semantic. It will no longer be used during Individual.DataLink.readSemantic()
and writeSemantic()
.property
- a data property name contained in an element of getDataSemantics()
to be removed.true
if an element was removed as a result of this call.default boolean removeData(org.semanticweb.owlapi.model.OWLDataProperty property)
Semantic.SemanticAxiom
of the given semantic (MORAxioms.DataSemantic.getSemantic()
)
from the Semantic.Descriptor
. This call may remove multiple value attached to that
semantic. It will no longer be used during Individual.DataLink.readSemantic()
and writeSemantic()
.property
- a data property contained in an element of getDataSemantics()
to be removed.true
if an element was removed as a result of this call.default boolean removeData(java.lang.String property, java.lang.Object 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.DataLink.readSemantic()
.
The class of the specified value represents its data type, supported OWLLiteral
are:
Integer
, Boolean
, Double
, Float
and Long
(see MORGrounding.getOWLLiteral(Object)
).property
- the name of the data property which value, contained in getDataSemantics()
, will be removed.value
- the property value to be removed from the MORAxioms.DataSemantic.getValues()
set.true
if an element was removed as a result of this call.default boolean removeData(org.semanticweb.owlapi.model.OWLDataProperty property, org.semanticweb.owlapi.model.OWLLiteral 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.DataLink.readSemantic()
.property
- the data property which value, contained in getDataSemantics()
, will be removed.value
- the specific property literal to be removed from the MORAxioms.DataSemantic.getValues()
set.true
if an element was removed as a result of this call.default boolean removeObject(org.semanticweb.owlapi.model.OWLDataProperty property, java.util.Set<org.semanticweb.owlapi.model.OWLLiteral> values)
default boolean addData(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.DataLink.readSemantic()
.property
- the name of the data 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 addData(org.semanticweb.owlapi.model.OWLDataProperty 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.DataLink.readSemantic()
.property
- the data 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 addData(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.DataLink.readSemantic()
.property
- the name of the data 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 addData(org.semanticweb.owlapi.model.OWLDataProperty 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.DataLink.readSemantic()
.property
- the data 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 addData(java.lang.String property, java.lang.Object 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 data type, supported OWLLiteral
are:
Integer
, Boolean
, Double
, Float
and Long
(see MORGrounding.getOWLLiteral(Object)
).property
- the name of the data property to synchronise.value
- the specific data to be added to the MORAxioms.DataSemantic.getValues()
set.true
if an element was added as a result of this call
(a change of singleton value is not considered).default boolean addData(org.semanticweb.owlapi.model.OWLDataProperty property, org.semanticweb.owlapi.model.OWLLiteral 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 data property to synchronise.value
- the literal to be added to the MORAxioms.DataSemantic.getValues()
set.true
if an element was added as a result of this call
(a change of singleton value is not considered).default boolean addData(java.lang.String property, java.lang.Object 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.
The class of the specified value represents its data type, supported OWLLiteral
are:
Integer
, Boolean
, Double
, Float
and Long
(see MORGrounding.getOWLLiteral(Object)
).property
- the name of the data property to synchronise.value
- the specific data to be added to the MORAxioms.DataSemantic.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 addData(org.semanticweb.owlapi.model.OWLDataProperty property, org.semanticweb.owlapi.model.OWLLiteral 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 getDataSemantics()
represents a singleton set this call clear the
previous contents.property
- the data property to synchronise.value
- the specific property literal to be added to the MORAxioms.DataSemantic.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.OWLDataProperty property, java.util.Set<org.semanticweb.owlapi.model.OWLLiteral> 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 getDataSemantics()
represents a singleton set this call clear the
previous contents.property
- the data property to synchronise.values
- the specific set of property literal to be added to the MORAxioms.DataSemantic.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.OWLDataProperty property, java.util.Set<org.semanticweb.owlapi.model.OWLLiteral> 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 getDataSemantics()
represents a singleton set this call clear the
previous contents.
This call, automatically sets the singleton
flag to false.property
- the data property to synchronise.values
- the specific set of property literal to be added to the MORAxioms.DataSemantic.getValues()
set.true
if an element was added as a result of this call
(a change of singleton value is not considered).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.DataSemantic,org.semanticweb.owlapi.model.OWLDataProperty,D extends MORDataProperty>
this
individual.default org.semanticweb.owlapi.model.OWLLiteral getLiteral(org.semanticweb.owlapi.model.OWLDataProperty semantic)
MORAxioms.SemanticAxiomsBase.getLink(OWLProperty)
semantic
- the data property to look for its values.Null
if is not available.default org.semanticweb.owlapi.model.OWLLiteral getLiteral(java.lang.String semanticName)
MORAxioms.SemanticAxiomsBase.getLink(OWLProperty)
semanticName
- the name of the data property to look for its values.Null
if is not available.default Semantic.Axioms<org.semanticweb.owlapi.model.OWLLiteral> getLiterals(org.semanticweb.owlapi.model.OWLDataProperty semantic)
MORAxioms.SemanticAxiomsBase.getLinks(OWLProperty)
semantic
- the data property to look for its values.empty
HashSet
if is not available.default Semantic.Axioms<org.semanticweb.owlapi.model.OWLLiteral> getLiterals(java.lang.String semanticName)
MORAxioms.SemanticAxiomsBase.getLinks(OWLProperty)
semanticName
- the name of the data property to look for its values.empty
HashSet
if is not available.default MORAxioms.DataSemantics queryDataIndividual()
Individual.DataLink
this
Semantic.Descriptor
.queryDataIndividual
in interface Individual.DataLink<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLNamedIndividual,MORAxioms.DataSemantic,org.semanticweb.owlapi.model.OWLDataProperty,D extends MORDataProperty>
Semantic.SemanticAxioms
contained the data 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
).