public class MORHierarchicalObjectProperty extends MORObjectPropertyBase implements MORObjectProperty.Sub<MORHierarchicalObjectProperty>, MORObjectProperty.Super<MORHierarchicalObjectProperty>
This is an example of how use the Semantic.Descriptor
s for implement
a object property that is synchronised w.r.t. its MORObjectProperty.Super
and MORObjectProperty.Sub
properties.
Its purpose is only to instanciate the MORAxioms.ObjectLinks
for the
respective descriptions, as well as call both interfaces in the
readSemantic()
and writeSemantic()
methods.
All its constructions are based on MORObjectPropertyBase
in order
to automatically manage an MORGrounding.ObjectInstance
ground.
You may want to use this class (see also MORDefinitionObjectProperty
and MORDomainObjectProperty
as well as other classes in the
it.emarolab.owloop.aMORDescriptor.utility
package) as templates to build a specific
MORObjectProperty
descriptor that fits your needs and maximises the
OWL synchronisation efficiency for object properties.
MORGrounding.ConceptInstance, MORGrounding.DataInstance, MORGrounding.GroundBase<J extends org.semanticweb.owlapi.model.OWLObject>, MORGrounding.IndividualInstance, MORGrounding.ObjectInstance
MORObjectProperty.Disjoint<D extends MORObjectProperty>, MORObjectProperty.Domain, MORObjectProperty.Equivalent<D extends MORObjectProperty>, MORObjectProperty.Inverse<D extends MORObjectProperty>, MORObjectProperty.Range, MORObjectProperty.Sub<D extends MORObjectProperty>, MORObjectProperty.Super<D extends MORObjectProperty>
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 |
---|
MORHierarchicalObjectProperty(java.lang.String instanceName,
it.emarolab.amor.owlInterface.OWLReferences onto) |
MORHierarchicalObjectProperty(java.lang.String instanceName,
java.lang.String ontoName) |
MORHierarchicalObjectProperty(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
MORHierarchicalObjectProperty(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath,
boolean bufferingChanges) |
MORHierarchicalObjectProperty(org.semanticweb.owlapi.model.OWLObjectProperty instance,
it.emarolab.amor.owlInterface.OWLReferences onto) |
MORHierarchicalObjectProperty(org.semanticweb.owlapi.model.OWLObjectProperty instance,
java.lang.String ontoName) |
MORHierarchicalObjectProperty(org.semanticweb.owlapi.model.OWLObjectProperty instance,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
MORHierarchicalObjectProperty(org.semanticweb.owlapi.model.OWLObjectProperty instance,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath,
boolean bufferingChanges) |
Modifier and Type | Method and Description |
---|---|
MORHierarchicalObjectProperty |
getNewSubObjectProperty(org.semanticweb.owlapi.model.OWLObjectProperty instance,
it.emarolab.amor.owlInterface.OWLReferences ontology)
This method is called by
ObjectProperty.Sub.buildSubObjectProperty() and
its purpose is to instantiate a new ObjectProperty to represent
a sub property of this ObjectProperty Semantic.Descriptor . |
MORHierarchicalObjectProperty |
getNewSuperObjectProperty(org.semanticweb.owlapi.model.OWLObjectProperty instance,
it.emarolab.amor.owlInterface.OWLReferences ontology)
This method is called by
ObjectProperty.Super.buildSuperObjectProperty() and
its purpose is to instantiate a new ObjectProperty to represent
a super property of this ObjectProperty Semantic.Descriptor . |
MORAxioms.ObjectLinks |
getSubObjectProperty()
Returns the
Semantic.Axioms that describes all the sub object properties of
this grounded ObjectProperty ; from a no OOP point of view. |
MORAxioms.ObjectLinks |
getSuperObjectProperty()
Returns the
Semantic.Axioms that describes all the super object properties of
this grounded ObjectProperty ; 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. |
copyGround, equals, hashCode, reason, setGround, setInstance, setInstance
aMORlogging, getOntologyName, getOWLClass, getOWLDataFactory, getOWLDataProperty, getOWLDataType, getOWLIndividual, getOWLLiteral, getOWLName, getOWLName, getOWLObjectProperty, getOWLOntology, getReasoner, isCompleteQuery, isReasonedQuery, reason, saveOntology, saveOntology, setCompleteQuery, setReasonedQuery
getGroundInstance, getGroundOntology, setAsymmetric, setFunctional, setInverseFunctional, setIrreflexive, setNotAsymmetric, setNotFunctional, setNotInverseFunctional, setNotIrreflexive, setNotReflexive, setNotSymmetric, setNotTransitive, setReflexive, setSymmetric, setTransitive
addSubObjectProperty, addSubObjectProperty, querySubObjectProperty, removeSubObjectProperty, removeSubObjectProperty
addSuperObjectProperty, addSuperObjectProperty, querySuperObjectProperty, removeSuperObjectProperty, removeSuperObjectProperty
getGround, getNewGround, getNewGround
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
buildSubObjectProperty, synchroniseSubObjectPropertyFromSemantic, synchroniseSubObjectPropertyToSemantic
buildSuperObjectProperty, synchroniseSuperObjectPropertyFromSemantic, synchroniseSuperObjectPropertyToSemantic
getChangingIntent, getGround, getInstance, getIntent, getOntology, groundReason, writeSemanticInconsistencySafe, writeSemanticInconsistencySafe
copyGround
public MORHierarchicalObjectProperty(java.lang.String instanceName, it.emarolab.amor.owlInterface.OWLReferences onto)
public MORHierarchicalObjectProperty(java.lang.String instanceName, java.lang.String ontoName)
public MORHierarchicalObjectProperty(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public MORHierarchicalObjectProperty(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath, boolean bufferingChanges)
public MORHierarchicalObjectProperty(org.semanticweb.owlapi.model.OWLObjectProperty instance, it.emarolab.amor.owlInterface.OWLReferences onto)
public MORHierarchicalObjectProperty(org.semanticweb.owlapi.model.OWLObjectProperty instance, java.lang.String ontoName)
public MORHierarchicalObjectProperty(org.semanticweb.owlapi.model.OWLObjectProperty instance, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public MORHierarchicalObjectProperty(org.semanticweb.owlapi.model.OWLObjectProperty 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 ObjectProperty.Sub<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLObjectProperty,D extends MORObjectProperty>
readSemantic
in interface ObjectProperty.Super<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLObjectProperty,D extends MORObjectProperty>
readSemantic
in interface Semantic.Descriptor<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLObjectProperty>
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 MORObjectProperty.Sub<MORHierarchicalObjectProperty>
writeSemantic
in interface MORObjectProperty.Super<MORHierarchicalObjectProperty>
writeSemantic
in interface Semantic.Descriptor<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLObjectProperty>
Semantic.MappingIntent.getOntologyChanges()
field
initialised (i.e.: OWLOntologyChange
).public MORHierarchicalObjectProperty getNewSubObjectProperty(org.semanticweb.owlapi.model.OWLObjectProperty instance, it.emarolab.amor.owlInterface.OWLReferences ontology)
ObjectProperty.Sub
ObjectProperty.Sub.buildSubObjectProperty()
and
its purpose is to instantiate a new ObjectProperty
to represent
a sub property of this
ObjectProperty
Semantic.Descriptor
.getNewSubObjectProperty
in interface ObjectProperty.Sub<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLObjectProperty,D extends MORObjectProperty>
instance
- the instance to ground the new sub ObjectProperty
.ontology
- the ontology in which ground the new ObjectProperty
.Semantic.Descriptor
for all the sub properties
of the one described by this
interface.public MORAxioms.ObjectLinks getSubObjectProperty()
ObjectProperty.Sub
Semantic.Axioms
that describes all the sub object properties of
this
grounded ObjectProperty
; from a no OOP point of view.getSubObjectProperty
in interface MORObjectProperty.Sub<MORHierarchicalObjectProperty>
getSubObjectProperty
in interface ObjectProperty.Sub<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLObjectProperty,D extends MORObjectProperty>
this
described property.public MORHierarchicalObjectProperty getNewSuperObjectProperty(org.semanticweb.owlapi.model.OWLObjectProperty instance, it.emarolab.amor.owlInterface.OWLReferences ontology)
ObjectProperty.Super
ObjectProperty.Super.buildSuperObjectProperty()
and
its purpose is to instantiate a new ObjectProperty
to represent
a super property of this
ObjectProperty
Semantic.Descriptor
.getNewSuperObjectProperty
in interface ObjectProperty.Super<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLObjectProperty,D extends MORObjectProperty>
instance
- the instance to ground the new super ObjectProperty
.ontology
- the ontology in which ground the new ObjectProperty
.Semantic.Descriptor
for all the super properties
of the one described by this
interface.public MORAxioms.ObjectLinks getSuperObjectProperty()
ObjectProperty.Super
Semantic.Axioms
that describes all the super object properties of
this
grounded ObjectProperty
; from a no OOP point of view.getSuperObjectProperty
in interface MORObjectProperty.Super<MORHierarchicalObjectProperty>
getSuperObjectProperty
in interface ObjectProperty.Super<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLObjectProperty,D extends MORObjectProperty>
this
described property.public java.lang.String toString()
toString
in class java.lang.Object