public class MORHierarchicalDataProperty extends MORDataPropertyBase implements MORDataProperty.Sub<MORHierarchicalDataProperty>, MORDataProperty.Super<MORHierarchicalDataProperty>
This is an example of how use the Semantic.Descriptor
s for implement
a data property that is synchronised w.r.t. its MORDataProperty.Super
and MORDataProperty.Sub
properties.
Its purpose is only to instanciate the MORAxioms.DataLinks
for the
respective descriptions, as well as call both interfaces in the
readSemantic()
and writeSemantic()
methods.
All its constructions are based on MORDataPropertyBase
in order
to automatically manage a grounding MORGrounding.DataInstance
.
You may want to use this class (see also MORDefinitionDataProperty
and MORDomainDataProperty
as well as other classes in the
it.emarolab.owloop.aMORDescriptor.utility
package) as templates to build a specific
MORDataProperty
descriptor that fits your needs and maximises the
OWL synchronisation efficiency for data properties.
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 |
---|
MORHierarchicalDataProperty(java.lang.String instanceName,
it.emarolab.amor.owlInterface.OWLReferences onto) |
MORHierarchicalDataProperty(java.lang.String instanceName,
java.lang.String ontoName) |
MORHierarchicalDataProperty(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
MORHierarchicalDataProperty(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath,
boolean bufferingChanges) |
MORHierarchicalDataProperty(org.semanticweb.owlapi.model.OWLDataProperty instance,
it.emarolab.amor.owlInterface.OWLReferences onto) |
MORHierarchicalDataProperty(org.semanticweb.owlapi.model.OWLDataProperty instance,
java.lang.String ontoName) |
MORHierarchicalDataProperty(org.semanticweb.owlapi.model.OWLDataProperty instance,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
MORHierarchicalDataProperty(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 |
---|---|
MORHierarchicalDataProperty |
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 . |
MORHierarchicalDataProperty |
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.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. |
buildSubDataProperty, synchroniseSubDataPropertyFromSemantic, synchroniseSubDataPropertyToSemantic
buildSuperDataProperty, synchroniseSuperDataPropertyFromSemantic, synchroniseSuperDataPropertyToSemantic
copyGround, equals, hashCode, reason, setGround, setInstance, setInstance
getGroundInstance, getGroundOntology, setFunctional, setNotFunctional
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 MORHierarchicalDataProperty(java.lang.String instanceName, it.emarolab.amor.owlInterface.OWLReferences onto)
public MORHierarchicalDataProperty(java.lang.String instanceName, java.lang.String ontoName)
public MORHierarchicalDataProperty(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public MORHierarchicalDataProperty(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath, boolean bufferingChanges)
public MORHierarchicalDataProperty(org.semanticweb.owlapi.model.OWLDataProperty instance, it.emarolab.amor.owlInterface.OWLReferences onto)
public MORHierarchicalDataProperty(org.semanticweb.owlapi.model.OWLDataProperty instance, java.lang.String ontoName)
public MORHierarchicalDataProperty(org.semanticweb.owlapi.model.OWLDataProperty instance, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public MORHierarchicalDataProperty(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.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.Sub<MORHierarchicalDataProperty>
writeSemantic
in interface MORDataProperty.Super<MORHierarchicalDataProperty>
writeSemantic
in interface Semantic.Descriptor<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLDataProperty>
Semantic.MappingIntent.getOntologyChanges()
field
initialised (i.e.: OWLOntologyChange
).public MORHierarchicalDataProperty 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<MORHierarchicalDataProperty>
this
described property.public MORHierarchicalDataProperty 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<MORHierarchicalDataProperty>
this
described property.public java.lang.String toString()
toString
in class java.lang.Object