| Copyright | (c) CNRS 2017-Present |
|---|---|
| License | AGPL + CECILL v3 |
| Maintainer | team@gargantext.org |
| Stability | experimental |
| Portability | POSIX |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Gargantext.Core.Types.Main
Description
Synopsis
- type CorpusName = Text
- data NodeTree = NodeTree {}
- type TypeId = Int
- data ListType
- type ListTypeId = Int
- listTypeIds :: Bimap ListType ListTypeId
- fromListTypeId :: ListTypeId -> Maybe ListType
- data Tree a = TreeN {
- _tn_node :: a
- _tn_children :: [Tree a]
- leafT :: a -> Tree a
- gargNode :: [Tree NodeTree]
- userTree :: Tree NodeTree
- projectTree :: Tree NodeTree
- annuaireTree :: Tree NodeTree
- corpusTree :: NodeId -> Text -> Tree NodeTree
Documentation
type CorpusName = Text #
Instances
| FromJSON NodeTree # | |
| ToJSON NodeTree # | |
Defined in Gargantext.Core.Types.Main | |
| Generic NodeTree # | |
| Read NodeTree # | |
| Show NodeTree # | |
| ToSchema NodeTree # | |
Defined in Gargantext.Core.Types.Main Methods declareNamedSchema :: Proxy NodeTree -> Declare (Definitions Schema) NamedSchema # | |
| HasSwagger (WithCustomErrorScheme GargAPI) # | |
Defined in Gargantext.API.Routes | |
| Arbitrary (Tree NodeTree) # | |
| type Rep NodeTree # | |
Defined in Gargantext.Core.Types.Main type Rep NodeTree = D1 ('MetaData "NodeTree" "Gargantext.Core.Types.Main" "gargantext-0.0.7.1.5.3-inplace" 'False) (C1 ('MetaCons "NodeTree" 'PrefixI 'True) (S1 ('MetaSel ('Just "_nt_name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "_nt_type") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 NodeType) :*: S1 ('MetaSel ('Just "_nt_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 NodeId)))) | |
Constructors
| CandidateTerm | |
| StopTerm | |
| MapTerm |
Instances
type ListTypeId = Int #
listTypeIds :: Bimap ListType ListTypeId #
Bidirectional map between a ListType and a ListTypeId.
NOTE: The way this is constructed is total in its domain.
fromListTypeId :: ListTypeId -> Maybe ListType #
Community Manager Use Case | Favorites Node enable Swap Node with some synonyms for clarity
Then a Node can be a List which has some synonyms
Then a Node can be a Score which has some synonyms
Constructors
| TreeN | |
Fields
| |
Instances
| HasSwagger (WithCustomErrorScheme GargAPI) # | |
Defined in Gargantext.API.Routes | |
| Arbitrary (Tree NodeTree) # | |
| FromJSON a => FromJSON (Tree a) # | |
| ToJSON a => ToJSON (Tree a) # | |
Defined in Gargantext.Core.Types.Main | |
| Generic (Tree a) # | |
| Read a => Read (Tree a) # | |
| Show a => Show (Tree a) # | |
| Eq a => Eq (Tree a) # | |
| Ord a => Ord (Tree a) # | |
| (Typeable a, ToSchema a) => ToSchema (Tree a) # | |
Defined in Gargantext.Core.Types.Main Methods declareNamedSchema :: Proxy (Tree a) -> Declare (Definitions Schema) NamedSchema # | |
| type Rep (Tree a) # | |
Defined in Gargantext.Core.Types.Main type Rep (Tree a) = D1 ('MetaData "Tree" "Gargantext.Core.Types.Main" "gargantext-0.0.7.1.5.3-inplace" 'False) (C1 ('MetaCons "TreeN" 'PrefixI 'True) (S1 ('MetaSel ('Just "_tn_node") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 a) :*: S1 ('MetaSel ('Just "_tn_children") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Tree a]))) | |
Garg Node is Database Schema Typed as specification gargNode gathers all the Nodes of all users on one Node
projectTree :: Tree NodeTree #
Project Tree
annuaireTree :: Tree NodeTree #
Corpus Tree