public class InstanceClassDesc extends ClassGround implements ClassExpression.Instance<LinkIndividualDesc>
ClassExpression
) interface:
ClassExpression.Instance
: to describe an Individual of a Class.FullClassDesc
for an example of a 'compound' Class Descriptor that implements all ClassExpressions (aka ClassExpression
).
ClassExpression.Disjoint<D extends ClassExpression>, ClassExpression.Equivalent<D extends ClassExpression>, ClassExpression.EquivalentRestriction, ClassExpression.Instance<D extends IndividualExpression>, ClassExpression.Sub<D extends ClassExpression>, ClassExpression.Super<D extends ClassExpression>
Class.Restriction<O,J,Y>
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>
NL
Constructor and Description |
---|
InstanceClassDesc(org.semanticweb.owlapi.model.OWLClass instance,
it.emarolab.amor.owlInterface.OWLReferences onto) |
InstanceClassDesc(org.semanticweb.owlapi.model.OWLClass instance,
java.lang.String ontoName) |
InstanceClassDesc(org.semanticweb.owlapi.model.OWLClass instance,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
InstanceClassDesc(org.semanticweb.owlapi.model.OWLClass instance,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath,
boolean bufferingChanges) |
InstanceClassDesc(java.lang.String instanceName,
it.emarolab.amor.owlInterface.OWLReferences onto) |
InstanceClassDesc(java.lang.String instanceName,
java.lang.String ontoName) |
InstanceClassDesc(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath) |
InstanceClassDesc(java.lang.String instanceName,
java.lang.String ontoName,
java.lang.String filePath,
java.lang.String iriPath,
boolean bufferingChanges) |
Modifier and Type | Method and Description |
---|---|
LinkIndividualDesc |
getIndividualDescriptor(org.semanticweb.owlapi.model.OWLNamedIndividual instance,
it.emarolab.amor.owlInterface.OWLReferences ontology)
This method is called by
Class.Instance.buildIndividuals() and
its purpose is to instantiate a new Individual to represent
an individualDescriptor classified in this Class Descriptor . |
Individuals |
getIndividuals()
Returns the
EntitySet that describes all the individualDescriptor classified
in this Class from a no OOP point of view. |
java.util.List<Axiom.MappingIntent> |
readAxioms()
This method is used to update specific
Axiom.EntitySet (or Axiom.ExpressionEntitySet ) by synchronizing
the internal state of the descriptor with the queried OWL structure, such that they are equal. |
java.lang.String |
toString() |
java.util.List<Axiom.MappingIntent> |
writeAxioms()
This method is used to update the ontology with a specific
Axiom.EntitySet (or Axiom.ExpressionEntitySet )
by synchronizing the OWL representation with the internal state of the descriptor, such that they are equal. |
getGround, getNewGround, getNewGround
copyGround, equals, getGroundInstanceName, hashCode, reason, setGround, setGroundInstance, setGroundInstance
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addIndividual, addIndividual, queryIndividuals, removeIndividual, removeIndividual
buildIndividuals, synchroniseIndividualsFromExpressionAxioms, synchroniseIndividualsToExpressionAxioms
getGroundInstance, getGroundOntology
activateAMORlogging, getChangingIntent, getGround, getGroundInstanceName, getInstance, getIntent, getOntologyReference, groundReason, writeAxiomsReasonReadAxioms, writeAxiomsReasonReadAxioms
getOntologyName, getOWLClass, getOWLDataFactory, getOWLDataProperty, getOWLDataType, getOWLIndividual, getOWLLiteral, getOWLName, getOWLName, getOWLObjectProperty, getOWLOntology, getOWLReasoner, isCompleteQuery, isReasonedQuery, reason, saveOntology, saveOntology, setCompleteQuery, setReasonedQuery
copyGround
public InstanceClassDesc(org.semanticweb.owlapi.model.OWLClass instance, it.emarolab.amor.owlInterface.OWLReferences onto)
public InstanceClassDesc(java.lang.String instanceName, it.emarolab.amor.owlInterface.OWLReferences onto)
public InstanceClassDesc(org.semanticweb.owlapi.model.OWLClass instance, java.lang.String ontoName)
public InstanceClassDesc(org.semanticweb.owlapi.model.OWLClass instance, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public InstanceClassDesc(org.semanticweb.owlapi.model.OWLClass instance, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath, boolean bufferingChanges)
public InstanceClassDesc(java.lang.String instanceName, java.lang.String ontoName)
public InstanceClassDesc(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath)
public InstanceClassDesc(java.lang.String instanceName, java.lang.String ontoName, java.lang.String filePath, java.lang.String iriPath, boolean bufferingChanges)
public java.util.List<Axiom.MappingIntent> readAxioms()
Axiom.Descriptor
Axiom.EntitySet
(or Axiom.ExpressionEntitySet
) by synchronizing
the internal state of the descriptor with the queried OWL structure, such that they are equal.
It is based on EntitySet#synchroniseFrom(EntitySet)
.readAxioms
in interface Axiom.Descriptor<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass>
readAxioms
in interface Class.Instance<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,org.semanticweb.owlapi.model.OWLNamedIndividual,LinkIndividualDesc>
Axiom.EntitySet
during the reading.
Note that the elements of the returned list, may not have the Axiom.MappingIntent.getOntologyChanges()
field
initialised (i.e.: Void
).public java.util.List<Axiom.MappingIntent> writeAxioms()
Axiom.Descriptor
Axiom.EntitySet
(or Axiom.ExpressionEntitySet
)
by synchronizing the OWL representation with the internal state of the descriptor, such that they are equal.
It is based on EntitySet#synchroniseTo(EntitySet)
.writeAxioms
in interface Axiom.Descriptor<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass>
writeAxioms
in interface ClassExpression.Instance<LinkIndividualDesc>
Axiom.MappingIntent.getOntologyChanges()
field
initialised (i.e.: OWLOntologyChange
).public LinkIndividualDesc getIndividualDescriptor(org.semanticweb.owlapi.model.OWLNamedIndividual instance, it.emarolab.amor.owlInterface.OWLReferences ontology)
Class.Instance
Class.Instance.buildIndividuals()
and
its purpose is to instantiate a new Individual
to represent
an individualDescriptor classified in this
Class
Descriptor
.getIndividualDescriptor
in interface Class.Instance<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,org.semanticweb.owlapi.model.OWLNamedIndividual,LinkIndividualDesc>
instance
- the instance to ground the new Individual
.ontology
- the ontology in which ground the new Individual
.Axiom.Descriptor
for all the individuals
classified by this
descriptor.public Individuals getIndividuals()
Class.Instance
EntitySet
that describes all the individualDescriptor classified
in this
Class
from a no OOP point of view.getIndividuals
in interface Class.Instance<it.emarolab.amor.owlInterface.OWLReferences,org.semanticweb.owlapi.model.OWLClass,org.semanticweb.owlapi.model.OWLNamedIndividual,LinkIndividualDesc>
this
objectpublic java.lang.String toString()
toString
in class java.lang.Object