Hets - the Heterogeneous Tool Set

Copyright(c) Simon Ulbricht DFKI GmbH 2011
LicenseGPLv2 or higher, see LICENSE.txt
Maintainertekknix@informatik.uni-bremen.de
Stabilityprovisional
Portabilitynon-portable (DevGraph)
Safe HaskellNone

Static.XGraph

Description

convert an Xml-Graph into an XGraph-Structure.

Synopsis

Documentation

data XGraph Source #

Instances

Data XGraph Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> XGraph -> c XGraph

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c XGraph

toConstr :: XGraph -> Constr

dataTypeOf :: XGraph -> DataType

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c XGraph)

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c XGraph)

gmapT :: (forall b. Data b => b -> b) -> XGraph -> XGraph

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> XGraph -> r

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> XGraph -> r

gmapQ :: (forall d. Data d => d -> u) -> XGraph -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> XGraph -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> XGraph -> m XGraph

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> XGraph -> m XGraph

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> XGraph -> m XGraph

type XTree = [[([XLink], XNode)]] Source #

type EdgeMap = Map String (Map String [XLink]) Source #

data XNode Source #

Constructors

XNode 

Fields

XRef 

Fields

Instances

Data XNode Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> XNode -> c XNode

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c XNode

toConstr :: XNode -> Constr

dataTypeOf :: XNode -> DataType

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c XNode)

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c XNode)

gmapT :: (forall b. Data b => b -> b) -> XNode -> XNode

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> XNode -> r

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> XNode -> r

gmapQ :: (forall d. Data d => d -> u) -> XNode -> [u]

gmapQi :: Int -> (forall d. Data d => d -> u) -> XNode -> u

gmapM :: Monad m => (forall d. Data d => d -> m d) -> XNode -> m XNode

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> XNode -> m XNode

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> XNode -> m XNode

Show XNode Source # 

Methods

showsPrec :: Int -> XNode -> ShowS

show :: XNode -> String

showList :: [XNode] -> ShowS

data XLink Source #

Constructors

XLink 

Fields

xGraph :: Element -> Result XGraph Source #

builtXGraph :: Monad m => Set String -> EdgeMap -> Map String XNode -> XTree -> m XTree Source #

extractXNodes :: Monad m => Element -> m [XNode] Source #

extractXLinks :: Monad m => Element -> m [XLink] Source #

mkXNode :: Monad m => Element -> m XNode Source #

extractNodeName :: Monad m => Element -> m NodeName Source #

mkXLink :: Monad m => Element -> m XLink Source #

extractEdgeId :: Monad m => Element -> m EdgeId Source #

readEdgeId :: String -> EdgeId Source #

deepSearch :: [String] -> Element -> [Element] Source #

custom xml-search for not only immediate children

extractGlobalAnnos :: Element -> Result GlobalAnnos Source #

extracts the global annotations from the xml-graph