Copyright | (c) Till Mossakowski Uni Magdeburg 2022 |
---|---|
License | GPLv2 or higher, see LICENSE.txt |
Maintainer | till.mossakowski@pvgu.de |
Stability | experimental |
Portability | portable |
Safe Haskell | Safe |
Definition of abstract syntax for neural-symbolic patterns
Synopsis
- data Node = Node {}
- newtype BASIC_SPEC = Basic_spec {
- items :: [Annoted BASIC_ITEM]
- data BASIC_ITEM = Path {}
- newtype SYMB = Symb_id Node
- data SYMB_ITEMS = Symb_items [SYMB] Range
- data SYMB_MAP_ITEMS = Symb_map_items [SYMB_OR_MAP] Range
- data SYMB_OR_MAP
Documentation
nodes are of form: id : ontology_term | id is optional
Instances
Eq Node Source # | |
Data Node Source # | |
Defined in NeSyPatterns.AS gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Node -> c Node gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Node dataTypeOf :: Node -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Node) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Node) gmapT :: (forall b. Data b => b -> b) -> Node -> Node gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Node -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Node -> r gmapQ :: (forall d. Data d => d -> u) -> Node -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> Node -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> Node -> m Node gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Node -> m Node gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Node -> m Node | |
Ord Node Source # | |
Show Node Source # | |
Generic Node | |
GetRange Node Source # | |
FromJSON Node | |
Defined in NeSyPatterns.ATC_NeSyPatterns parseJSON :: Value -> Parser Node parseJSONList :: Value -> Parser [Node] | |
ToJSON Node | |
Defined in NeSyPatterns.ATC_NeSyPatterns | |
ShATermConvertible Node | |
Defined in NeSyPatterns.ATC_NeSyPatterns toShATermAux :: ATermTable -> Node -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [Node] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, Node) fromShATermList' :: Int -> ATermTable -> (ATermTable, [Node]) | |
Pretty Node Source # | |
type Rep Node | |
Defined in NeSyPatterns.ATC_NeSyPatterns type Rep Node = D1 ('MetaData "Node" "NeSyPatterns.AS" "main" 'False) (C1 ('MetaCons "Node" 'PrefixI 'True) (S1 ('MetaSel ('Just "ontologyTerm") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 IRI) :*: (S1 ('MetaSel ('Just "nesyId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe IRI)) :*: S1 ('MetaSel ('Just "nodeRange") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Range)))) |
newtype BASIC_SPEC Source #
Basic_spec | |
|
Instances
data BASIC_ITEM Source #
Instances
Data BASIC_ITEM Source # | |
Defined in NeSyPatterns.AS gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BASIC_ITEM -> c BASIC_ITEM gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c BASIC_ITEM toConstr :: BASIC_ITEM -> Constr dataTypeOf :: BASIC_ITEM -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c BASIC_ITEM) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c BASIC_ITEM) gmapT :: (forall b. Data b => b -> b) -> BASIC_ITEM -> BASIC_ITEM gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BASIC_ITEM -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BASIC_ITEM -> r gmapQ :: (forall d. Data d => d -> u) -> BASIC_ITEM -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> BASIC_ITEM -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> BASIC_ITEM -> m BASIC_ITEM gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BASIC_ITEM -> m BASIC_ITEM gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BASIC_ITEM -> m BASIC_ITEM | |
Show BASIC_ITEM Source # | |
Defined in NeSyPatterns.AS showsPrec :: Int -> BASIC_ITEM -> ShowS show :: BASIC_ITEM -> String showList :: [BASIC_ITEM] -> ShowS | |
Generic BASIC_ITEM | |
Defined in NeSyPatterns.ATC_NeSyPatterns type Rep BASIC_ITEM :: Type -> Type from :: BASIC_ITEM -> Rep BASIC_ITEM x to :: Rep BASIC_ITEM x -> BASIC_ITEM | |
GetRange BASIC_ITEM Source # | |
Defined in NeSyPatterns.AS getRange :: BASIC_ITEM -> Range Source # rangeSpan :: BASIC_ITEM -> [Pos] Source # | |
FromJSON BASIC_ITEM | |
Defined in NeSyPatterns.ATC_NeSyPatterns parseJSON :: Value -> Parser BASIC_ITEM parseJSONList :: Value -> Parser [BASIC_ITEM] | |
ToJSON BASIC_ITEM | |
Defined in NeSyPatterns.ATC_NeSyPatterns toJSON :: BASIC_ITEM -> Value toEncoding :: BASIC_ITEM -> Encoding toJSONList :: [BASIC_ITEM] -> Value toEncodingList :: [BASIC_ITEM] -> Encoding | |
ShATermConvertible BASIC_ITEM | |
Defined in NeSyPatterns.ATC_NeSyPatterns toShATermAux :: ATermTable -> BASIC_ITEM -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [BASIC_ITEM] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, BASIC_ITEM) fromShATermList' :: Int -> ATermTable -> (ATermTable, [BASIC_ITEM]) | |
Pretty BASIC_ITEM Source # | |
Defined in NeSyPatterns.Print pretty :: BASIC_ITEM -> Doc Source # pretties :: [BASIC_ITEM] -> Doc Source # | |
type Rep BASIC_ITEM | |
Defined in NeSyPatterns.ATC_NeSyPatterns type Rep BASIC_ITEM = D1 ('MetaData "BASIC_ITEM" "NeSyPatterns.AS" "main" 'False) (C1 ('MetaCons "Path" 'PrefixI 'True) (S1 ('MetaSel ('Just "path") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Node]))) |
Instances
Eq SYMB Source # | |
Data SYMB Source # | |
Defined in NeSyPatterns.AS gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SYMB -> c SYMB gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SYMB dataTypeOf :: SYMB -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SYMB) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SYMB) gmapT :: (forall b. Data b => b -> b) -> SYMB -> SYMB gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SYMB -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SYMB -> r gmapQ :: (forall d. Data d => d -> u) -> SYMB -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> SYMB -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> SYMB -> m SYMB gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SYMB -> m SYMB gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SYMB -> m SYMB | |
Ord SYMB Source # | |
Show SYMB Source # | |
Generic SYMB | |
GetRange SYMB Source # | |
FromJSON SYMB | |
Defined in NeSyPatterns.ATC_NeSyPatterns parseJSON :: Value -> Parser SYMB parseJSONList :: Value -> Parser [SYMB] | |
ToJSON SYMB | |
Defined in NeSyPatterns.ATC_NeSyPatterns | |
ShATermConvertible SYMB | |
Defined in NeSyPatterns.ATC_NeSyPatterns toShATermAux :: ATermTable -> SYMB -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [SYMB] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, SYMB) fromShATermList' :: Int -> ATermTable -> (ATermTable, [SYMB]) | |
Pretty SYMB Source # | |
type Rep SYMB | |
Defined in NeSyPatterns.ATC_NeSyPatterns |
data SYMB_ITEMS Source #
Instances
data SYMB_MAP_ITEMS Source #
Instances
data SYMB_OR_MAP Source #
Instances
Eq SYMB_OR_MAP Source # | |
Defined in NeSyPatterns.AS (==) :: SYMB_OR_MAP -> SYMB_OR_MAP -> Bool (/=) :: SYMB_OR_MAP -> SYMB_OR_MAP -> Bool | |
Data SYMB_OR_MAP Source # | |
Defined in NeSyPatterns.AS gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SYMB_OR_MAP -> c SYMB_OR_MAP gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SYMB_OR_MAP toConstr :: SYMB_OR_MAP -> Constr dataTypeOf :: SYMB_OR_MAP -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SYMB_OR_MAP) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SYMB_OR_MAP) gmapT :: (forall b. Data b => b -> b) -> SYMB_OR_MAP -> SYMB_OR_MAP gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SYMB_OR_MAP -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SYMB_OR_MAP -> r gmapQ :: (forall d. Data d => d -> u) -> SYMB_OR_MAP -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> SYMB_OR_MAP -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> SYMB_OR_MAP -> m SYMB_OR_MAP gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SYMB_OR_MAP -> m SYMB_OR_MAP gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SYMB_OR_MAP -> m SYMB_OR_MAP | |
Ord SYMB_OR_MAP Source # | |
Defined in NeSyPatterns.AS compare :: SYMB_OR_MAP -> SYMB_OR_MAP -> Ordering (<) :: SYMB_OR_MAP -> SYMB_OR_MAP -> Bool (<=) :: SYMB_OR_MAP -> SYMB_OR_MAP -> Bool (>) :: SYMB_OR_MAP -> SYMB_OR_MAP -> Bool (>=) :: SYMB_OR_MAP -> SYMB_OR_MAP -> Bool max :: SYMB_OR_MAP -> SYMB_OR_MAP -> SYMB_OR_MAP min :: SYMB_OR_MAP -> SYMB_OR_MAP -> SYMB_OR_MAP | |
Show SYMB_OR_MAP Source # | |
Defined in NeSyPatterns.AS showsPrec :: Int -> SYMB_OR_MAP -> ShowS show :: SYMB_OR_MAP -> String showList :: [SYMB_OR_MAP] -> ShowS | |
Generic SYMB_OR_MAP | |
Defined in NeSyPatterns.ATC_NeSyPatterns type Rep SYMB_OR_MAP :: Type -> Type from :: SYMB_OR_MAP -> Rep SYMB_OR_MAP x to :: Rep SYMB_OR_MAP x -> SYMB_OR_MAP | |
GetRange SYMB_OR_MAP Source # | |
Defined in NeSyPatterns.AS getRange :: SYMB_OR_MAP -> Range Source # rangeSpan :: SYMB_OR_MAP -> [Pos] Source # | |
FromJSON SYMB_OR_MAP | |
Defined in NeSyPatterns.ATC_NeSyPatterns parseJSON :: Value -> Parser SYMB_OR_MAP parseJSONList :: Value -> Parser [SYMB_OR_MAP] | |
ToJSON SYMB_OR_MAP | |
Defined in NeSyPatterns.ATC_NeSyPatterns toJSON :: SYMB_OR_MAP -> Value toEncoding :: SYMB_OR_MAP -> Encoding toJSONList :: [SYMB_OR_MAP] -> Value toEncodingList :: [SYMB_OR_MAP] -> Encoding | |
ShATermConvertible SYMB_OR_MAP | |
Defined in NeSyPatterns.ATC_NeSyPatterns toShATermAux :: ATermTable -> SYMB_OR_MAP -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [SYMB_OR_MAP] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, SYMB_OR_MAP) fromShATermList' :: Int -> ATermTable -> (ATermTable, [SYMB_OR_MAP]) | |
Pretty SYMB_OR_MAP Source # | |
Defined in NeSyPatterns.Print pretty :: SYMB_OR_MAP -> Doc Source # pretties :: [SYMB_OR_MAP] -> Doc Source # | |
type Rep SYMB_OR_MAP | |
Defined in NeSyPatterns.ATC_NeSyPatterns type Rep SYMB_OR_MAP = D1 ('MetaData "SYMB_OR_MAP" "NeSyPatterns.AS" "main" 'False) (C1 ('MetaCons "Symb" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SYMB)) :+: C1 ('MetaCons "Symb_map" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SYMB) :*: (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SYMB) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Range)))) |