Copyright | (c) Felix Gabriel Mance |
---|---|
License | GPLv2 or higher, see LICENSE.txt |
Maintainer | f.mance@jacobs-university.de |
Stability | provisional |
Portability | portable |
Safe Haskell | Safe |
Datatypes specific to the Manchester Syntax of OWL 2
References : http://www.w3.org/TR/owl2-manchester-syntax/
Synopsis
- type Annotations = [Annotation]
- type AnnotatedList a = [(Annotations, a)]
- data Extended
- data ListFrameBit
- = AnnotationBit (AnnotatedList AnnotationProperty)
- | ExpressionBit (AnnotatedList ClassExpression)
- | ObjectBit (AnnotatedList ObjectPropertyExpression)
- | DataBit (AnnotatedList DataPropertyExpression)
- | IndividualSameOrDifferent (AnnotatedList NamedIndividual)
- | ObjectCharacteristics (AnnotatedList Character)
- | DataPropRange (AnnotatedList DataRange)
- | IndividualFacts (AnnotatedList Fact)
- data AnnoType
- = Declaration
- | Assertion
- | XmlError String
- data AnnFrameBit
- data Fact
- data FrameBit
- data Frame = Frame Extended [FrameBit]
- data Axiom = PlainAxiom {}
- mkExtendedEntity :: Entity -> Extended
- getAxioms :: Frame -> [Axiom]
- axToFrame :: Axiom -> Frame
- data Ontology = Ontology {
- name :: OntologyIRI
- imports :: [ImportIRI]
- ann :: [Annotations]
- ontFrames :: [Frame]
- data OntologyDocument = OntologyDocument {}
- emptyOntology :: [Frame] -> Ontology
- emptyOntologyDoc :: OntologyDocument
- isEmptyOntology :: Ontology -> Bool
- isEmptyOntologyDoc :: OntologyDocument -> Bool
- emptyAnnoList :: [a] -> AnnotatedList a
- symsOfAxiom :: Axiom -> Set Entity
- symsOfExtended :: Extended -> Set Entity
- symsOfObjectPropertyExpression :: ObjectPropertyExpression -> Set Entity
- symsOfClassExpression :: ClassExpression -> Set Entity
- symsOfDataRange :: DataRange -> Set Entity
- symsOfAnnotation :: Annotation -> Set Entity
- symsOfAnnotations :: Annotations -> Set Entity
- symsOfFrameBit :: FrameBit -> Set Entity
- symsOfAnnFrameBit :: AnnFrameBit -> Set Entity
- symsOfListFrameBit :: ListFrameBit -> Set Entity
- symsOfFact :: Fact -> Set Entity
- annotedSyms :: (a -> Set Entity) -> AnnotatedList a -> Set Entity
Documentation
type Annotations = [Annotation] Source #
annotions are annotedAnnotationList that must be preceded by the keyword
Annotations:
if non-empty
type AnnotatedList a = [(Annotations, a)] Source #
this datatype extends the Manchester Syntax to also allow GCIs
Misc Annotations | |
ClassEntity ClassExpression | |
ObjectEntity ObjectPropertyExpression | |
SimpleEntity Entity |
Instances
Eq Extended Source # | |
Data Extended Source # | |
Defined in OWL2.MS gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Extended -> c Extended gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Extended toConstr :: Extended -> Constr dataTypeOf :: Extended -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Extended) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Extended) gmapT :: (forall b. Data b => b -> b) -> Extended -> Extended gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Extended -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Extended -> r gmapQ :: (forall d. Data d => d -> u) -> Extended -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Extended -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Extended -> m Extended gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Extended -> m Extended gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Extended -> m Extended | |
Ord Extended Source # | |
Show Extended Source # | |
data ListFrameBit Source #
frames with annotated lists
Instances
Eq ListFrameBit Source # | |
Defined in OWL2.MS (==) :: ListFrameBit -> ListFrameBit -> Bool (/=) :: ListFrameBit -> ListFrameBit -> Bool | |
Data ListFrameBit Source # | |
Defined in OWL2.MS gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ListFrameBit -> c ListFrameBit gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ListFrameBit toConstr :: ListFrameBit -> Constr dataTypeOf :: ListFrameBit -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ListFrameBit) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ListFrameBit) gmapT :: (forall b. Data b => b -> b) -> ListFrameBit -> ListFrameBit gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ListFrameBit -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ListFrameBit -> r gmapQ :: (forall d. Data d => d -> u) -> ListFrameBit -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> ListFrameBit -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> ListFrameBit -> m ListFrameBit gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ListFrameBit -> m ListFrameBit gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ListFrameBit -> m ListFrameBit | |
Ord ListFrameBit Source # | |
Defined in OWL2.MS compare :: ListFrameBit -> ListFrameBit -> Ordering (<) :: ListFrameBit -> ListFrameBit -> Bool (<=) :: ListFrameBit -> ListFrameBit -> Bool (>) :: ListFrameBit -> ListFrameBit -> Bool (>=) :: ListFrameBit -> ListFrameBit -> Bool max :: ListFrameBit -> ListFrameBit -> ListFrameBit min :: ListFrameBit -> ListFrameBit -> ListFrameBit | |
Show ListFrameBit Source # | |
Defined in OWL2.MS showsPrec :: Int -> ListFrameBit -> ShowS show :: ListFrameBit -> String showList :: [ListFrameBit] -> ShowS | |
Pretty ListFrameBit Source # | |
Defined in OWL2.ManchesterPrint pretty :: ListFrameBit -> Doc Source # pretties :: [ListFrameBit] -> Doc Source # |
Declaration | |
Assertion | |
XmlError String |
Instances
Eq AnnoType Source # | |
Data AnnoType Source # | |
Defined in OWL2.MS gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AnnoType -> c AnnoType gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AnnoType toConstr :: AnnoType -> Constr dataTypeOf :: AnnoType -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c AnnoType) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AnnoType) gmapT :: (forall b. Data b => b -> b) -> AnnoType -> AnnoType gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AnnoType -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AnnoType -> r gmapQ :: (forall d. Data d => d -> u) -> AnnoType -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> AnnoType -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> AnnoType -> m AnnoType gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AnnoType -> m AnnoType gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AnnoType -> m AnnoType | |
Ord AnnoType Source # | |
Show AnnoType Source # | |
data AnnFrameBit Source #
frames which start with annotations
Instances
Eq AnnFrameBit Source # | |
Defined in OWL2.MS (==) :: AnnFrameBit -> AnnFrameBit -> Bool (/=) :: AnnFrameBit -> AnnFrameBit -> Bool | |
Data AnnFrameBit Source # | |
Defined in OWL2.MS gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AnnFrameBit -> c AnnFrameBit gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AnnFrameBit toConstr :: AnnFrameBit -> Constr dataTypeOf :: AnnFrameBit -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c AnnFrameBit) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AnnFrameBit) gmapT :: (forall b. Data b => b -> b) -> AnnFrameBit -> AnnFrameBit gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AnnFrameBit -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AnnFrameBit -> r gmapQ :: (forall d. Data d => d -> u) -> AnnFrameBit -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> AnnFrameBit -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> AnnFrameBit -> m AnnFrameBit gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AnnFrameBit -> m AnnFrameBit gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AnnFrameBit -> m AnnFrameBit | |
Ord AnnFrameBit Source # | |
Defined in OWL2.MS compare :: AnnFrameBit -> AnnFrameBit -> Ordering (<) :: AnnFrameBit -> AnnFrameBit -> Bool (<=) :: AnnFrameBit -> AnnFrameBit -> Bool (>) :: AnnFrameBit -> AnnFrameBit -> Bool (>=) :: AnnFrameBit -> AnnFrameBit -> Bool max :: AnnFrameBit -> AnnFrameBit -> AnnFrameBit min :: AnnFrameBit -> AnnFrameBit -> AnnFrameBit | |
Show AnnFrameBit Source # | |
Defined in OWL2.MS showsPrec :: Int -> AnnFrameBit -> ShowS show :: AnnFrameBit -> String showList :: [AnnFrameBit] -> ShowS |
ObjectPropertyFact PositiveOrNegative ObjectPropertyExpression NamedIndividual | |
DataPropertyFact PositiveOrNegative DataPropertyExpression Literal |
Instances
Eq Fact Source # | |
Data Fact Source # | |
Defined in OWL2.MS gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Fact -> c Fact gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Fact dataTypeOf :: Fact -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Fact) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Fact) gmapT :: (forall b. Data b => b -> b) -> Fact -> Fact gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Fact -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Fact -> r gmapQ :: (forall d. Data d => d -> u) -> Fact -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Fact -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Fact -> m Fact gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Fact -> m Fact gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Fact -> m Fact | |
Ord Fact Source # | |
Show Fact Source # | |
Pretty Fact Source # | |
Instances
Eq FrameBit Source # | |
Data FrameBit Source # | |
Defined in OWL2.MS gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> FrameBit -> c FrameBit gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c FrameBit toConstr :: FrameBit -> Constr dataTypeOf :: FrameBit -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c FrameBit) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c FrameBit) gmapT :: (forall b. Data b => b -> b) -> FrameBit -> FrameBit gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> FrameBit -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> FrameBit -> r gmapQ :: (forall d. Data d => d -> u) -> FrameBit -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> FrameBit -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> FrameBit -> m FrameBit gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> FrameBit -> m FrameBit gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> FrameBit -> m FrameBit | |
Ord FrameBit Source # | |
Show FrameBit Source # | |
Pretty FrameBit Source # | |
Instances
Eq Frame Source # | |
Data Frame Source # | |
Defined in OWL2.MS gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Frame -> c Frame gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Frame dataTypeOf :: Frame -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Frame) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Frame) gmapT :: (forall b. Data b => b -> b) -> Frame -> Frame gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Frame -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Frame -> r gmapQ :: (forall d. Data d => d -> u) -> Frame -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Frame -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Frame -> m Frame gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Frame -> m Frame gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Frame -> m Frame | |
Ord Frame Source # | |
Show Frame Source # | |
Pretty Frame Source # | |
Instances
Eq Axiom Source # | |
Data Axiom Source # | |
Defined in OWL2.MS gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Axiom -> c Axiom gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Axiom dataTypeOf :: Axiom -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Axiom) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Axiom) gmapT :: (forall b. Data b => b -> b) -> Axiom -> Axiom gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Axiom -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Axiom -> r gmapQ :: (forall d. Data d => d -> u) -> Axiom -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Axiom -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Axiom -> m Axiom gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Axiom -> m Axiom gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Axiom -> m Axiom | |
Ord Axiom Source # | |
Show Axiom Source # | |
GetRange Axiom Source # | |
Pretty Axiom Source # | |
mkExtendedEntity :: Entity -> Extended Source #
Ontology | |
|
Instances
Eq Ontology Source # | |
Data Ontology Source # | |
Defined in OWL2.MS gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Ontology -> c Ontology gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Ontology toConstr :: Ontology -> Constr dataTypeOf :: Ontology -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Ontology) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Ontology) gmapT :: (forall b. Data b => b -> b) -> Ontology -> Ontology gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Ontology -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Ontology -> r gmapQ :: (forall d. Data d => d -> u) -> Ontology -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Ontology -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Ontology -> m Ontology gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Ontology -> m Ontology gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Ontology -> m Ontology | |
Ord Ontology Source # | |
Show Ontology Source # | |
Pretty Ontology Source # | Printing the ontology |
data OntologyDocument Source #
Instances
Eq OntologyDocument Source # | |
Defined in OWL2.MS (==) :: OntologyDocument -> OntologyDocument -> Bool (/=) :: OntologyDocument -> OntologyDocument -> Bool | |
Data OntologyDocument Source # | |
Defined in OWL2.MS gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> OntologyDocument -> c OntologyDocument gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c OntologyDocument toConstr :: OntologyDocument -> Constr dataTypeOf :: OntologyDocument -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c OntologyDocument) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c OntologyDocument) gmapT :: (forall b. Data b => b -> b) -> OntologyDocument -> OntologyDocument gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> OntologyDocument -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> OntologyDocument -> r gmapQ :: (forall d. Data d => d -> u) -> OntologyDocument -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> OntologyDocument -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> OntologyDocument -> m OntologyDocument gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> OntologyDocument -> m OntologyDocument gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> OntologyDocument -> m OntologyDocument | |
Ord OntologyDocument Source # | |
Defined in OWL2.MS compare :: OntologyDocument -> OntologyDocument -> Ordering (<) :: OntologyDocument -> OntologyDocument -> Bool (<=) :: OntologyDocument -> OntologyDocument -> Bool (>) :: OntologyDocument -> OntologyDocument -> Bool (>=) :: OntologyDocument -> OntologyDocument -> Bool max :: OntologyDocument -> OntologyDocument -> OntologyDocument min :: OntologyDocument -> OntologyDocument -> OntologyDocument | |
Show OntologyDocument Source # | |
Defined in OWL2.MS showsPrec :: Int -> OntologyDocument -> ShowS show :: OntologyDocument -> String showList :: [OntologyDocument] -> ShowS | |
GetRange OntologyDocument Source # | |
Pretty OntologyDocument Source # | |
Defined in OWL2.ManchesterPrint pretty :: OntologyDocument -> Doc Source # pretties :: [OntologyDocument] -> Doc Source # |
emptyOntology :: [Frame] -> Ontology Source #
isEmptyOntology :: Ontology -> Bool Source #
isEmptyOntologyDoc :: OntologyDocument -> Bool Source #
emptyAnnoList :: [a] -> AnnotatedList a Source #
symsOfAxiom :: Axiom -> Set Entity Source #
symsOfExtended :: Extended -> Set Entity Source #
symsOfClassExpression :: ClassExpression -> Set Entity Source #
symsOfDataRange :: DataRange -> Set Entity Source #
symsOfAnnotation :: Annotation -> Set Entity Source #
symsOfAnnotations :: Annotations -> Set Entity Source #
symsOfFrameBit :: FrameBit -> Set Entity Source #
symsOfAnnFrameBit :: AnnFrameBit -> Set Entity Source #
symsOfListFrameBit :: ListFrameBit -> Set Entity Source #
symsOfFact :: Fact -> Set Entity Source #
annotedSyms :: (a -> Set Entity) -> AnnotatedList a -> Set Entity Source #