public class MORDomainDataProperty extends MORDataPropertyBase implements 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. its MORDataProperty.Domain
and MORDataProperty.Range
restrictions.
Its purpose is only to instanciate the MORAxioms.Restrictions
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 MORHierarchicalDataProperty
, 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 |
---|
MORDomainDataProperty(java.lang.String instanceName,
it.emarolab.amor.owlInterface.OWLReferences onto) |
MORDomainDataProperty(java.lang.String instanceName,
java.lang.String ontoName) |
MORDomainDataProperty(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
MORDomainDataProperty(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath,
boolean bufferingChanges) |
MORDomainDataProperty(org.semanticweb.owlapi.model.OWLDataProperty instance,
it.emarolab.amor.owlInterface.OWLReferences onto) |
MORDomainDataProperty(org.semanticweb.owlapi.model.OWLDataProperty instance,
java.lang.String ontoName) |
MORDomainDataProperty(org.semanticweb.owlapi.model.OWLDataProperty instance,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
MORDomainDataProperty(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.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.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. |
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. |
synchroniseDomainDataPropertyFromSemantic, synchroniseDomainDataPropertyToSemantic
synchroniseRangeDataPropertyFromSemantic, synchroniseRangeDataPropertyToSemantic
copyGround, equals, hashCode, reason, setGround, setInstance, setInstance
getGroundInstance, getGroundOntology, setFunctional, setNotFunctional
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
addRangeDataRestriction, queryRangeDataProperty, rangeDataRestriction, removeRangeDataRestriction
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 MORDomainDataProperty(java.lang.String instanceName, it.emarolab.amor.owlInterface.OWLReferences onto)
public MORDomainDataProperty(java.lang.String instanceName, java.lang.String ontoName)
public MORDomainDataProperty(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public MORDomainDataProperty(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath, boolean bufferingChanges)
public MORDomainDataProperty(org.semanticweb.owlapi.model.OWLDataProperty instance, it.emarolab.amor.owlInterface.OWLReferences onto)
public MORDomainDataProperty(org.semanticweb.owlapi.model.OWLDataProperty instance, java.lang.String ontoName)
public MORDomainDataProperty(org.semanticweb.owlapi.model.OWLDataProperty instance, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public MORDomainDataProperty(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.Domain<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLDataProperty,it.emarolab.amor.owlInterface.SemanticRestriction>
readSemantic
in interface DataProperty.Range<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLDataProperty,it.emarolab.amor.owlInterface.SemanticRestriction>
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.Domain
writeSemantic
in interface MORDataProperty.Range
writeSemantic
in interface Semantic.Descriptor<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLDataProperty>
Semantic.MappingIntent.getOntologyChanges()
field
initialised (i.e.: OWLOntologyChange
).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,it.emarolab.amor.owlInterface.SemanticRestriction>
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,it.emarolab.amor.owlInterface.SemanticRestriction>
getRangeDataProperty
in interface MORDataProperty.Range
this
grounded the data property.public java.lang.String toString()
toString
in class java.lang.Object