public class MORDefinitionObjectProperty extends MORObjectPropertyBase implements MORObjectProperty.Disjoint<MORDefinitionObjectProperty>, MORObjectProperty.Equivalent<MORDefinitionObjectProperty>, MORObjectProperty.Inverse<MORDefinitionObjectProperty>
This is an example of how use the Semantic.Descriptor
s for implement
an object property that is synchronised w.r.t. its MORObjectProperty.Disjoint
,
MORObjectProperty.Equivalent
and MORObjectProperty.Inverse
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 MORHierarchicalObjectProperty
,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 |
---|
MORDefinitionObjectProperty(java.lang.String instanceName,
it.emarolab.amor.owlInterface.OWLReferences onto) |
MORDefinitionObjectProperty(java.lang.String instanceName,
java.lang.String ontoName) |
MORDefinitionObjectProperty(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
MORDefinitionObjectProperty(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath,
boolean bufferingChanges) |
MORDefinitionObjectProperty(org.semanticweb.owlapi.model.OWLObjectProperty instance,
it.emarolab.amor.owlInterface.OWLReferences onto) |
MORDefinitionObjectProperty(org.semanticweb.owlapi.model.OWLObjectProperty instance,
java.lang.String ontoName) |
MORDefinitionObjectProperty(org.semanticweb.owlapi.model.OWLObjectProperty instance,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
MORDefinitionObjectProperty(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 |
---|---|
MORAxioms.ObjectLinks |
getDisjointObjectProperty()
Returns the
Semantic.Axioms that describes all the disjoint object properties of
this grounded ObjectProperty ; from a no OOP point of view. |
MORAxioms.ObjectLinks |
getEquivalentObjectProperty()
Returns the
Semantic.Axioms that describes all the equivalent object properties of
this grounded ObjectProperty ; from a no OOP point of view. |
MORAxioms.ObjectLinks |
getInverseObjectProperty()
Returns the
Semantic.Axioms that describes all the inverse object properties of
this grounded ObjectProperty ; from a no OOP point of view. |
MORDefinitionObjectProperty |
getNewDisjointObjectProperty(org.semanticweb.owlapi.model.OWLObjectProperty instance,
it.emarolab.amor.owlInterface.OWLReferences ontology)
This method is called by
ObjectProperty.Disjoint.buildDisjointObjectProperty() and
its purpose is to instantiate a new ObjectProperty to represent
a disjointed property of this ObjectProperty Semantic.Descriptor . |
MORDefinitionObjectProperty |
getNewEquivalentObjectProperty(org.semanticweb.owlapi.model.OWLObjectProperty instance,
it.emarolab.amor.owlInterface.OWLReferences ontology)
This method is called by
ObjectProperty.Equivalent.buildEquivalentObjectProperty() and
its purpose is to instantiate a new ObjectProperty to represent
an equivalent property of this ObjectProperty Semantic.Descriptor . |
MORDefinitionObjectProperty |
getNewInverseObjectProperty(org.semanticweb.owlapi.model.OWLObjectProperty instance,
it.emarolab.amor.owlInterface.OWLReferences ontology)
This method is called by
ObjectProperty.Inverse.buildInverseObjectProperty() and
its purpose is to instantiate a new ObjectProperty to represent
an inverse property of this ObjectProperty Semantic.Descriptor . |
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
addDisjointObjectProperty, addDisjointObjectProperty, queryDisjointObjectProperty, removeDisjointObjectProperty, removeDisjointObjectProperty
addEquivalentObjectProperty, addEquivalentObjectProperty, queryEquivalentObjectProperty, removeEquivalentObjectProperty, removeEquivalentObjectProperty
addInverseObjectProperty, addInverseObjectProperty, queryInverseObjectProperty, removeInverseObjectProperty, removeInverseObjectProperty
getGround, getNewGround, getNewGround
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
buildDisjointObjectProperty, synchroniseDisjointObjectPropertyFromSemantic, synchroniseDisjointObjectPropertyToSemantic
buildEquivalentObjectProperty, synchroniseEquivalentObjectPropertyFromSemantic, synchroniseEquivalentObjectPropertyToSemantic
buildInverseObjectProperty, synchroniseInverseObjectPropertyFromSemantic, synchroniseInverseObjectPropertyToSemantic
getChangingIntent, getGround, getInstance, getIntent, getOntology, groundReason, writeSemanticInconsistencySafe, writeSemanticInconsistencySafe
copyGround
public MORDefinitionObjectProperty(java.lang.String instanceName, it.emarolab.amor.owlInterface.OWLReferences onto)
public MORDefinitionObjectProperty(java.lang.String instanceName, java.lang.String ontoName)
public MORDefinitionObjectProperty(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public MORDefinitionObjectProperty(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath, boolean bufferingChanges)
public MORDefinitionObjectProperty(org.semanticweb.owlapi.model.OWLObjectProperty instance, it.emarolab.amor.owlInterface.OWLReferences onto)
public MORDefinitionObjectProperty(org.semanticweb.owlapi.model.OWLObjectProperty instance, java.lang.String ontoName)
public MORDefinitionObjectProperty(org.semanticweb.owlapi.model.OWLObjectProperty instance, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public MORDefinitionObjectProperty(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.Disjoint<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLObjectProperty,D extends MORObjectProperty>
readSemantic
in interface ObjectProperty.Equivalent<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLObjectProperty,D extends MORObjectProperty>
readSemantic
in interface ObjectProperty.Inverse<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.Disjoint<MORDefinitionObjectProperty>
writeSemantic
in interface MORObjectProperty.Equivalent<MORDefinitionObjectProperty>
writeSemantic
in interface MORObjectProperty.Inverse<MORDefinitionObjectProperty>
writeSemantic
in interface Semantic.Descriptor<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLObjectProperty>
Semantic.MappingIntent.getOntologyChanges()
field
initialised (i.e.: OWLOntologyChange
).public MORDefinitionObjectProperty getNewDisjointObjectProperty(org.semanticweb.owlapi.model.OWLObjectProperty instance, it.emarolab.amor.owlInterface.OWLReferences ontology)
ObjectProperty.Disjoint
ObjectProperty.Disjoint.buildDisjointObjectProperty()
and
its purpose is to instantiate a new ObjectProperty
to represent
a disjointed property of this
ObjectProperty
Semantic.Descriptor
.getNewDisjointObjectProperty
in interface ObjectProperty.Disjoint<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLObjectProperty,D extends MORObjectProperty>
instance
- the instance to ground the new disjoint ObjectProperty
.ontology
- the ontology in which ground the new ObjectProperty
.Semantic.Descriptor
for all the disjointed properties
of the one described by this
interface.public MORAxioms.ObjectLinks getDisjointObjectProperty()
ObjectProperty.Disjoint
Semantic.Axioms
that describes all the disjoint object properties of
this
grounded ObjectProperty
; from a no OOP point of view.getDisjointObjectProperty
in interface MORObjectProperty.Disjoint<MORDefinitionObjectProperty>
getDisjointObjectProperty
in interface ObjectProperty.Disjoint<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLObjectProperty,D extends MORObjectProperty>
this
described property.public MORDefinitionObjectProperty getNewEquivalentObjectProperty(org.semanticweb.owlapi.model.OWLObjectProperty instance, it.emarolab.amor.owlInterface.OWLReferences ontology)
ObjectProperty.Equivalent
ObjectProperty.Equivalent.buildEquivalentObjectProperty()
and
its purpose is to instantiate a new ObjectProperty
to represent
an equivalent property of this
ObjectProperty
Semantic.Descriptor
.getNewEquivalentObjectProperty
in interface ObjectProperty.Equivalent<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLObjectProperty,D extends MORObjectProperty>
instance
- the instance to ground the new equivalent ObjectProperty
.ontology
- the ontology in which ground the new ObjectProperty
.Semantic.Descriptor
for all the equivalent properties
of the one described by this
interface.public MORAxioms.ObjectLinks getEquivalentObjectProperty()
ObjectProperty.Equivalent
Semantic.Axioms
that describes all the equivalent object properties of
this
grounded ObjectProperty
; from a no OOP point of view.getEquivalentObjectProperty
in interface MORObjectProperty.Equivalent<MORDefinitionObjectProperty>
getEquivalentObjectProperty
in interface ObjectProperty.Equivalent<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLObjectProperty,D extends MORObjectProperty>
this
described property.public MORDefinitionObjectProperty getNewInverseObjectProperty(org.semanticweb.owlapi.model.OWLObjectProperty instance, it.emarolab.amor.owlInterface.OWLReferences ontology)
ObjectProperty.Inverse
ObjectProperty.Inverse.buildInverseObjectProperty()
and
its purpose is to instantiate a new ObjectProperty
to represent
an inverse property of this
ObjectProperty
Semantic.Descriptor
.getNewInverseObjectProperty
in interface ObjectProperty.Inverse<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLObjectProperty,D extends MORObjectProperty>
instance
- the instance to ground the new inverse ObjectProperty
.ontology
- the ontology in which ground the new ObjectProperty
.Semantic.Descriptor
for all the inverse properties
of the one described by this
interface.public MORAxioms.ObjectLinks getInverseObjectProperty()
ObjectProperty.Inverse
Semantic.Axioms
that describes all the inverse object properties of
this
grounded ObjectProperty
; from a no OOP point of view.getInverseObjectProperty
in interface MORObjectProperty.Inverse<MORDefinitionObjectProperty>
getInverseObjectProperty
in interface ObjectProperty.Inverse<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