J
- the type of ontological entity to be manipulated in the ontology by a descriptor.public abstract static class DescriptorGroundInterface.GroundInstance<J extends org.semanticweb.owlapi.model.OWLObject> extends java.lang.Object implements DescriptorGroundInterface<J>
DescriptorGroundInterface.GroundInstance
has the reference to an Ontology (i.e., using getGroundOntology()
). The reference
is shared between all DescriptorGroundInterface.GroundInstance
s. This way ontology and reasoner are not instantiated for all.
The base class for each DescriptorGroundInterface
s.
Is used for implementing: DescriptorGroundInterface.IndividualGroundInstance
, DescriptorGroundInterface.ConceptGroundInstance
, DescriptorGroundInterface.DataGroundInstance
and
DescriptorGroundInterface.ObjectGroundInstance
. It makes the instance to be an OWLObject
and the ontology to be an OWLReferences
.DescriptorGroundInterface.ConceptGroundInstance, DescriptorGroundInterface.DataGroundInstance, DescriptorGroundInterface.GroundInstance<J extends org.semanticweb.owlapi.model.OWLObject>, DescriptorGroundInterface.IndividualGroundInstance, DescriptorGroundInterface.ObjectGroundInstance
Axiom.Descriptor<O,J>, Axiom.EntitySet<Y>, Axiom.ExpressionEntity<S,Y>, Axiom.ExpressionEntitySet<F extends Axiom.ExpressionEntity<?,Y>,Y>, Axiom.Ground<O,J>, Axiom.MappingIntent<I extends Axiom.Ground,C>
Modifier | Constructor and Description |
---|---|
protected |
GroundInstance(DescriptorGroundInterface.GroundInstance<J> copy)
Copy constructor.
|
|
GroundInstance(it.emarolab.amor.owlInterface.OWLReferences ontology,
J instance)
Fully instanciate this class
|
Modifier and Type | Method and Description |
---|---|
abstract DescriptorGroundInterface.GroundInstance<J> |
copyGround()
Make a copy of the
Axiom.Ground object. |
boolean |
equals(java.lang.Object o) |
J |
getGroundInstance() |
it.emarolab.amor.owlInterface.OWLReferences |
getGroundOntology() |
int |
hashCode() |
void |
reason()
It calls
OWLReferences.synchronizeReasoner() in order to performs
reasoning over the actual state of the ontology. |
void |
setInstance(J instance)
It change the instance to be grounded in the same
DescriptorGroundInterface.getOWLOntology() , |
abstract void |
setInstance(java.lang.String instanceName)
It change the instance to be grounded in the same
DescriptorGroundInterface.getOWLOntology() , |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getOntologyName, getOWLClass, getOWLDataFactory, getOWLDataProperty, getOWLDataType, getOWLIndividual, getOWLLiteral, getOWLName, getOWLName, getOWLObjectProperty, getOWLOntology, getOWLReasoner, isCompleteQuery, isReasonedQuery, saveOntology, saveOntology, setCompleteQuery, setReasonedQuery
protected J extends org.semanticweb.owlapi.model.OWLObject instance
public GroundInstance(it.emarolab.amor.owlInterface.OWLReferences ontology, J instance)
ontology
- the ontology in which the related Descriptor
will operate.instance
- the ontological entities to be described.protected GroundInstance(DescriptorGroundInterface.GroundInstance<J> copy)
copyGround()
.copy
- the ground to copyGround in a new
instancepublic it.emarolab.amor.owlInterface.OWLReferences getGroundOntology()
getGroundOntology
in interface Axiom.Ground<it.emarolab.amor.owlInterface.OWLReferences,J extends org.semanticweb.owlapi.model.OWLObject>
Axiom.Descriptor
synchronizes its internal state.public J getGroundInstance()
getGroundInstance
in interface Axiom.Ground<it.emarolab.amor.owlInterface.OWLReferences,J extends org.semanticweb.owlapi.model.OWLObject>
public abstract DescriptorGroundInterface.GroundInstance<J> copyGround()
Axiom.Ground
Axiom.Ground
object.
Used to make each Axiom.MappingIntent
independent
for the evolution of the system.
This method should call a specific copyGround constructor.copyGround
in interface Axiom.Ground<it.emarolab.amor.owlInterface.OWLReferences,J extends org.semanticweb.owlapi.model.OWLObject>
public void reason()
DescriptorGroundInterface
OWLReferences.synchronizeReasoner()
in order to performs
reasoning over the actual state of the ontology.reason
in interface Axiom.Ground<it.emarolab.amor.owlInterface.OWLReferences,J extends org.semanticweb.owlapi.model.OWLObject>
reason
in interface DescriptorGroundInterface<J extends org.semanticweb.owlapi.model.OWLObject>
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public void setInstance(J instance)
DescriptorGroundInterface.getOWLOntology()
,instance
- the new grounding instance.public abstract void setInstance(java.lang.String instanceName)
DescriptorGroundInterface.getOWLOntology()
,instanceName
- the new grounding instance name.