public class MORFullDataProperty extends MORDataPropertyBase implements MORDataProperty.Disjoint<MORFullDataProperty>, MORDataProperty.Equivalent<MORFullDataProperty>, MORDataProperty.Sub<MORFullDataProperty>, MORDataProperty.Super<MORFullDataProperty>, MORDataProperty.Domain, MORDataProperty.Range
This is an example of how use the Semantic.Descriptor
s for implement
a data property that is synchronised w.r.t. all interfaces of MORDataProperty
.
Its purpose is only to instanciate the MORAxioms.DataLinks
and MORAxioms.Restrictions
for the
respective descriptions, as well as call all interfaces in the
readSemantic()
and writeSemantic()
methods.
All its constructions are based on MORDataPropertyBase
in order
to automatically manage a grounding MORGrounding.DataInstance
.
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 MORHierarchicalDataProperty
,
MORDefinitionDataProperty
and MORDomainDataProperty
(generally, all the classes in the it.emarolab.owloop.aMORDescriptor.utility
package)
as templates for doing that.
MORDataProperty.Disjoint<D extends MORDataProperty>, MORDataProperty.Domain, MORDataProperty.Equivalent<D extends MORDataProperty>, MORDataProperty.Range, MORDataProperty.Sub<D extends MORDataProperty>, MORDataProperty.Super<D extends MORDataProperty>
MORGrounding.ConceptInstance, MORGrounding.DataInstance, MORGrounding.GroundBase<J extends org.semanticweb.owlapi.model.OWLObject>, MORGrounding.IndividualInstance, MORGrounding.ObjectInstance
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 |
---|
MORFullDataProperty(java.lang.String instanceName,
it.emarolab.amor.owlInterface.OWLReferences onto) |
MORFullDataProperty(java.lang.String instanceName,
java.lang.String ontoName) |
MORFullDataProperty(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
MORFullDataProperty(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath,
boolean bufferingChanges) |
MORFullDataProperty(org.semanticweb.owlapi.model.OWLDataProperty instance,
it.emarolab.amor.owlInterface.OWLReferences onto) |
MORFullDataProperty(org.semanticweb.owlapi.model.OWLDataProperty instance,
java.lang.String ontoName) |
MORFullDataProperty(org.semanticweb.owlapi.model.OWLDataProperty instance,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
MORFullDataProperty(org.semanticweb.owlapi.model.OWLDataProperty instance,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath,
boolean bufferingChanges) |
Modifier and Type | Method and Description |
---|---|
java.util.Set<MORFullDataProperty> |
buildEquivalentDataProperty()
Create an
Semantic.Descriptor set where each element
represents the disjointed data property of this property. |
MORAxioms.DataLinks |
getDisjointDataProperty()
Returns the
Semantic.Axioms that describes all the disjoint data properties of
this grounded DataProperty ; from a no OOP point of view. |
MORAxioms.Restrictions |
getDomainDataProperty()
Returns the
Semantic.Axioms that describes all the restrictions of the
domain of the described property; from a no OOP point of view. |
MORAxioms.DataLinks |
getEquivalentDataProperty()
Returns the
Semantic.Axioms that describes all the equivalent data properties of
this grounded DataProperty ; from a no OOP point of view. |
MORFullDataProperty |
getNewDisjointDataProperty(org.semanticweb.owlapi.model.OWLDataProperty instance,
it.emarolab.amor.owlInterface.OWLReferences ontology)
This method is called by
DataProperty.Disjoint.buildDisjointDataProperty() and
its purpose is to instantiate a new DataProperty to represent
a disjointed property of this DataProperty Semantic.Descriptor . |
MORFullDataProperty |
getNewEquivalentDataProperty(org.semanticweb.owlapi.model.OWLDataProperty instance,
it.emarolab.amor.owlInterface.OWLReferences ontology)
This method is called by
DataProperty.Equivalent.buildEquivalentDataProperty() and
its purpose is to instantiate a new DataProperty to represent
an equivalent property of this DataProperty Semantic.Descriptor . |
MORFullDataProperty |
getNewSubDataProperty(org.semanticweb.owlapi.model.OWLDataProperty instance,
it.emarolab.amor.owlInterface.OWLReferences ontology)
This method is called by
DataProperty.Sub.buildSubDataProperty() and
its purpose is to instantiate a new DataProperty to represent
a sub property of this DataProperty Semantic.Descriptor . |
MORFullDataProperty |
getNewSuperDataProperty(org.semanticweb.owlapi.model.OWLDataProperty instance,
it.emarolab.amor.owlInterface.OWLReferences ontology)
This method is called by
DataProperty.Super.buildSuperDataProperty() and
its purpose is to instantiate a new DataProperty to represent
a super property of this DataProperty Semantic.Descriptor . |
MORAxioms.Restrictions |
getRangeDataProperty()
Returns the
Semantic.Axioms that describes all the restrictions of the
range of the described property; from a no OOP point of view. |
MORAxioms.DataLinks |
getSubDataProperty()
Returns the
Semantic.Axioms that describes all the sub data properties of
this grounded DataProperty ; from a no OOP point of view. |
MORAxioms.DataLinks |
getSuperDataProperty()
Returns the
Semantic.Axioms that describes all the super data properties of
this grounded DataProperty ; 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. |
buildDisjointDataProperty, synchroniseDisjointDataPropertyFromSemantic, synchroniseDisjointDataPropertyToSemantic
synchroniseDomainDataPropertyFromSemantic, synchroniseDomainDataPropertyToSemantic
synchroniseEquivalentDataPropertyFromSemantic, synchroniseEquivalentDataPropertyToSemantic
synchroniseRangeDataPropertyFromSemantic, synchroniseRangeDataPropertyToSemantic
buildSubDataProperty, synchroniseSubDataPropertyFromSemantic, synchroniseSubDataPropertyToSemantic
buildSuperDataProperty, synchroniseSuperDataPropertyFromSemantic, synchroniseSuperDataPropertyToSemantic
copyGround, equals, hashCode, reason, setGround, setInstance, setInstance
getGroundInstance, getGroundOntology, setFunctional, setNotFunctional
addDisjointDataProperty, addDisjointDataProperty, queryDisjointDataProperty, removeDisjointDataProperty, removeDisjointDataProperty
addDomainClassRestriction, addDomainClassRestriction, addDomainExactDataRestriction, addDomainExactDataRestriction, addDomainExactObjectRestriction, addDomainExactObjectRestriction, addDomainMaxDataRestriction, addDomainMaxDataRestriction, addDomainMaxObjectRestriction, addDomainMaxObjectRestriction, addDomainMinDataRestriction, addDomainMinDataRestriction, addDomainMinObjectRestriction, addDomainMinObjectRestriction, addDomainOnlyDataRestriction, addDomainOnlyDataRestriction, addDomainOnlyObjectRestriction, addDomainOnlyObjectRestriction, addDomainSomeDataRestriction, addDomainSomeDataRestriction, addDomainSomeObjectRestriction, addDomainSomeObjectRestriction, domainClassRestriction, domainClassRestriction, domainExactDataRestriction, domainExactDataRestriction, domainExactObjectRestriction, domainExactObjectRestriction, domainMaxDataRestriction, domainMaxDataRestriction, domainMaxObjectRestriction, domainMaxObjectRestriction, domainMinDataRestriction, domainMinDataRestriction, domainMinObjectRestriction, domainMinObjectRestriction, domainOnlyDataRestriction, domainOnlyDataRestriction, domainOnlyObjectRestriction, domainOnlyObjectRestriction, domainSomeDataRestriction, domainSomeDataRestriction, domainSomeObjectRestriction, domainSomeObjectRestriction, queryDomainDataProperty, removeDomainClassRestriction, removeDomainClassRestriction, removeDomainExactDataRestriction, removeDomainExactDataRestriction, removeDomainExactObjectRestriction, removeDomainExactObjectRestriction, removeDomainMaxDataRestriction, removeDomainMaxDataRestriction, removeDomainMaxObjectRestriction, removeDomainMaxObjectRestriction, removeDomainMinDataRestriction, removeDomainMinDataRestriction, removeDomainMinObjectRestriction, removeDomainMinObjectRestriction, removeDomainOnlyDataRestriction, removeDomainOnlyDataRestriction, removeDomainOnlyObjectRestriction, removeDomainOnlyObjectRestriction, removeDomainSomeDataRestriction, removeDomainSomeDataRestriction, removeDomainSomeObjectRestriction, removeDomainSomeObjectRestriction
addEquivalentDataProperty, addEquivalentDataProperty, queryEquivalentDataProperty, removeEquivalentDataProperty, removeEquivalentDataProperty
addRangeDataRestriction, queryRangeDataProperty, rangeDataRestriction, removeRangeDataRestriction
addSubDataProperty, addSubDataProperty, querySubDataProperty, removeSubDataProperty, removeSubDataProperty
addSuperDataProperty, addSuperDataProperty, querySuperDataProperty, removeSuperDataProperty, removeSuperDataProperty
getGround, getNewGround, getNewGround
aMORlogging, getOntologyName, getOWLClass, getOWLDataFactory, getOWLDataProperty, getOWLDataType, getOWLIndividual, getOWLLiteral, getOWLName, getOWLName, getOWLObjectProperty, getOWLOntology, getReasoner, isCompleteQuery, isReasonedQuery, reason, saveOntology, saveOntology, setCompleteQuery, setReasonedQuery
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getChangingIntent, getGround, getInstance, getIntent, getOntology, groundReason, writeSemanticInconsistencySafe, writeSemanticInconsistencySafe
copyGround
public MORFullDataProperty(java.lang.String instanceName, it.emarolab.amor.owlInterface.OWLReferences onto)
public MORFullDataProperty(java.lang.String instanceName, java.lang.String ontoName)
public MORFullDataProperty(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public MORFullDataProperty(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath, boolean bufferingChanges)
public MORFullDataProperty(org.semanticweb.owlapi.model.OWLDataProperty instance, it.emarolab.amor.owlInterface.OWLReferences onto)
public MORFullDataProperty(org.semanticweb.owlapi.model.OWLDataProperty instance, java.lang.String ontoName)
public MORFullDataProperty(org.semanticweb.owlapi.model.OWLDataProperty instance, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public MORFullDataProperty(org.semanticweb.owlapi.model.OWLDataProperty 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 DataProperty.Disjoint<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLDataProperty,D extends MORDataProperty>
readSemantic
in interface DataProperty.Domain<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLDataProperty,D extends MORDataProperty>
readSemantic
in interface DataProperty.Equivalent<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLDataProperty,D extends MORDataProperty>
readSemantic
in interface DataProperty.Range<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLDataProperty,D extends MORDataProperty>
readSemantic
in interface DataProperty.Sub<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLDataProperty,D extends MORDataProperty>
readSemantic
in interface DataProperty.Super<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLDataProperty,D extends MORDataProperty>
readSemantic
in interface Semantic.Descriptor<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLDataProperty>
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 MORDataProperty.Disjoint<MORFullDataProperty>
writeSemantic
in interface MORDataProperty.Domain
writeSemantic
in interface MORDataProperty.Equivalent<MORFullDataProperty>
writeSemantic
in interface MORDataProperty.Range
writeSemantic
in interface MORDataProperty.Sub<MORFullDataProperty>
writeSemantic
in interface MORDataProperty.Super<MORFullDataProperty>
writeSemantic
in interface Semantic.Descriptor<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLDataProperty>
Semantic.MappingIntent.getOntologyChanges()
field
initialised (i.e.: OWLOntologyChange
).public MORFullDataProperty getNewDisjointDataProperty(org.semanticweb.owlapi.model.OWLDataProperty instance, it.emarolab.amor.owlInterface.OWLReferences ontology)
DataProperty.Disjoint
DataProperty.Disjoint.buildDisjointDataProperty()
and
its purpose is to instantiate a new DataProperty
to represent
a disjointed property of this
DataProperty
Semantic.Descriptor
.getNewDisjointDataProperty
in interface DataProperty.Disjoint<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLDataProperty,D extends MORDataProperty>
instance
- the instance to ground the new disjoint DataProperty
.ontology
- the ontology in which ground the new DataProperty
.Semantic.Descriptor
for all the disjointed properties
of the one described by this
interface.public MORAxioms.DataLinks getDisjointDataProperty()
DataProperty.Disjoint
Semantic.Axioms
that describes all the disjoint data properties of
this
grounded DataProperty
; from a no OOP point of view.getDisjointDataProperty
in interface DataProperty.Disjoint<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLDataProperty,D extends MORDataProperty>
getDisjointDataProperty
in interface MORDataProperty.Disjoint<MORFullDataProperty>
this
described property.public java.util.Set<MORFullDataProperty> buildEquivalentDataProperty()
DataProperty.Equivalent
Semantic.Descriptor
set where each element
represents the disjointed data property of this
property.
Each of DataProperty
s are instantiated
through the method DataProperty.Equivalent.getNewEquivalentDataProperty(Object, Object)
;
this is called for all DataProperty.Equivalent.getEquivalentDataProperty()
.buildEquivalentDataProperty
in interface DataProperty.Equivalent<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLDataProperty,D extends MORDataProperty>
DataProperty
s that describes the
equivalent relations of this
described ontological property.public MORFullDataProperty getNewEquivalentDataProperty(org.semanticweb.owlapi.model.OWLDataProperty instance, it.emarolab.amor.owlInterface.OWLReferences ontology)
DataProperty.Equivalent
DataProperty.Equivalent.buildEquivalentDataProperty()
and
its purpose is to instantiate a new DataProperty
to represent
an equivalent property of this
DataProperty
Semantic.Descriptor
.getNewEquivalentDataProperty
in interface DataProperty.Equivalent<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLDataProperty,D extends MORDataProperty>
instance
- the instance to ground the new equivalent DataProperty
.ontology
- the ontology in which ground the new DataProperty
.Semantic.Descriptor
for all the equivalent properties
of the one described by this
interface.public MORAxioms.DataLinks getEquivalentDataProperty()
DataProperty.Equivalent
Semantic.Axioms
that describes all the equivalent data properties of
this
grounded DataProperty
; from a no OOP point of view.getEquivalentDataProperty
in interface DataProperty.Equivalent<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLDataProperty,D extends MORDataProperty>
getEquivalentDataProperty
in interface MORDataProperty.Equivalent<MORFullDataProperty>
this
described property.public MORAxioms.Restrictions getDomainDataProperty()
DataProperty.Domain
Semantic.Axioms
that describes all the restrictions of the
domain of the described property; from a no OOP point of view.getDomainDataProperty
in interface DataProperty.Domain<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLDataProperty,D extends MORDataProperty>
getDomainDataProperty
in interface MORDataProperty.Domain
this
grounded the data property.public MORAxioms.Restrictions getRangeDataProperty()
DataProperty.Range
Semantic.Axioms
that describes all the restrictions of the
range of the described property; from a no OOP point of view.getRangeDataProperty
in interface DataProperty.Range<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLDataProperty,D extends MORDataProperty>
getRangeDataProperty
in interface MORDataProperty.Range
this
grounded the data property.public MORFullDataProperty getNewSubDataProperty(org.semanticweb.owlapi.model.OWLDataProperty instance, it.emarolab.amor.owlInterface.OWLReferences ontology)
DataProperty.Sub
DataProperty.Sub.buildSubDataProperty()
and
its purpose is to instantiate a new DataProperty
to represent
a sub property of this
DataProperty
Semantic.Descriptor
.getNewSubDataProperty
in interface DataProperty.Sub<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLDataProperty,D extends MORDataProperty>
instance
- the instance to ground the new sub DataProperty
.ontology
- the ontology in which ground the new DataProperty
.Semantic.Descriptor
for all the sub properties
of the one described by this
interface.public MORAxioms.DataLinks getSubDataProperty()
DataProperty.Sub
Semantic.Axioms
that describes all the sub data properties of
this
grounded DataProperty
; from a no OOP point of view.getSubDataProperty
in interface DataProperty.Sub<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLDataProperty,D extends MORDataProperty>
getSubDataProperty
in interface MORDataProperty.Sub<MORFullDataProperty>
this
described property.public MORFullDataProperty getNewSuperDataProperty(org.semanticweb.owlapi.model.OWLDataProperty instance, it.emarolab.amor.owlInterface.OWLReferences ontology)
DataProperty.Super
DataProperty.Super.buildSuperDataProperty()
and
its purpose is to instantiate a new DataProperty
to represent
a super property of this
DataProperty
Semantic.Descriptor
.getNewSuperDataProperty
in interface DataProperty.Super<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLDataProperty,D extends MORDataProperty>
instance
- the instance to ground the new super DataProperty
.ontology
- the ontology in which ground the new DataProperty
.Semantic.Descriptor
for all the super properties
of the one described by this
interface.public MORAxioms.DataLinks getSuperDataProperty()
DataProperty.Super
Semantic.Axioms
that describes all the super data properties of
this
grounded DataProperty
; from a no OOP point of view.getSuperDataProperty
in interface DataProperty.Super<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLDataProperty,D extends MORDataProperty>
getSuperDataProperty
in interface MORDataProperty.Super<MORFullDataProperty>
this
described property.public java.lang.String toString()
toString
in class java.lang.Object