public interface DescriptorGroundInterface<J extends org.semanticweb.owlapi.model.OWLObject> extends Axiom.Ground<it.emarolab.amor.owlInterface.OWLReferences,J>
Axiom.Ground
and allows grounding of Descriptors of the type
ClassExpression
, IndividualExpression
, DataPropertyExpression
and
ObjectPropertyExpression
).
A Ground associates to an Ontology using OWLReferences
.
The following classes implement DescriptorGroundInterface
:
DescriptorGroundInterface.GroundInstance
: an abstract class of all the classes below.DescriptorGroundInterface.IndividualGroundInstance
: class to ground axioms of type IndividualExpression
.DescriptorGroundInterface.ConceptGroundInstance
: class to ground axioms of type ClassExpression
.DescriptorGroundInterface.DataGroundInstance
: class to ground axioms of type DataPropertyExpression
.DescriptorGroundInterface.ObjectGroundInstance
: class to ground axioms of type ObjectPropertyExpression
.Descriptor
, (i) links to a specific OWL entity in an Ontology and (ii) allows access
to features in the standard OWL-API.
Modifier and Type | Interface and Description |
---|---|
static class |
DescriptorGroundInterface.ConceptGroundInstance
The
Axiom.Ground for a ClassExpression . |
static class |
DescriptorGroundInterface.DataGroundInstance
The
Axiom.Ground for a DescriptorGroundInterface.DataGroundInstance . |
static class |
DescriptorGroundInterface.GroundInstance<J extends org.semanticweb.owlapi.model.OWLObject>
A
DescriptorGroundInterface.GroundInstance has the reference to an Ontology (i.e., using DescriptorGroundInterface.GroundInstance.getGroundOntology() ). |
static class |
DescriptorGroundInterface.IndividualGroundInstance
The
Axiom.Ground for an IndividualExpression . |
static class |
DescriptorGroundInterface.ObjectGroundInstance
The
Axiom.Ground for an 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 | Method and Description |
---|---|
default java.lang.String |
getOntologyName()
Givens the unique name of the
OWLReferences given during ontology loading. |
default org.semanticweb.owlapi.model.OWLClass |
getOWLClass(java.lang.String className)
Given an ontological class with a specified name
in the in the
getOWLOntology() IRI. |
default org.semanticweb.owlapi.model.OWLDataFactory |
getOWLDataFactory()
Deprecated.
|
default org.semanticweb.owlapi.model.OWLDataProperty |
getOWLDataProperty(java.lang.String propertyName)
Given an ontological data property with a specified name
in the in the
getOWLOntology() IRI. |
default org.semanticweb.owlapi.model.OWLDatatype |
getOWLDataType(java.lang.Class c)
Given an ontological literal within the
getOWLOntology() IRI. |
default org.semanticweb.owlapi.model.OWLNamedIndividual |
getOWLIndividual(java.lang.String individualName)
Given an ontological individualDescriptor with a specified name
in the in the
getOWLOntology() IRI. |
default org.semanticweb.owlapi.model.OWLLiteral |
getOWLLiteral(java.lang.Object instance)
Given an ontological literal within the
getOWLOntology() IRI. |
default java.lang.String |
getOWLName(org.semanticweb.owlapi.model.OWLObject instance)
Return a compact name of an
OWLObject , by removing IRI for instance. |
default java.util.Set<java.lang.String> |
getOWLName(java.util.Set<?> instance)
Return a compact name of a
Set<{@link OWLObject}> , by removing IRI for instance. |
default org.semanticweb.owlapi.model.OWLObjectProperty |
getOWLObjectProperty(java.lang.String propertyName)
Given an ontological object property with a specified name
in the in the
getOWLOntology() IRI. |
default org.semanticweb.owlapi.model.OWLOntology |
getOWLOntology()
Deprecated.
|
default org.semanticweb.owlapi.reasoner.OWLReasoner |
getOWLReasoner()
Deprecated.
|
default boolean |
isCompleteQuery()
It returns if aMOR querying give an exhaustive descriptions.
|
default boolean |
isReasonedQuery()
It returns if the aMOR querying (i.e.:
{@link OWLReferences}.get...(..) )
returns also reasoned axioms or only asserted facts. |
default void |
reason()
It calls
OWLReferences.synchronizeReasoner() in order to performs
reasoning over the actual state of the ontology. |
default void |
saveOntology(java.lang.String filePath)
Save the ontology in a specified file.
|
default void |
saveOntology(java.lang.String filePath,
boolean saveReasoned)
Save the ontology in a specified file by making all the inferred axioms of the
OWLReasoner
as facts (i.e.: asserted). |
default void |
setCompleteQuery(boolean complete)
It enable/disable exhaustive description of the reasoner during aMOR querying.
|
default void |
setReasonedQuery(boolean reason)
It enable/disable the use of the reasoner during aMOR querying (i.e.:
{@link OWLReferences}.get...(..) ) |
copyGround, getGroundInstance, getGroundOntology
default org.semanticweb.owlapi.model.OWLClass getOWLClass(java.lang.String className)
getOWLOntology()
IRI.className
- the name of the OWLClass
.default org.semanticweb.owlapi.model.OWLNamedIndividual getOWLIndividual(java.lang.String individualName)
getOWLOntology()
IRI.individualName
- the name of the OWLNamedIndividual
.default org.semanticweb.owlapi.model.OWLDataProperty getOWLDataProperty(java.lang.String propertyName)
getOWLOntology()
IRI.propertyName
- the name of the OWLDataProperty
.default org.semanticweb.owlapi.model.OWLObjectProperty getOWLObjectProperty(java.lang.String propertyName)
getOWLOntology()
IRI.propertyName
- the name of the OWLDataProperty
.default org.semanticweb.owlapi.model.OWLLiteral getOWLLiteral(java.lang.Object instance)
getOWLOntology()
IRI.
The supported type of the input values are: String
, Integer
,
Float
, Double
and Long
.instance
- the data value and type of the OWLLiteral
.default org.semanticweb.owlapi.model.OWLDatatype getOWLDataType(java.lang.Class c)
getOWLOntology()
IRI.
The supported type of the input values are: String
, Integer
,
Float
, Double
and Long
.c
- the data type of the OWLDatatype
.Class
), in the grounded ontology.@Deprecated default org.semanticweb.owlapi.reasoner.OWLReasoner getOWLReasoner()
OWLReferences
loading. It is generically used to query inferred entities in the ontology.Axiom.Ground.getGroundInstance()
.@Deprecated default org.semanticweb.owlapi.model.OWLOntology getOWLOntology()
OWLReferences
loading. It is generically used to access asserted entities.Axiom.Ground.getGroundInstance()
.@Deprecated default org.semanticweb.owlapi.model.OWLDataFactory getOWLDataFactory()
OWLReferences
loading. This is generically used to create ontological entities to be asserted
in the ontology.Axiom.Ground.getGroundInstance()
.default void reason()
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>
default void saveOntology(java.lang.String filePath)
filePath
- the path to the file to create (or overwrite).default void saveOntology(java.lang.String filePath, boolean saveReasoned)
OWLReasoner
as facts (i.e.: asserted).filePath
- the path to the file to create (or overwrite).saveReasoned
- true
to make inferred axiom as asserted, false
to store
only the assertions.default void setReasonedQuery(boolean reason)
{@link OWLReferences}.get...(..)
)reason
- true
to enable reasoning during aMOR query. False
to query only for asserted axioms in the OWL ontology.default boolean isReasonedQuery()
{@link OWLReferences}.get...(..)
)
returns also reasoned axioms or only asserted facts.false
if the aMOR querying returns only asserted facts. True
if also reasoning inferring is considered.default void setCompleteQuery(boolean complete)
complete
- true
if the query returns all the results (except for OWLThing
).
False
if only the representative element should be given.default boolean isCompleteQuery()
true
if the query returns all the results (except for OWLThing
).
False
if only the representative element is given.default java.lang.String getOWLName(org.semanticweb.owlapi.model.OWLObject instance)
OWLObject
, by removing IRI for instance.instance
- the object to describe with a short namedefault java.util.Set<java.lang.String> getOWLName(java.util.Set<?> instance)
Set<{@link OWLObject}>
, by removing IRI for instance.instance
- the set of objects to describe with related short namesdefault java.lang.String getOntologyName()
OWLReferences
given during ontology loading.