Copyright | Dominik Luecke Uni Bremen 2008 |
---|---|
License | GPLv2 or higher, see LICENSE.txt or LIZENZ.txt |
Maintainer | luecke@informatik.uni-bremen.de |
Stability | provisional |
Portability | portable |
Safe Haskell | None |
Abstract syntax for Relational Schemes
Synopsis
- data RSRelType
- data RSQualId = RSQualId {}
- data RSRel = RSRel {}
- data RSRelationships = RSRelationships [Annoted RSRel] Range
- data RSScheme = RSScheme RSTables RSRelationships Range
- type Sentence = RSRel
- map_rel :: RSMorphism -> RSRel -> Result RSRel
- getRels :: RSScheme -> [Annoted RSRel]
- getSignature :: RSScheme -> RSTables
Documentation
Instances
Eq RSRelType Source # | |
Data RSRelType Source # | |
Defined in RelationalScheme.AS gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RSRelType -> c RSRelType gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RSRelType toConstr :: RSRelType -> Constr dataTypeOf :: RSRelType -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RSRelType) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RSRelType) gmapT :: (forall b. Data b => b -> b) -> RSRelType -> RSRelType gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RSRelType -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RSRelType -> r gmapQ :: (forall d. Data d => d -> u) -> RSRelType -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> RSRelType -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> RSRelType -> m RSRelType gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RSRelType -> m RSRelType gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RSRelType -> m RSRelType | |
Ord RSRelType Source # | |
Defined in RelationalScheme.AS | |
Show RSRelType Source # | |
Generic RSRelType | |
GetRange RSRelType Source # | |
FromJSON RSRelType | |
Defined in RelationalScheme.ATC_RelationalScheme parseJSON :: Value -> Parser RSRelType parseJSONList :: Value -> Parser [RSRelType] | |
ToJSON RSRelType | |
Defined in RelationalScheme.ATC_RelationalScheme toEncoding :: RSRelType -> Encoding toJSONList :: [RSRelType] -> Value toEncodingList :: [RSRelType] -> Encoding | |
ShATermConvertible RSRelType | |
Defined in RelationalScheme.ATC_RelationalScheme toShATermAux :: ATermTable -> RSRelType -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [RSRelType] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, RSRelType) fromShATermList' :: Int -> ATermTable -> (ATermTable, [RSRelType]) | |
type Rep RSRelType | |
Defined in RelationalScheme.ATC_RelationalScheme type Rep RSRelType = D1 ('MetaData "RSRelType" "RelationalScheme.AS" "main" 'False) ((C1 ('MetaCons "RSone_to_one" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "RSone_to_many" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "RSmany_to_one" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "RSmany_to_many" 'PrefixI 'False) (U1 :: Type -> Type))) |
Instances
Eq RSQualId Source # | |
Data RSQualId Source # | |
Defined in RelationalScheme.AS gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RSQualId -> c RSQualId gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RSQualId toConstr :: RSQualId -> Constr dataTypeOf :: RSQualId -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RSQualId) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RSQualId) gmapT :: (forall b. Data b => b -> b) -> RSQualId -> RSQualId gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RSQualId -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RSQualId -> r gmapQ :: (forall d. Data d => d -> u) -> RSQualId -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> RSQualId -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> RSQualId -> m RSQualId gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RSQualId -> m RSQualId gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RSQualId -> m RSQualId | |
Ord RSQualId Source # | |
Show RSQualId Source # | |
Generic RSQualId | |
GetRange RSQualId Source # | |
FromJSON RSQualId | |
Defined in RelationalScheme.ATC_RelationalScheme parseJSON :: Value -> Parser RSQualId parseJSONList :: Value -> Parser [RSQualId] | |
ToJSON RSQualId | |
Defined in RelationalScheme.ATC_RelationalScheme toEncoding :: RSQualId -> Encoding toJSONList :: [RSQualId] -> Value toEncodingList :: [RSQualId] -> Encoding | |
ShATermConvertible RSQualId | |
Defined in RelationalScheme.ATC_RelationalScheme toShATermAux :: ATermTable -> RSQualId -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [RSQualId] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, RSQualId) fromShATermList' :: Int -> ATermTable -> (ATermTable, [RSQualId]) | |
Pretty RSQualId Source # | |
type Rep RSQualId | |
Defined in RelationalScheme.ATC_RelationalScheme type Rep RSQualId = D1 ('MetaData "RSQualId" "RelationalScheme.AS" "main" 'False) (C1 ('MetaCons "RSQualId" 'PrefixI 'True) (S1 ('MetaSel ('Just "table") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Id) :*: (S1 ('MetaSel ('Just "column") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Id) :*: S1 ('MetaSel ('Just "q_pos") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Range)))) |
Instances
data RSRelationships Source #
Instances
Eq RSRelationships Source # | |
Defined in RelationalScheme.AS (==) :: RSRelationships -> RSRelationships -> Bool (/=) :: RSRelationships -> RSRelationships -> Bool | |
Data RSRelationships Source # | |
Defined in RelationalScheme.AS gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RSRelationships -> c RSRelationships gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RSRelationships toConstr :: RSRelationships -> Constr dataTypeOf :: RSRelationships -> DataType dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c RSRelationships) dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RSRelationships) gmapT :: (forall b. Data b => b -> b) -> RSRelationships -> RSRelationships gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RSRelationships -> r gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RSRelationships -> r gmapQ :: (forall d. Data d => d -> u) -> RSRelationships -> [u] gmapQi :: Int -> (forall d. Data d => d -> u) -> RSRelationships -> u gmapM :: Monad m => (forall d. Data d => d -> m d) -> RSRelationships -> m RSRelationships gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RSRelationships -> m RSRelationships gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RSRelationships -> m RSRelationships | |
Ord RSRelationships Source # | |
Defined in RelationalScheme.AS compare :: RSRelationships -> RSRelationships -> Ordering (<) :: RSRelationships -> RSRelationships -> Bool (<=) :: RSRelationships -> RSRelationships -> Bool (>) :: RSRelationships -> RSRelationships -> Bool (>=) :: RSRelationships -> RSRelationships -> Bool max :: RSRelationships -> RSRelationships -> RSRelationships min :: RSRelationships -> RSRelationships -> RSRelationships | |
Show RSRelationships Source # | |
Defined in RelationalScheme.AS showsPrec :: Int -> RSRelationships -> ShowS show :: RSRelationships -> String showList :: [RSRelationships] -> ShowS | |
Generic RSRelationships | |
Defined in RelationalScheme.ATC_RelationalScheme type Rep RSRelationships :: Type -> Type from :: RSRelationships -> Rep RSRelationships x to :: Rep RSRelationships x -> RSRelationships | |
Semigroup RSRelationships | |
Defined in RelationalScheme.Logic_Rel (<>) :: RSRelationships -> RSRelationships -> RSRelationships # sconcat :: NonEmpty RSRelationships -> RSRelationships stimes :: Integral b => b -> RSRelationships -> RSRelationships | |
Monoid RSRelationships | |
Defined in RelationalScheme.Logic_Rel | |
GetRange RSRelationships Source # | |
Defined in RelationalScheme.AS getRange :: RSRelationships -> Range Source # rangeSpan :: RSRelationships -> [Pos] Source # | |
FromJSON RSRelationships | |
Defined in RelationalScheme.ATC_RelationalScheme parseJSON :: Value -> Parser RSRelationships parseJSONList :: Value -> Parser [RSRelationships] | |
ToJSON RSRelationships | |
Defined in RelationalScheme.ATC_RelationalScheme toJSON :: RSRelationships -> Value toEncoding :: RSRelationships -> Encoding toJSONList :: [RSRelationships] -> Value toEncodingList :: [RSRelationships] -> Encoding | |
ShATermConvertible RSRelationships | |
Defined in RelationalScheme.ATC_RelationalScheme toShATermAux :: ATermTable -> RSRelationships -> IO (ATermTable, Int) toShATermList' :: ATermTable -> [RSRelationships] -> IO (ATermTable, Int) fromShATermAux :: Int -> ATermTable -> (ATermTable, RSRelationships) fromShATermList' :: Int -> ATermTable -> (ATermTable, [RSRelationships]) | |
Pretty RSRelationships Source # | |
Defined in RelationalScheme.AS pretty :: RSRelationships -> Doc Source # pretties :: [RSRelationships] -> Doc Source # | |
type Rep RSRelationships | |
Defined in RelationalScheme.ATC_RelationalScheme type Rep RSRelationships = D1 ('MetaData "RSRelationships" "RelationalScheme.AS" "main" 'False) (C1 ('MetaCons "RSRelationships" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Annoted RSRel]) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Range))) |
Instances
getSignature :: RSScheme -> RSTables Source #