D
- the type of the DataPropertyExpression
descriptors instantiated during
Individual.ObjectLink.buildObjectProperties()
through #getNewObjectProperty(ExpressionEntity, Object)
.public static interface IndividualExpression.ObjectLink<D extends ObjectPropertyExpression> extends Individual.ObjectLink<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLNamedIndividual,ObjectLinks,org.semanticweb.owlapi.model.OWLObjectProperty,D>, IndividualExpression
Individual.ObjectLink
expression for a Descriptor
whose ground is OWLNamedIndividual
.
It specifies how to queryObjectProperties()
and writeAxioms()
for the
object properties associated to the ground Individual Axiom.Descriptor.getInstance()
.
It also implements common function to populate the ExpressionEntitySet
(of type ObjectLinks
) that specify the object properties of this individualDescriptor
that are synchronised with this Descriptor
. For efficiency,
this descriptor does not map all the objectProperty of an individualDescriptor but only for the
Expressions
that have been initialised in the ExpressionEntity
.
On the other hand, if the set of ExpressionEntitySet
is leaved empty during
Individual.ObjectLink.readAxioms()
, it maps all the object properties applied to the described
individualDescriptor.
IndividualExpression.DataLink<D extends DataPropertyExpression>, IndividualExpression.Disjoint<D extends IndividualExpression>, IndividualExpression.Equivalent<D extends IndividualExpression>, IndividualExpression.ObjectLink<D extends ObjectPropertyExpression>, IndividualExpression.Type<D extends ClassExpression>
Axiom.Descriptor.OntologyReference
DescriptorGroundInterface.ConceptGroundInstance, DescriptorGroundInterface.DataGroundInstance, DescriptorGroundInterface.GroundInstance<J extends org.semanticweb.owlapi.model.OWLObject>, DescriptorGroundInterface.IndividualGroundInstance, DescriptorGroundInterface.ObjectGroundInstance
Axiom.Descriptor<O,J>, Axiom.EntitySet<Y>, Axiom.ExpressionEntity<S,Y>, Axiom.ExpressionEntitySet<F extends Axiom.ExpressionEntity<?,Y>,Y>, Axiom.Ground<O,J>, Axiom.MappingIntent<I extends Axiom.Ground,C>
Modifier and Type | Method and Description |
---|---|
default boolean |
addObject(org.semanticweb.owlapi.model.OWLObjectProperty objectProperty)
Add a new semantic (i.e.: object objectProperty) to this
Descriptor . |
default boolean |
addObject(org.semanticweb.owlapi.model.OWLObjectProperty objectProperty,
boolean singleton)
Add a new semantic (i.e.: object objectProperty) to this
Descriptor . |
default boolean |
addObject(org.semanticweb.owlapi.model.OWLObjectProperty objectProperty,
org.semanticweb.owlapi.model.OWLNamedIndividual value)
Add a new semantic (i.e.: object objectProperty) to this
Descriptor with a particular value. |
default boolean |
addObject(org.semanticweb.owlapi.model.OWLObjectProperty objectProperty,
org.semanticweb.owlapi.model.OWLNamedIndividual value,
boolean singleton)
Add a new semantic (i.e.: object objectProperty) to this
Descriptor with a particular value. |
default boolean |
addObject(org.semanticweb.owlapi.model.OWLObjectProperty objectProperty,
java.util.Set<org.semanticweb.owlapi.model.OWLNamedIndividual> values)
Add a new semantic (i.e.: object objectProperty) to this
Descriptor with a particular set of values. |
default boolean |
addObject(org.semanticweb.owlapi.model.OWLObjectProperty objectProperty,
java.util.Set<org.semanticweb.owlapi.model.OWLNamedIndividual> values,
boolean singleton)
Add a new semantic (i.e.: object objectProperty) to this
Descriptor with a particular set of values. |
default boolean |
addObject(java.lang.String objectProperty)
Add a new semantic (i.e.: object objectProperty) to this
Descriptor . |
default boolean |
addObject(java.lang.String objectProperty,
boolean singleton)
Add a new semantic (i.e.: object objectProperty) to this
Descriptor . |
default boolean |
addObject(java.lang.String objectProperty,
java.lang.String value)
Add a new semantic (i.e.: object objectProperty) to this
Descriptor with a particular value. |
default boolean |
addObject(java.lang.String objectProperty,
java.lang.String value,
boolean singleton)
Add a new semantic (i.e.: object objectProperty) to this
Descriptor with a particular value. |
default org.semanticweb.owlapi.model.OWLNamedIndividual |
getIndividualFromObjectProperty(org.semanticweb.owlapi.model.OWLObjectProperty instance)
A shortcut for
getObjectProperties().getLink( semantic) |
default org.semanticweb.owlapi.model.OWLNamedIndividual |
getIndividualFromObjectProperty(java.lang.String objectPropertyName)
A shortcut for
getObjectProperties().getLink( getOntology().getOWLObjectProperty( semanticName) |
default Axiom.EntitySet<org.semanticweb.owlapi.model.OWLNamedIndividual> |
getIndividualsFromObjectProperty(org.semanticweb.owlapi.model.OWLObjectProperty instance)
A shortcut for
getObjectProperties().getLinks( semantic) |
default Axiom.EntitySet<org.semanticweb.owlapi.model.OWLNamedIndividual> |
getIndividualsFromObjectProperty(java.lang.String objectPropertyName)
A shortcut for
getObjectProperties().getLinks( getOntology().getOWLObjectProperty( semanticName)) |
ObjectLinkSet |
getObjectProperties()
Returns the
EntitySet that describes the specified object properties applied to
this Individual ; from a no OOP point of view. |
default ObjectLinkSet |
queryObjectProperties()
Queries to the OWL representation for the data properties applied to
this Descriptor . |
default void |
removeEmptyDataProprtySet() |
default boolean |
removeObject(org.semanticweb.owlapi.model.OWLObjectProperty objectProperty)
Remove the
ExpressionEntity of the given semantic (ObjectLinks.getExpression() )
from the Descriptor . |
default boolean |
removeObject(org.semanticweb.owlapi.model.OWLObjectProperty objectProperty,
org.semanticweb.owlapi.model.OWLNamedIndividual value)
Remove the
ExpressionEntity#getExpression() of the given objectProperty, with a specific value, from this
Descriptor . |
default boolean |
removeObject(org.semanticweb.owlapi.model.OWLObjectProperty objectProperty,
java.util.Set<org.semanticweb.owlapi.model.OWLNamedIndividual> values)
Remove the
ExpressionEntity#getExpression() of the given objectProperty, with specific values, from this
Descriptor . |
default boolean |
removeObject(java.lang.String objectProperty)
Remove the
ExpressionEntity of the given semantic (ObjectLinks.getExpression() )
from the Descriptor . |
default boolean |
removeObject(java.lang.String objectProperty,
java.lang.String value)
Remove the
ExpressionEntity#getExpression() of the given objectProperty, with a specific value, from this
Descriptor . |
default java.util.List<Axiom.MappingIntent> |
writeAxioms()
This method is used to update the ontology with a specific
Axiom.EntitySet (or Axiom.ExpressionEntitySet )
by synchronizing the OWL representation with the internal state of the descriptor, such that they are equal. |
buildObjectProperties, getNewObjectProperty, readAxioms, synchroniseObjectPropertiesFromExpressionAxioms, synchroniseObjectPropertiesToExpressionAxioms
getGroundInstance, getGroundOntology
activateAMORlogging, getChangingIntent, getGround, getGroundInstanceName, getInstance, getIntent, getOntologyReference, groundReason, writeAxiomsReasonReadAxioms, writeAxiomsReasonReadAxioms
getOntologyName, getOWLClass, getOWLDataFactory, getOWLDataProperty, getOWLDataType, getOWLIndividual, getOWLLiteral, getOWLName, getOWLName, getOWLObjectProperty, getOWLOntology, getOWLReasoner, isCompleteQuery, isReasonedQuery, reason, saveOntology, saveOntology, setCompleteQuery, setReasonedQuery
copyGround
default boolean removeObject(java.lang.String objectProperty)
ExpressionEntity
of the given semantic (ObjectLinks.getExpression()
)
from the Descriptor
. This call may remove multiple value attached to that
semantic. It will no longer be used during Individual.ObjectLink.readAxioms()
and writeAxioms()
.objectProperty
- an objectProperty name contained in an element of getObjectProperties()
to be removed.true
if an element was removed as a result of this call.default boolean removeObject(org.semanticweb.owlapi.model.OWLObjectProperty objectProperty)
ExpressionEntity
of the given semantic (ObjectLinks.getExpression()
)
from the Descriptor
. This call may remove multiple value attached to that
semantic. It will no longer be used during Individual.ObjectLink.readAxioms()
and writeAxioms()
.objectProperty
- an objectProperty contained in an element of getObjectProperties()
to be removed.true
if an element was removed as a result of this call.default boolean removeObject(java.lang.String objectProperty, java.lang.String value)
ExpressionEntity#getExpression()
of the given objectProperty, with a specific value, from this
Descriptor
. This call does not remove the semantic from this object, and it may be
repopulate (or completely removed) by calling: Individual.ObjectLink.readAxioms()
.objectProperty
- the name of the objectProperty which value, contained in getObjectProperties()
, will be removed.value
- the objectProperty value to be removed from the ObjectLinks.getValues()
set.true
if an element was removed as a result of this call.default boolean removeObject(org.semanticweb.owlapi.model.OWLObjectProperty objectProperty, org.semanticweb.owlapi.model.OWLNamedIndividual value)
ExpressionEntity#getExpression()
of the given objectProperty, with a specific value, from this
Descriptor
. This call does not remove the semantic from this object, and it may be
repopulate (or completely removed) by calling: Individual.ObjectLink.readAxioms()
.objectProperty
- the objectProperty which value, contained in getObjectProperties()
, will be removed.value
- the specific objectProperty literal to be removed from the ObjectLinks.getValues()
set.true
if an element was removed as a result of this call.default boolean removeObject(org.semanticweb.owlapi.model.OWLObjectProperty objectProperty, java.util.Set<org.semanticweb.owlapi.model.OWLNamedIndividual> values)
ExpressionEntity#getExpression()
of the given objectProperty, with specific values, from this
Descriptor
. This call does not remove the semantic from this object, and it may be
repopulate (or completely removed) by calling: Individual.ObjectLink.readAxioms()
.objectProperty
- the objectProperty which value, contained in getObjectProperties()
, will be removed.values
- the specific set of objectProperty literal to be removed from the ObjectLinks.getValues()
set.true
if an element was removed as a result of this call.default void removeEmptyDataProprtySet()
default boolean addObject(java.lang.String objectProperty)
Descriptor
.
In case it already exists, this will set the DescriptorEntitySet.EntitySetBase.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.readAxioms()
.objectProperty
- the name of the objectProperty 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 objectProperty)
Descriptor
.
In case it already exists, this will set the DescriptorEntitySet.EntitySetBase.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.readAxioms()
.objectProperty
- the objectProperty 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 objectProperty, boolean singleton)
Descriptor
.
In case it already exists, this will set the DescriptorEntitySet.EntitySetBase.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.readAxioms()
.objectProperty
- the name of the objectProperty 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 objectProperty, boolean singleton)
Descriptor
.
In case it already exists, this will set the DescriptorEntitySet.EntitySetBase.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.readAxioms()
.objectProperty
- the objectProperty 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 objectProperty, java.lang.String value)
Descriptor
with a particular value.
In case it already exists, this will set the DescriptorEntitySet.EntitySetBase.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 DescriptorGroundInterface.getOWLLiteral(Object)
).objectProperty
- the name of the objectProperty to synchronise.value
- the specific object to be added to the ObjectLinks.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 objectProperty, org.semanticweb.owlapi.model.OWLNamedIndividual value)
Descriptor
with a particular value.
In case it already exists, this will set the DescriptorEntitySet.EntitySetBase.isSingleton()
value to false
anyway.objectProperty
- the objectProperty to synchronise.value
- the literal to be added to the ObjectLinks.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 objectProperty, java.lang.String value, boolean singleton)
Descriptor
with a particular value.
In case it already exists, this will set the DescriptorEntitySet.EntitySetBase.isSingleton()
value to specified boolean anyway.objectProperty
- the name of the objectProperty to synchronise.value
- the specific object to be added to the ObjectLinks.getValues()
set.singleton
- the flag specifying if the new 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 objectProperty, org.semanticweb.owlapi.model.OWLNamedIndividual value, boolean singleton)
Descriptor
with a particular value.
In case it already exists, this will set the DescriptorEntitySet.EntitySetBase.isSingleton()
value to specified boolean anyway.
If getObjectProperties()
represents a singleton set this call clear the
previous contents.objectProperty
- the objectProperty to synchronise.value
- the specific objectProperty literal to be added to the ObjectLinks.getValues()
set.singleton
- the flag specifying if the new 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 objectProperty, java.util.Set<org.semanticweb.owlapi.model.OWLNamedIndividual> values, boolean singleton)
Descriptor
with a particular set of values.
In case it already exists, this will set the DescriptorEntitySet.EntitySetBase.isSingleton()
value to specified boolean anyway.
If getObjectProperties()
represents a singleton set this call clear the
previous contents.objectProperty
- the objectProperty to synchronise.values
- the specific set of objectProperty literal to be added to the ObjectLinks.getValues()
set.singleton
- the flag specifying if the new 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 objectProperty, java.util.Set<org.semanticweb.owlapi.model.OWLNamedIndividual> values)
Descriptor
with a particular set of values.
In case it already exists, this will set the DescriptorEntitySet.EntitySetBase.isSingleton()
value to specified boolean anyway.
If getObjectProperties()
represents a singleton set this call clear the
previous contents.
This call, automatically sets the singleton
flag to false.objectProperty
- the objectProperty to synchronise.values
- the specific set of objectProperty literal to be added to the ObjectLinks.getValues()
set.true
if an element was added as a result of this call
(a change of singleton value is not considered).ObjectLinkSet getObjectProperties()
Individual.ObjectLink
EntitySet
that describes the specified object properties applied to
this
Individual
; from a no OOP point of view.getObjectProperties
in interface Individual.ObjectLink<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLNamedIndividual,ObjectLinks,org.semanticweb.owlapi.model.OWLObjectProperty,D extends ObjectPropertyExpression>
this
individualDescriptor.default org.semanticweb.owlapi.model.OWLNamedIndividual getIndividualFromObjectProperty(org.semanticweb.owlapi.model.OWLObjectProperty instance)
getObjectProperties().getLink( semantic)
instance
- the object objectProperty to look for its values.Null
if is not available.default org.semanticweb.owlapi.model.OWLNamedIndividual getIndividualFromObjectProperty(java.lang.String objectPropertyName)
getObjectProperties().getLink( getOntology().getOWLObjectProperty( semanticName)
objectPropertyName
- the name of the objectProperty to look for its values.Null
if is not available.default Axiom.EntitySet<org.semanticweb.owlapi.model.OWLNamedIndividual> getIndividualsFromObjectProperty(org.semanticweb.owlapi.model.OWLObjectProperty instance)
getObjectProperties().getLinks( semantic)
instance
- the object objectProperty to look for its values.empty
HashSet
if is not available.default Axiom.EntitySet<org.semanticweb.owlapi.model.OWLNamedIndividual> getIndividualsFromObjectProperty(java.lang.String objectPropertyName)
getObjectProperties().getLinks( getOntology().getOWLObjectProperty( semanticName))
objectPropertyName
- the name of the objectProperty to look for its values.Null
if is not available.default ObjectLinkSet queryObjectProperties()
Individual.ObjectLink
this
Descriptor
.queryObjectProperties
in interface Individual.ObjectLink<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLNamedIndividual,ObjectLinks,org.semanticweb.owlapi.model.OWLObjectProperty,D extends ObjectPropertyExpression>
ExpressionEntitySet
contained the object properties of Axiom.Descriptor.getInstance()
;
into the OWL structure.default java.util.List<Axiom.MappingIntent> writeAxioms()
Axiom.Descriptor
Axiom.EntitySet
(or Axiom.ExpressionEntitySet
)
by synchronizing the OWL representation with the internal state of the descriptor, such that they are equal.
It is based on EntitySet#synchroniseTo(EntitySet)
.writeAxioms
in interface Axiom.Descriptor<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLNamedIndividual>
Axiom.MappingIntent.getOntologyChanges()
field
initialised (i.e.: OWLOntologyChange
).