public interface MORGrounding<J extends org.semanticweb.owlapi.model.OWLObject> extends Semantic.Ground<it.emarolab.amor.owlInterface.OWLReferences,J>
Semantic.Ground
implemented in the aMOR API.
This interface contains all the Semantic.Ground
s used by the
aMOR
Semantic.Descriptor
(i.e.: MORConcept
, MORIndividual
,
MORDataProperty
and MORObjectProperty
).
As well as, It implements common facility to interface with an OWL ontology
though a OWLReferences
, which are implemented also by the
above Semantic.Descriptor
s; just for simple usage.
By using this class each Semantic.Descriptor
is actually link to
a specific OWL entity to be described as well external users can
access to any further feature of the standard OWL API.
Each MORGrounding.GroundBase
represents an reference to an OWL ontology (i.e.: Semantic.Ground.getGroundOntology()
),
which is shared between more MORGrounding.GroundBase
s, without reinstating
nether the ontology nor the reasoner. As well as link each Semantic.Descriptor
to a particular instance in such ontology (i.e.: Semantic.Ground.getGroundInstance()
)
to be synchronised with respect to a particular feature with respect to the
ontological OWL representation (e.g.: disjoint, equivalent, sup/super etc.).
More in particular, the class defined in this interface are:
MORGrounding.GroundBase
: which is a base implementation for all the classes below.MORGrounding.IndividualInstance
: used to ground descriptions about MORIndividual
.MORGrounding.ConceptInstance
: used to ground descriptions about MORConcept
.MORGrounding.DataInstance
: used to ground descriptions about MORDataProperty
.MORGrounding.ObjectInstance
: used to ground descriptions about MORObjectProperty
.Modifier and Type | Interface and Description |
---|---|
static class |
MORGrounding.ConceptInstance
The
Semantic.Ground for MORConcept . |
static class |
MORGrounding.DataInstance
The
Semantic.Ground for MORGrounding.DataInstance . |
static class |
MORGrounding.GroundBase<J extends org.semanticweb.owlapi.model.OWLObject>
The base class for each
MORGrounding s. |
static class |
MORGrounding.IndividualInstance
The
Semantic.Ground for MORIndividual . |
static class |
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 | Method and Description |
---|---|
default void |
aMORlogging(boolean enable)
This method calls:
Logger.setPrintOnConsole(Boolean)
with a given flag parameter. |
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()
Returns the data factory initialised by aMOR API during
OWLReferences
loading. |
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 individual with a specified name
in the in the
getOWLOntology() IRI. |
default org.semanticweb.owlapi.model.OWLLiteral |
getOWLLiteral(java.lang.Object value)
Given an ontological literal within the
getOWLOntology() IRI. |
default java.util.Set<java.lang.String> |
getOWLName(java.util.Set<?> set)
Return a compact name of a
Set<{@link OWLObject}> , by removing IRI for instance. |
default java.lang.String |
getOWLName(org.semanticweb.owlapi.model.OWLObject obj)
Return a compact name of an
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()
Returns the ontology initialised by aMOR API during
OWLReferences
loading. |
default org.semanticweb.owlapi.reasoner.OWLReasoner |
getReasoner()
Returns the reasoner initialised by aMOR API during
OWLReferences
loading. |
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 value)
getOWLOntology()
IRI.
The supported type of the input values are: String
, Integer
,
Float
, Double
and Long
.value
- 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.default org.semanticweb.owlapi.reasoner.OWLReasoner getReasoner()
OWLReferences
loading. It is generically used to query inferred entities in the ontology.Semantic.Ground.getGroundInstance()
.default org.semanticweb.owlapi.model.OWLOntology getOWLOntology()
OWLReferences
loading. It is generically used to access asserted entities.Semantic.Ground.getGroundInstance()
.default org.semanticweb.owlapi.model.OWLDataFactory getOWLDataFactory()
OWLReferences
loading. This is generically used to create ontological entities to be asserted
in the ontology.Semantic.Ground.getGroundInstance()
.default void reason()
OWLReferences.synchronizeReasoner()
in order to performs
reasoning over the actual state of the ontology.reason
in interface Semantic.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 void aMORlogging(boolean enable)
Logger.setPrintOnConsole(Boolean)
with a given flag parameter.enable
- the flag for enable/disable aMOR logging.default java.lang.String getOWLName(org.semanticweb.owlapi.model.OWLObject obj)
OWLObject
, by removing IRI for instance.obj
- the object to describe with a short namedefault java.util.Set<java.lang.String> getOWLName(java.util.Set<?> set)
Set<{@link OWLObject}>
, by removing IRI for instance.set
- the set of objects to describe with related short namesdefault java.lang.String getOntologyName()
OWLReferences
given during ontology loading.