Hets - the Heterogeneous Tool Set
CopyrightFelix Gabriel Mance
LicenseGPLv2 or higher, see LICENSE.txt
Maintainerf.mance@jacobs-university.de
Stabilityprovisional
Portabilityportable
Safe HaskellNone

OWL2.StaticAnalysis

Description

Static analysis for OWL 2

Synopsis

Documentation

failMsg :: Entity -> ClassExpression -> Result a Source #

Error messages for static analysis

checkEntity :: Sign -> Entity -> Result () Source #

checks if an entity is in the signature

correctEntity :: Sign -> IRI -> [Entity] Source #

takes an iri and finds out what entities it belongs to

filterObjProp :: Sign -> [ObjectPropertyExpression] -> [ObjectPropertyExpression] Source #

takes a list of object properties and discards the ones which are not in the signature

checkDataRange :: Sign -> DataRange -> Result () Source #

checks if a DataRange is valid

classExpressionToDataRange :: Sign -> ClassExpression -> Result DataRange Source #

converts ClassExpression to DataRanges because some DataProperties may be parsed as ObjectProperties

checkClassExpression :: Sign -> ClassExpression -> Result ClassExpression Source #

checks a ClassExpression and recursively converts the (maybe inappropriately) parsed syntax to a one satisfying the signature

checkAxiom :: Sign -> Axiom -> Result [Axiom] Source #

corrects the axiom according to the signature

createSign :: [Axiom] -> State Sign () Source #

collects all entites from the aximoms

noDecl :: Axiom -> Bool Source #

createAxioms :: Sign -> [Axiom] -> Result ([Named Axiom], [Axiom]) Source #

corrects the axioms according to the signature

check1Prefix :: Maybe IRI -> IRI -> Bool Source #

basicOWL2Analysis :: (OntologyDocument, Sign, GlobalAnnos) -> Result (OntologyDocument, ExtSign Sign Entity, [Named Axiom]) Source #

static analysis of ontology with incoming sign.

generateLabelMap :: Sign -> [Axiom] -> Map IRI String Source #

extract labels from Axiom-List (after processing with correctFrames)

anaAxiom :: Axiom -> Named Axiom Source #

adding annotations for theorems

getNames :: Axiom -> [String] Source #