public abstract class DescriptorGround<J extends org.semanticweb.owlapi.model.OWLObject> extends java.lang.Object implements Axiom.Descriptor<it.emarolab.amor.owlInterface.OWLReferences,J>, DescriptorGroundInterface<J>
GroundInstance
.
All constructors fully initialise a new Axiom.Ground
(i.e., set both an ontology and an instance).
By default, this class takes an ontology from a file and initialises the PelletReasoner
(If another OWLReferences
is instantiated with the same ontoName then this ontology will be used.).
Axiom.Descriptor.OntologyReference
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 and Type | Field and Description |
---|---|
protected static java.lang.String |
NL |
Constructor and Description |
---|
DescriptorGround(J instance,
it.emarolab.amor.owlInterface.OWLReferences onto) |
DescriptorGround(J instance,
java.lang.String ontoName) |
DescriptorGround(J instance,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
DescriptorGround(J instance,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath,
boolean bufferingChanges) |
DescriptorGround(java.lang.String instanceName,
it.emarolab.amor.owlInterface.OWLReferences onto) |
DescriptorGround(java.lang.String instanceName,
java.lang.String ontoName) |
DescriptorGround(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
DescriptorGround(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath,
boolean bufferingChanges) |
Modifier and Type | Method and Description |
---|---|
Axiom.Ground<it.emarolab.amor.owlInterface.OWLReferences,J> |
copyGround()
Make a copy of the
Axiom.Ground object. |
boolean |
equals(java.lang.Object o) |
DescriptorGroundInterface.GroundInstance<J> |
getGround() |
java.lang.String |
getGroundInstanceName()
Returns the Ground instance's name as a String
|
protected abstract DescriptorGroundInterface.GroundInstance<J> |
getNewGround(it.emarolab.amor.owlInterface.OWLReferences ontology,
J instance)
This method should return a new instanciate
DescriptorGroundInterface with the given values. |
protected abstract DescriptorGroundInterface.GroundInstance<J> |
getNewGround(it.emarolab.amor.owlInterface.OWLReferences ontology,
java.lang.String instance)
This method should return a new instanciate
DescriptorGroundInterface with the given values. |
int |
hashCode() |
void |
reason()
It calls
OWLReferences.synchronizeReasoner() in order to performs
reasoning over the actual state of the ontology. |
void |
setGround(DescriptorGroundInterface.GroundInstance<J> ground)
This function has to be called in any constructor.
|
void |
setGroundInstance(J instance)
It sets a new instance in the same
Axiom.Descriptor.getOntologyReference() . |
void |
setGroundInstance(java.lang.String instanceName)
It sets a new instance in the same
Axiom.Descriptor.getOntologyReference() . |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
activateAMORlogging, getChangingIntent, getInstance, getIntent, getOntologyReference, groundReason, readAxioms, writeAxioms, writeAxiomsReasonReadAxioms, writeAxiomsReasonReadAxioms
getOntologyName, getOWLClass, getOWLDataFactory, getOWLDataProperty, getOWLDataType, getOWLIndividual, getOWLLiteral, getOWLName, getOWLName, getOWLObjectProperty, getOWLOntology, getOWLReasoner, isCompleteQuery, isReasonedQuery, saveOntology, saveOntology, setCompleteQuery, setReasonedQuery
getGroundInstance, getGroundOntology
public DescriptorGround(J instance, it.emarolab.amor.owlInterface.OWLReferences onto)
public DescriptorGround(java.lang.String instanceName, it.emarolab.amor.owlInterface.OWLReferences onto)
public DescriptorGround(J instance, java.lang.String ontoName)
public DescriptorGround(J instance, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public DescriptorGround(J instance, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath, boolean bufferingChanges)
public DescriptorGround(java.lang.String instanceName, java.lang.String ontoName)
public DescriptorGround(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public DescriptorGround(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath, boolean bufferingChanges)
public void setGround(DescriptorGroundInterface.GroundInstance<J> ground)
ground
- the ground to set as field of this class.public void setGroundInstance(J instance)
Axiom.Descriptor.getOntologyReference()
.instance
- the new instance to be ground.public void setGroundInstance(java.lang.String instanceName)
Axiom.Descriptor.getOntologyReference()
.instanceName
- the new instance name to be ground.protected abstract DescriptorGroundInterface.GroundInstance<J> getNewGround(it.emarolab.amor.owlInterface.OWLReferences ontology, J instance)
DescriptorGroundInterface
with the given values.
It is automatically called on all default constructors in order to #setGround(GroundInstance)
.ontology
- the grounding ontology.instance
- the grounding instance.DescriptorGroundInterface
.protected abstract DescriptorGroundInterface.GroundInstance<J> getNewGround(it.emarolab.amor.owlInterface.OWLReferences ontology, java.lang.String instance)
DescriptorGroundInterface
with the given values.
It is automatically called on all default constructors in order to #setGround(GroundInstance)
.ontology
- the grounding ontology.instance
- the ane of the grounding instance.DescriptorGroundInterface
.public java.lang.String getGroundInstanceName()
getGroundInstanceName
in interface Axiom.Descriptor<it.emarolab.amor.owlInterface.OWLReferences,J extends org.semanticweb.owlapi.model.OWLObject>
public DescriptorGroundInterface.GroundInstance<J> getGround()
getGround
in interface Axiom.Descriptor<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 Axiom.Ground<it.emarolab.amor.owlInterface.OWLReferences,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 boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object