public class MORDefinitionDataProperty extends MORDataPropertyBase implements MORDataProperty.Disjoint<MORDefinitionDataProperty>, MORDataProperty.Equivalent<MORDefinitionDataProperty>
This is an example of how use the Semantic.Descriptor
s for implement
a data property that is synchronised w.r.t. its MORDataProperty.Disjoint
and MORDataProperty.Equivalent
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 MORHierarchicalDataProperty
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 |
---|
MORDefinitionDataProperty(java.lang.String instanceName,
it.emarolab.amor.owlInterface.OWLReferences onto) |
MORDefinitionDataProperty(java.lang.String instanceName,
java.lang.String ontoName) |
MORDefinitionDataProperty(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
MORDefinitionDataProperty(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath,
boolean bufferingChanges) |
MORDefinitionDataProperty(org.semanticweb.owlapi.model.OWLDataProperty instance,
it.emarolab.amor.owlInterface.OWLReferences onto) |
MORDefinitionDataProperty(org.semanticweb.owlapi.model.OWLDataProperty instance,
java.lang.String ontoName) |
MORDefinitionDataProperty(org.semanticweb.owlapi.model.OWLDataProperty instance,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
MORDefinitionDataProperty(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 |
---|---|
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.DataLinks |
getEquivalentDataProperty()
Returns the
Semantic.Axioms that describes all the equivalent data properties of
this grounded DataProperty ; from a no OOP point of view. |
MORDefinitionDataProperty |
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 . |
MORDefinitionDataProperty |
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 . |
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
buildEquivalentDataProperty, synchroniseEquivalentDataPropertyFromSemantic, synchroniseEquivalentDataPropertyToSemantic
copyGround, equals, hashCode, reason, setGround, setInstance, setInstance
getGroundInstance, getGroundOntology, setFunctional, setNotFunctional
addDisjointDataProperty, addDisjointDataProperty, queryDisjointDataProperty, removeDisjointDataProperty, removeDisjointDataProperty
addEquivalentDataProperty, addEquivalentDataProperty, queryEquivalentDataProperty, removeEquivalentDataProperty, removeEquivalentDataProperty
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 MORDefinitionDataProperty(java.lang.String instanceName, it.emarolab.amor.owlInterface.OWLReferences onto)
public MORDefinitionDataProperty(java.lang.String instanceName, java.lang.String ontoName)
public MORDefinitionDataProperty(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public MORDefinitionDataProperty(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath, boolean bufferingChanges)
public MORDefinitionDataProperty(org.semanticweb.owlapi.model.OWLDataProperty instance, it.emarolab.amor.owlInterface.OWLReferences onto)
public MORDefinitionDataProperty(org.semanticweb.owlapi.model.OWLDataProperty instance, java.lang.String ontoName)
public MORDefinitionDataProperty(org.semanticweb.owlapi.model.OWLDataProperty instance, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public MORDefinitionDataProperty(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.Equivalent<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<MORDefinitionDataProperty>
writeSemantic
in interface MORDataProperty.Equivalent<MORDefinitionDataProperty>
writeSemantic
in interface Semantic.Descriptor<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLDataProperty>
Semantic.MappingIntent.getOntologyChanges()
field
initialised (i.e.: OWLOntologyChange
).public MORDefinitionDataProperty 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<MORDefinitionDataProperty>
this
described property.public MORDefinitionDataProperty 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<MORDefinitionDataProperty>
this
described property.public java.lang.String toString()
toString
in class java.lang.Object