public abstract class MORBase<J extends org.semanticweb.owlapi.model.OWLObject> extends java.lang.Object implements Semantic.Descriptor<it.emarolab.amor.owlInterface.OWLReferences,J>, MORGrounding<J>
Semantic.Descriptor
implemented in the aMOR API.
This class is shared between all the Semantic.Descriptor
s that uses
aMOR.
(i.e.: the once which are based on: MORConcept
, MORIndividual
,
MORDataProperty
and MORObjectProperty
).
It only describes common constructors and initialisation
for specific MORGrounding
.
Note that all constructors fully initialise a new Semantic.Ground
(i.e.: set both an ontology and an instance).
By default this takes an ontology from file and initialises the PelletReasoner
.
Otherwise, if another OWLReferences
is instanciate with the same name
in the OWLReferencesInterface.OWLReferencesContainer
, this ontology will be used.
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>
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
NL |
Constructor and Description |
---|
MORBase(java.lang.String instanceName,
it.emarolab.amor.owlInterface.OWLReferences onto) |
MORBase(java.lang.String instanceName,
java.lang.String ontoName) |
MORBase(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
MORBase(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath,
boolean bufferingChanges) |
MORBase(J instance,
it.emarolab.amor.owlInterface.OWLReferences onto) |
MORBase(J instance,
java.lang.String ontoName) |
MORBase(J instance,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
MORBase(J instance,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath,
boolean bufferingChanges) |
Modifier and Type | Method and Description |
---|---|
Semantic.Ground<it.emarolab.amor.owlInterface.OWLReferences,J> |
copyGround()
Make a new copyGround of this object.
|
boolean |
equals(java.lang.Object o) |
MORGrounding.GroundBase<J> |
getGround()
Returns the grounding element for
this descriptor. |
protected abstract MORGrounding.GroundBase<J> |
getNewGround(it.emarolab.amor.owlInterface.OWLReferences ontology,
J instance)
This method should return a new instanciate
MORGrounding with the given values. |
protected abstract MORGrounding.GroundBase<J> |
getNewGround(it.emarolab.amor.owlInterface.OWLReferences ontology,
java.lang.String instance)
This method should return a new instanciate
MORGrounding 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(MORGrounding.GroundBase<J> ground)
This function has to be called in any constructor.
|
void |
setInstance(J instance)
It sets a new instance in the same
Semantic.Descriptor.getOntology() . |
void |
setInstance(java.lang.String instanceName)
It sets a new instance in the same
Semantic.Descriptor.getOntology() . |
aMORlogging, getOntologyName, getOWLClass, getOWLDataFactory, getOWLDataProperty, getOWLDataType, getOWLIndividual, getOWLLiteral, getOWLName, getOWLName, getOWLObjectProperty, getOWLOntology, getReasoner, isCompleteQuery, isReasonedQuery, saveOntology, saveOntology, setCompleteQuery, setReasonedQuery
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getChangingIntent, getInstance, getIntent, getOntology, groundReason, readSemantic, writeSemantic, writeSemanticInconsistencySafe, writeSemanticInconsistencySafe
getGroundInstance, getGroundOntology
public MORBase(java.lang.String instanceName, it.emarolab.amor.owlInterface.OWLReferences onto)
public MORBase(java.lang.String instanceName, java.lang.String ontoName)
public MORBase(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public MORBase(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath, boolean bufferingChanges)
public MORBase(J instance, it.emarolab.amor.owlInterface.OWLReferences onto)
public MORBase(J instance, java.lang.String ontoName)
public MORBase(J instance, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public MORBase(J instance, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath, boolean bufferingChanges)
public void setGround(MORGrounding.GroundBase<J> ground)
ground
- the ground to set as field of this class.public void setInstance(J instance)
Semantic.Descriptor.getOntology()
.instance
- the new instance to be ground.public void setInstance(java.lang.String instanceName)
Semantic.Descriptor.getOntology()
.instanceName
- the new instance name to be ground.protected abstract MORGrounding.GroundBase<J> getNewGround(it.emarolab.amor.owlInterface.OWLReferences ontology, J instance)
MORGrounding
with the given values.
It is automatically called on all default constructors in order to setGround(GroundBase)
.ontology
- the grounding ontology.instance
- the grounding instance.MORGrounding
.protected abstract MORGrounding.GroundBase<J> getNewGround(it.emarolab.amor.owlInterface.OWLReferences ontology, java.lang.String instance)
MORGrounding
with the given values.
It is automatically called on all default constructors in order to setGround(GroundBase)
.ontology
- the grounding ontology.instance
- the ane of the grounding instance.MORGrounding
.public MORGrounding.GroundBase<J> getGround()
Semantic.Descriptor
this
descriptor.getGround
in interface Semantic.Descriptor<it.emarolab.amor.owlInterface.OWLReferences,J extends org.semanticweb.owlapi.model.OWLObject>
Semantic.Descriptor.writeSemantic()
and
Semantic.Descriptor.readSemantic()
to synchronise the described Semantic.Axioms
(or Semantic.SemanticAxioms
).public void reason()
MORGrounding
OWLReferences.synchronizeReasoner()
in order to performs
reasoning over the actual state of the ontology.reason
in interface MORGrounding<J extends org.semanticweb.owlapi.model.OWLObject>
reason
in interface Semantic.Ground<it.emarolab.amor.owlInterface.OWLReferences,J extends org.semanticweb.owlapi.model.OWLObject>
public Semantic.Ground<it.emarolab.amor.owlInterface.OWLReferences,J> copyGround()
Semantic.Ground
Semantic.MappingIntent
independent
for the evolution of the system.
This method should call a specific copyGround constructor.copyGround
in interface Semantic.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