public class MORClassifyConcept extends MORConceptBase implements MORConcept.Classify<MORLinkIndividual>
This is an example of how use the Semantic.Descriptor
s for implement
a concept that is synchronised only w.r.t. MORConcept.Classify
ed individuals.
Its purpose is only to instanciate the MORAxioms.Concepts
for the
respective descriptions, as well as call the derived interfaces in the
readSemantic()
and writeSemantic()
methods.
All its constructions are based on MORConceptBase
in order
to automatically manage a grounding MORGrounding.ConceptInstance
.
You may want to use this class (see also MORHierarchicalConcept
,
as well as other classes in the it.emarolab.owloop.aMORDescriptor.utility
package)
as templates to build a specific MORConcept
descriptor that fits your needs
and maximises the OWL synchronisation efficiency.
MORConcept.Classify<D extends MORIndividual>, MORConcept.Define, MORConcept.Disjoint<D extends MORConcept>, MORConcept.Equivalent<D extends MORConcept>, MORConcept.Sub<D extends MORConcept>, MORConcept.Super<D extends MORConcept>
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 |
---|
MORClassifyConcept(java.lang.String instanceName,
it.emarolab.amor.owlInterface.OWLReferences onto) |
MORClassifyConcept(java.lang.String instanceName,
java.lang.String ontoName) |
MORClassifyConcept(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
MORClassifyConcept(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath,
boolean bufferingChanges) |
MORClassifyConcept(org.semanticweb.owlapi.model.OWLClass instance,
it.emarolab.amor.owlInterface.OWLReferences onto) |
MORClassifyConcept(org.semanticweb.owlapi.model.OWLClass instance,
java.lang.String ontoName) |
MORClassifyConcept(org.semanticweb.owlapi.model.OWLClass instance,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
MORClassifyConcept(org.semanticweb.owlapi.model.OWLClass instance,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath,
boolean bufferingChanges) |
Modifier and Type | Method and Description |
---|---|
MORAxioms.Individuals |
getIndividualClassified()
Returns the
Semantic.Axioms that describes all the individual classified
in this Concept from a no OOP point of view. |
MORLinkIndividual |
getNewIndividualClassified(org.semanticweb.owlapi.model.OWLNamedIndividual instance,
it.emarolab.amor.owlInterface.OWLReferences ontology)
This method is called by
Concept.Classify.buildIndividualClassified() and
its purpose is to instantiate a new Individual to represent
an individual classified in this Concept 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. |
buildIndividualClassified, synchroniseIndividualClassifiedFromSemantic, synchroniseIndividualClassifiedToSemantic
copyGround, equals, hashCode, reason, setGround, setInstance, setInstance
getGroundInstance, getGroundOntology
addIndividualClassified, addIndividualClassified, queryIndividualClassified, removeIndividualClassified, removeIndividualClassified
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 MORClassifyConcept(java.lang.String instanceName, it.emarolab.amor.owlInterface.OWLReferences onto)
public MORClassifyConcept(java.lang.String instanceName, java.lang.String ontoName)
public MORClassifyConcept(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public MORClassifyConcept(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath, boolean bufferingChanges)
public MORClassifyConcept(org.semanticweb.owlapi.model.OWLClass instance, it.emarolab.amor.owlInterface.OWLReferences onto)
public MORClassifyConcept(org.semanticweb.owlapi.model.OWLClass instance, java.lang.String ontoName)
public MORClassifyConcept(org.semanticweb.owlapi.model.OWLClass instance, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public MORClassifyConcept(org.semanticweb.owlapi.model.OWLClass 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 Concept.Classify<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,org.semanticweb.owlapi.model.OWLNamedIndividual,D extends MORIndividual>
readSemantic
in interface Semantic.Descriptor<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass>
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 MORConcept.Classify<MORLinkIndividual>
writeSemantic
in interface Semantic.Descriptor<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass>
Semantic.MappingIntent.getOntologyChanges()
field
initialised (i.e.: OWLOntologyChange
).public MORLinkIndividual getNewIndividualClassified(org.semanticweb.owlapi.model.OWLNamedIndividual instance, it.emarolab.amor.owlInterface.OWLReferences ontology)
Concept.Classify
Concept.Classify.buildIndividualClassified()
and
its purpose is to instantiate a new Individual
to represent
an individual classified in this
Concept
Semantic.Descriptor
.getNewIndividualClassified
in interface Concept.Classify<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,org.semanticweb.owlapi.model.OWLNamedIndividual,D extends MORIndividual>
instance
- the instance to ground the new Individual
.ontology
- the ontology in which ground the new Individual
.Semantic.Descriptor
for all the individuals
classified by this
descriptor.public MORAxioms.Individuals getIndividualClassified()
Concept.Classify
Semantic.Axioms
that describes all the individual classified
in this
Concept
from a no OOP point of view.getIndividualClassified
in interface Concept.Classify<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,org.semanticweb.owlapi.model.OWLNamedIndividual,D extends MORIndividual>
this
objectpublic java.lang.String toString()
toString
in class java.lang.Object