gargantext-0.0.7.1.5.3: Search, map, share
Copyright(c) CNRS 2017-Present
LicenseAGPL + CECILL v3
Maintainerteam@gargantext.org
Stabilityexperimental
PortabilityPOSIX
Safe HaskellSafe-Inferred
LanguageHaskell2010

Gargantext.API.Ngrams

Description

Ngrams API

  • - | TODO get ngrams filtered by NgramsType add get
Synopsis

Documentation

type TableNgramsApi = TableNgramsApiGet :<|> (TableNgramsApiPut :<|> (RecomputeScoresNgramsApiGet :<|> (("version" :> TableNgramsApiGetVersion) :<|> TableNgramsAsyncApi))) #

type TableNgramsApiGet = Summary " Table Ngrams API Get" :> (QueryParamR "ngramsType" TabType :> (QueryParamR "list" ListId :> (QueryParamR "limit" Limit :> (QueryParam "offset" Offset :> (QueryParam "listType" ListType :> (QueryParam "minTermSize" MinSize :> (QueryParam "maxTermSize" MaxSize :> (QueryParam "orderBy" OrderBy :> (QueryParam "search" Text :> Get '[JSON] (VersionedWithCount NgramsTable)))))))))) #

searchTableNgrams #

Arguments

:: Versioned (Map NgramsTerm NgramsElement) 
-> NgramsSearchQuery

The search query on the retrieved data

-> VersionedWithCount NgramsTable 

TODO Errors management TODO: polymorphic for Annuaire or Corpus or ... | Table of Ngrams is a ListNgrams formatted (sorted and/or cut). TODO: should take only one ListId

pure function to query a 'Map NgramsTerm NgramsElement', according to a search function. Returns a versioned NgramsTable which is paginated and sorted according to the input NgramsSearchQuery, together with the occurrences of the elements.

setListNgrams :: HasNodeStory env err m => NodeId -> NgramsType -> Map NgramsTerm NgramsRepoElement -> m () #

TODO: incr the Version number && should use patch UNSAFE

data NgramsTablePatch #

Instances

Instances details
Arbitrary NgramsTablePatch # 
Instance details

Defined in Gargantext.API.Ngrams.Types

FromJSON NgramsTablePatch # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToJSON NgramsTablePatch # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Monoid NgramsTablePatch # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Semigroup NgramsTablePatch # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Generic NgramsTablePatch # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Associated Types

type Rep NgramsTablePatch :: Type -> Type #

Show NgramsTablePatch # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Eq NgramsTablePatch # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Transformable NgramsTablePatch # 
Instance details

Defined in Gargantext.API.Ngrams.Types

FromField NgramsTablePatch # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToField NgramsTablePatch # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Serialise NgramsTablePatch # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToSchema NgramsTablePatch # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Validity NgramsTablePatch # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Action NgramsTablePatch (Maybe NgramsTableMap) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Applicable NgramsTablePatch (Maybe NgramsTableMap) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

HasSwagger (WithCustomErrorScheme GargAPI) # 
Instance details

Defined in Gargantext.API.Routes

DefaultFromField SqlJsonb (Archive NgramsState' NgramsStatePatch') # 
Instance details

Defined in Gargantext.Core.NodeStory.Types

FromField (PatchMap NgramsType (PatchMap NodeId NgramsTablePatch)) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

FromField (Archive NgramsState' NgramsStatePatch') # 
Instance details

Defined in Gargantext.Core.NodeStory.Types

type Rep NgramsTablePatch # 
Instance details

Defined in Gargantext.API.Ngrams.Types

type Rep NgramsTablePatch = D1 ('MetaData "NgramsTablePatch" "Gargantext.API.Ngrams.Types" "gargantext-0.0.7.1.5.3-inplace" 'True) (C1 ('MetaCons "NgramsTablePatch" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (PatchMap NgramsTerm NgramsPatch))))
type ConflictResolution NgramsTablePatch # 
Instance details

Defined in Gargantext.API.Ngrams.Types

type Patched NgramsTablePatch # 
Instance details

Defined in Gargantext.API.Ngrams.Types

newtype NgramsTerm #

Constructors

NgramsTerm 

Fields

Instances

Instances details
Arbitrary NgramsTerm # 
Instance details

Defined in Gargantext.API.Ngrams.Types

FromJSON NgramsTerm # 
Instance details

Defined in Gargantext.API.Ngrams.Types

FromJSONKey NgramsTerm # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToJSON NgramsTerm # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToJSONKey NgramsTerm # 
Instance details

Defined in Gargantext.API.Ngrams.Types

IsString NgramsTerm # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Monoid NgramsTerm # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Semigroup NgramsTerm # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Generic NgramsTerm # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Associated Types

type Rep NgramsTerm :: Type -> Type #

Show NgramsTerm # 
Instance details

Defined in Gargantext.API.Ngrams.Types

NFData NgramsTerm # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Methods

rnf :: NgramsTerm -> () #

IsHashable NgramsTerm # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Methods

hash :: NgramsTerm -> Hash #

Eq NgramsTerm # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Ord NgramsTerm # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Hashable NgramsTerm # 
Instance details

Defined in Gargantext.API.Ngrams.Types

FromField NgramsTerm # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToField NgramsTerm # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Methods

toField :: NgramsTerm -> Action #

Serialise NgramsTerm # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToSchema NgramsTerm # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToExpr NgramsTerm # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Action NgramsTablePatch (Maybe NgramsTableMap) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Applicable NgramsTablePatch (Maybe NgramsTableMap) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

HasSwagger (WithCustomErrorScheme GargAPI) # 
Instance details

Defined in Gargantext.API.Routes

DefaultFromField SqlJsonb (Archive NgramsState' NgramsStatePatch') # 
Instance details

Defined in Gargantext.Core.NodeStory.Types

Serialise (MSet NgramsTerm) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

FromHttpApiData (Map NgramsType (Versioned NgramsTableMap)) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToHttpApiData (Map NgramsType (Versioned NgramsTableMap)) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

FromField (Archive NgramsState' NgramsStatePatch') # 
Instance details

Defined in Gargantext.Core.NodeStory.Types

Serialise (PatchMap NgramsTerm NgramsPatch) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToSchema (PatchMap NgramsTerm NgramsPatch) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Action (PairPatch (PatchMSet NgramsTerm) (Replace ListType)) NgramsRepoElement # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Applicable (PairPatch (PatchMSet NgramsTerm) (Replace ListType)) NgramsRepoElement # 
Instance details

Defined in Gargantext.API.Ngrams.Types

type Rep NgramsTerm # 
Instance details

Defined in Gargantext.API.Ngrams.Types

type Rep NgramsTerm = D1 ('MetaData "NgramsTerm" "Gargantext.API.Ngrams.Types" "gargantext-0.0.7.1.5.3-inplace" 'True) (C1 ('MetaCons "NgramsTerm" 'PrefixI 'True) (S1 ('MetaSel ('Just "unNgramsTerm") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

data NgramsElement #

Instances

Instances details
Arbitrary NgramsElement # 
Instance details

Defined in Gargantext.API.Ngrams.Types

FromJSON NgramsElement # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToJSON NgramsElement # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Generic NgramsElement # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Associated Types

type Rep NgramsElement :: Type -> Type #

Show NgramsElement # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Eq NgramsElement # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Ord NgramsElement # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToSchema NgramsElement # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToExpr NgramsElement # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Each NgramsTable NgramsTable NgramsElement NgramsElement #

Question: why these repetition of Type in this instance may you document it please ?

Instance details

Defined in Gargantext.API.Ngrams.Types

type Rep NgramsElement # 
Instance details

Defined in Gargantext.API.Ngrams.Types

data RootParent #

Constructors

RootParent 

Instances

Instances details
FromJSON RootParent # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToJSON RootParent # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Generic RootParent # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Associated Types

type Rep RootParent :: Type -> Type #

Show RootParent # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Eq RootParent # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Ord RootParent # 
Instance details

Defined in Gargantext.API.Ngrams.Types

type Rep RootParent # 
Instance details

Defined in Gargantext.API.Ngrams.Types

type Rep RootParent = D1 ('MetaData "RootParent" "Gargantext.API.Ngrams.Types" "gargantext-0.0.7.1.5.3-inplace" 'False) (C1 ('MetaCons "RootParent" 'PrefixI 'True) (S1 ('MetaSel ('Just "_rp_root") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 NgramsTerm) :*: S1 ('MetaSel ('Just "_rp_parent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 NgramsTerm)))

data MSet a #

Instances

Instances details
Foldable MSet # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Methods

fold :: Monoid m => MSet m -> m #

foldMap :: Monoid m => (a -> m) -> MSet a -> m #

foldMap' :: Monoid m => (a -> m) -> MSet a -> m #

foldr :: (a -> b -> b) -> b -> MSet a -> b #

foldr' :: (a -> b -> b) -> b -> MSet a -> b #

foldl :: (b -> a -> b) -> b -> MSet a -> b #

foldl' :: (b -> a -> b) -> b -> MSet a -> b #

foldr1 :: (a -> a -> a) -> MSet a -> a #

foldl1 :: (a -> a -> a) -> MSet a -> a #

toList :: MSet a -> [a] #

null :: MSet a -> Bool #

length :: MSet a -> Int #

elem :: Eq a => a -> MSet a -> Bool #

maximum :: Ord a => MSet a -> a #

minimum :: Ord a => MSet a -> a #

sum :: Num a => MSet a -> a #

product :: Num a => MSet a -> a #

(Ord a, Arbitrary a) => Arbitrary (MSet a) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Methods

arbitrary :: Gen (MSet a) #

shrink :: MSet a -> [MSet a] #

(Ord a, FromJSON a) => FromJSON (MSet a) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToJSON a => ToJSON (MSet a) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Ord a => Monoid (MSet a) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Methods

mempty :: MSet a #

mappend :: MSet a -> MSet a -> MSet a #

mconcat :: [MSet a] -> MSet a #

Ord a => Semigroup (MSet a) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Methods

(<>) :: MSet a -> MSet a -> MSet a #

sconcat :: NonEmpty (MSet a) -> MSet a #

stimes :: Integral b => b -> MSet a -> MSet a #

Generic (MSet a) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Associated Types

type Rep (MSet a) :: Type -> Type #

Methods

from :: MSet a -> Rep (MSet a) x #

to :: Rep (MSet a) x -> MSet a #

Show a => Show (MSet a) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Methods

showsPrec :: Int -> MSet a -> ShowS #

show :: MSet a -> String #

showList :: [MSet a] -> ShowS #

Eq a => Eq (MSet a) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Methods

(==) :: MSet a -> MSet a -> Bool #

(/=) :: MSet a -> MSet a -> Bool #

Ord a => Ord (MSet a) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Methods

compare :: MSet a -> MSet a -> Ordering #

(<) :: MSet a -> MSet a -> Bool #

(<=) :: MSet a -> MSet a -> Bool #

(>) :: MSet a -> MSet a -> Bool #

(>=) :: MSet a -> MSet a -> Bool #

max :: MSet a -> MSet a -> MSet a #

min :: MSet a -> MSet a -> MSet a #

Serialise (MSet NgramsTerm) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

(ToJSONKey a, ToSchema a) => ToSchema (MSet a) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToExpr a => ToExpr (MSet a) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Methods

toExpr :: MSet a -> Expr #

listToExpr :: [MSet a] -> Expr #

Ord a => Action (PatchMSet a) (MSet a) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Methods

act :: PatchMSet a -> MSet a -> MSet a #

Ord a => Applicable (PatchMSet a) (MSet a) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Methods

applicable :: PatchMSet a -> MSet a -> Validation #

type Rep (MSet a) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

type Rep (MSet a) = D1 ('MetaData "MSet" "Gargantext.API.Ngrams.Types" "gargantext-0.0.7.1.5.3-inplace" 'True) (C1 ('MetaCons "MSet" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map a ()))))

mSetFromList :: Ord a => [a] -> MSet a #

mSetToList :: MSet a -> [a] #

data Repo s p #

TOREMOVE

Constructors

Repo 

Fields

Instances

Instances details
(FromJSON s, FromJSON p) => FromJSON (Repo s p) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Methods

parseJSON :: Value -> Parser (Repo s p) #

parseJSONList :: Value -> Parser [Repo s p] #

(ToJSON s, ToJSON p) => ToJSON (Repo s p) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Methods

toJSON :: Repo s p -> Value #

toEncoding :: Repo s p -> Encoding #

toJSONList :: [Repo s p] -> Value #

toEncodingList :: [Repo s p] -> Encoding #

Generic (Repo s p) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Associated Types

type Rep (Repo s p) :: Type -> Type #

Methods

from :: Repo s p -> Rep (Repo s p) x #

to :: Rep (Repo s p) x -> Repo s p #

(Show s, Show p) => Show (Repo s p) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Methods

showsPrec :: Int -> Repo s p -> ShowS #

show :: Repo s p -> String #

showList :: [Repo s p] -> ShowS #

(Serialise s, Serialise p) => Serialise (Repo s p) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Methods

encode :: Repo s p -> Encoding #

decode :: Decoder s0 (Repo s p) #

encodeList :: [Repo s p] -> Encoding #

decodeList :: Decoder s0 [Repo s p] #

type Rep (Repo s p) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

type Rep (Repo s p) = D1 ('MetaData "Repo" "Gargantext.API.Ngrams.Types" "gargantext-0.0.7.1.5.3-inplace" 'False) (C1 ('MetaCons "Repo" 'PrefixI 'True) (S1 ('MetaSel ('Just "_r_version") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Version) :*: (S1 ('MetaSel ('Just "_r_state") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 s) :*: S1 ('MetaSel ('Just "_r_history") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [p]))))

r_version :: forall s p. Lens' (Repo s p) Version #

r_state :: forall s p s. Lens (Repo s p) (Repo s p) s s #

r_history :: forall s p p. Lens (Repo s p) (Repo s p) [p] [p] #

data NgramsRepoElement #

Instances

Instances details
Arbitrary NgramsRepoElement # 
Instance details

Defined in Gargantext.API.Ngrams.Types

FromJSON NgramsRepoElement # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToJSON NgramsRepoElement # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Generic NgramsRepoElement # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Associated Types

type Rep NgramsRepoElement :: Type -> Type #

Show NgramsRepoElement # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Eq NgramsRepoElement # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Ord NgramsRepoElement # 
Instance details

Defined in Gargantext.API.Ngrams.Types

FromField NgramsRepoElement # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToField NgramsRepoElement # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Serialise NgramsRepoElement # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToSchema NgramsRepoElement # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Action NgramsPatch (Maybe NgramsRepoElement) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Action NgramsTablePatch (Maybe NgramsTableMap) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Applicable NgramsPatch (Maybe NgramsRepoElement) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Applicable NgramsTablePatch (Maybe NgramsTableMap) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

HasSwagger (WithCustomErrorScheme GargAPI) # 
Instance details

Defined in Gargantext.API.Routes

DefaultFromField SqlJsonb (Archive NgramsState' NgramsStatePatch') # 
Instance details

Defined in Gargantext.Core.NodeStory.Types

Action (Replace ListType) NgramsRepoElement # 
Instance details

Defined in Gargantext.API.Ngrams.Types

FromHttpApiData (Map NgramsType (Versioned NgramsTableMap)) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToHttpApiData (Map NgramsType (Versioned NgramsTableMap)) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

FromField (Archive NgramsState' NgramsStatePatch') # 
Instance details

Defined in Gargantext.Core.NodeStory.Types

Action (PairPatch (PatchMSet NgramsTerm) (Replace ListType)) NgramsRepoElement # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Applicable (PairPatch (PatchMSet NgramsTerm) (Replace ListType)) NgramsRepoElement # 
Instance details

Defined in Gargantext.API.Ngrams.Types

type Rep NgramsRepoElement # 
Instance details

Defined in Gargantext.API.Ngrams.Types

type Rep NgramsRepoElement = D1 ('MetaData "NgramsRepoElement" "Gargantext.API.Ngrams.Types" "gargantext-0.0.7.1.5.3-inplace" 'False) (C1 ('MetaCons "NgramsRepoElement" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_nre_size") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "_nre_list") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ListType)) :*: (S1 ('MetaSel ('Just "_nre_root") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe NgramsTerm)) :*: (S1 ('MetaSel ('Just "_nre_parent") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe NgramsTerm)) :*: S1 ('MetaSel ('Just "_nre_children") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (MSet NgramsTerm))))))

initRepo :: Monoid s => Repo s p #

data TabType #

Instances

Instances details
Arbitrary TabType # 
Instance details

Defined in Gargantext.API.Ngrams.Types

FromJSON TabType # 
Instance details

Defined in Gargantext.API.Ngrams.Types

FromJSONKey TabType # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToJSON TabType # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToJSONKey TabType # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Bounded TabType # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Enum TabType # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Generic TabType # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Associated Types

type Rep TabType :: Type -> Type #

Methods

from :: TabType -> Rep TabType x #

to :: Rep TabType x -> TabType #

Show TabType # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Eq TabType # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Methods

(==) :: TabType -> TabType -> Bool #

(/=) :: TabType -> TabType -> Bool #

Ord TabType # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Hashable TabType # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Methods

hashWithSalt :: Int -> TabType -> Int #

hash :: TabType -> Int #

FromHttpApiData TabType # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToHttpApiData TabType # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToParamSchema TabType # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Methods

toParamSchema :: forall (t :: SwaggerKind Type). Proxy TabType -> ParamSchema t #

ToSchema TabType # 
Instance details

Defined in Gargantext.API.Ngrams.Types

HasSwagger (WithCustomErrorScheme GargAPI) # 
Instance details

Defined in Gargantext.API.Routes

type Rep TabType # 
Instance details

Defined in Gargantext.API.Ngrams.Types

type Rep TabType = D1 ('MetaData "TabType" "Gargantext.API.Ngrams.Types" "gargantext-0.0.7.1.5.3-inplace" 'False) (((C1 ('MetaCons "Docs" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Trash" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "MoreFav" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "MoreTrash" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "Terms" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Sources" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Authors" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Institutes" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Contacts" 'PrefixI 'False) (U1 :: Type -> Type)))))

data TODO #

Instances

Instances details
Generic TODO # 
Instance details

Defined in Gargantext.Core.Types

Associated Types

type Rep TODO :: Type -> Type #

Methods

from :: TODO -> Rep TODO x #

to :: Rep TODO x -> TODO #

ToParamSchema TODO # 
Instance details

Defined in Gargantext.Core.Types

Methods

toParamSchema :: forall (t :: SwaggerKind Type). Proxy TODO -> ParamSchema t #

ToSchema TODO # 
Instance details

Defined in Gargantext.Core.Types

type Rep TODO # 
Instance details

Defined in Gargantext.Core.Types

type Rep TODO = D1 ('MetaData "TODO" "Gargantext.Core.Types" "gargantext-0.0.7.1.5.3-inplace" 'False) (C1 ('MetaCons "TODO" 'PrefixI 'False) (U1 :: Type -> Type))

dumpJsonTableMap :: HasNodeStory env err m => Text -> NodeId -> NgramsType -> m () #

getNgramsTable' :: forall env err m. (HasNodeStory env err m, HasNodeError err) => NodeId -> ListId -> NgramsType -> m (Versioned (Map NgramsTerm NgramsElement)) #

Helper function to get the ngrams table with scores.

setNgramsTableScores :: forall env err m t. (Each t t NgramsElement NgramsElement, HasNodeStory env err m, HasNodeError err) => NodeId -> ListId -> NgramsType -> t -> m t #

Helper function to set scores on an NgramsTable.

type Version = Int #

data Versioned a #

Constructors

Versioned 

Fields

Instances

Instances details
HasSwagger (WithCustomErrorScheme GargAPI) # 
Instance details

Defined in Gargantext.API.Routes

Arbitrary a => Arbitrary (Versioned a) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Methods

arbitrary :: Gen (Versioned a) #

shrink :: Versioned a -> [Versioned a] #

FromJSON a => FromJSON (Versioned a) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToJSON a => ToJSON (Versioned a) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Generic (Versioned a) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Associated Types

type Rep (Versioned a) :: Type -> Type #

Methods

from :: Versioned a -> Rep (Versioned a) x #

to :: Rep (Versioned a) x -> Versioned a #

Show a => Show (Versioned a) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Eq a => Eq (Versioned a) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Methods

(==) :: Versioned a -> Versioned a -> Bool #

(/=) :: Versioned a -> Versioned a -> Bool #

(Typeable a, ToSchema a) => ToSchema (Versioned a) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

FromHttpApiData (Map NgramsType (Versioned NgramsTableMap)) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToHttpApiData (Map NgramsType (Versioned NgramsTableMap)) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

type Rep (Versioned a) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

type Rep (Versioned a) = D1 ('MetaData "Versioned" "Gargantext.API.Ngrams.Types" "gargantext-0.0.7.1.5.3-inplace" 'False) (C1 ('MetaCons "Versioned" 'PrefixI 'True) (S1 ('MetaSel ('Just "_v_version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Version) :*: S1 ('MetaSel ('Just "_v_data") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 a)))

data VersionedWithCount a #

Constructors

VersionedWithCount 

Instances

Instances details
HasSwagger (WithCustomErrorScheme GargAPI) # 
Instance details

Defined in Gargantext.API.Routes

Arbitrary a => Arbitrary (VersionedWithCount a) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

FromJSON a => FromJSON (VersionedWithCount a) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToJSON a => ToJSON (VersionedWithCount a) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Generic (VersionedWithCount a) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Associated Types

type Rep (VersionedWithCount a) :: Type -> Type #

Show a => Show (VersionedWithCount a) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Eq a => Eq (VersionedWithCount a) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

(Typeable a, ToSchema a) => ToSchema (VersionedWithCount a) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToExpr a => ToExpr (VersionedWithCount a) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

type Rep (VersionedWithCount a) # 
Instance details

Defined in Gargantext.API.Ngrams.Types

type Rep (VersionedWithCount a) = D1 ('MetaData "VersionedWithCount" "Gargantext.API.Ngrams.Types" "gargantext-0.0.7.1.5.3-inplace" 'False) (C1 ('MetaCons "VersionedWithCount" 'PrefixI 'True) (S1 ('MetaSel ('Just "_vc_version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Version) :*: (S1 ('MetaSel ('Just "_vc_count") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Count) :*: S1 ('MetaSel ('Just "_vc_data") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 a))))

data MinSize #

Instances

Instances details
Num MinSize # 
Instance details

Defined in Gargantext.Core.Types.Query

Show MinSize # 
Instance details

Defined in Gargantext.Core.Types.Query

Eq MinSize # 
Instance details

Defined in Gargantext.Core.Types.Query

Methods

(==) :: MinSize -> MinSize -> Bool #

(/=) :: MinSize -> MinSize -> Bool #

FromHttpApiData MinSize # 
Instance details

Defined in Gargantext.Core.Types.Query

ToHttpApiData MinSize # 
Instance details

Defined in Gargantext.Core.Types.Query

ToParamSchema MinSize # 
Instance details

Defined in Gargantext.Core.Types.Query

Methods

toParamSchema :: forall (t :: SwaggerKind Type). Proxy MinSize -> ParamSchema t #

ToSchema MinSize # 
Instance details

Defined in Gargantext.Core.Types.Query

HasSwagger (WithCustomErrorScheme GargAPI) # 
Instance details

Defined in Gargantext.API.Routes

data MaxSize #

Instances

Instances details
Num MaxSize # 
Instance details

Defined in Gargantext.Core.Types.Query

Show MaxSize # 
Instance details

Defined in Gargantext.Core.Types.Query

Eq MaxSize # 
Instance details

Defined in Gargantext.Core.Types.Query

Methods

(==) :: MaxSize -> MaxSize -> Bool #

(/=) :: MaxSize -> MaxSize -> Bool #

FromHttpApiData MaxSize # 
Instance details

Defined in Gargantext.Core.Types.Query

ToHttpApiData MaxSize # 
Instance details

Defined in Gargantext.Core.Types.Query

ToParamSchema MaxSize # 
Instance details

Defined in Gargantext.Core.Types.Query

Methods

toParamSchema :: forall (t :: SwaggerKind Type). Proxy MaxSize -> ParamSchema t #

ToSchema MaxSize # 
Instance details

Defined in Gargantext.Core.Types.Query

HasSwagger (WithCustomErrorScheme GargAPI) # 
Instance details

Defined in Gargantext.API.Routes

data OrderBy #

Instances

Instances details
Arbitrary OrderBy # 
Instance details

Defined in Gargantext.API.Ngrams.Types

FromJSON OrderBy # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToJSON OrderBy # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Bounded OrderBy # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Enum OrderBy # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Generic OrderBy # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Associated Types

type Rep OrderBy :: Type -> Type #

Methods

from :: OrderBy -> Rep OrderBy x #

to :: Rep OrderBy x -> OrderBy #

Read OrderBy # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Show OrderBy # 
Instance details

Defined in Gargantext.API.Ngrams.Types

FromHttpApiData OrderBy # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToHttpApiData OrderBy # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToParamSchema OrderBy # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Methods

toParamSchema :: forall (t :: SwaggerKind Type). Proxy OrderBy -> ParamSchema t #

ToSchema OrderBy # 
Instance details

Defined in Gargantext.API.Ngrams.Types

HasSwagger (WithCustomErrorScheme GargAPI) # 
Instance details

Defined in Gargantext.API.Routes

type Rep OrderBy # 
Instance details

Defined in Gargantext.API.Ngrams.Types

type Rep OrderBy = D1 ('MetaData "OrderBy" "Gargantext.API.Ngrams.Types" "gargantext-0.0.7.1.5.3-inplace" 'False) ((C1 ('MetaCons "TermAsc" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "TermDesc" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "ScoreAsc" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "ScoreDesc" 'PrefixI 'False) (U1 :: Type -> Type)))

data NgramsTable #

Instances

Instances details
Arbitrary NgramsTable # 
Instance details

Defined in Gargantext.API.Ngrams.Types

FromJSON NgramsTable # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToJSON NgramsTable # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Generic NgramsTable # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Associated Types

type Rep NgramsTable :: Type -> Type #

Show NgramsTable # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Eq NgramsTable # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Ord NgramsTable # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToSchema NgramsTable # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToExpr NgramsTable # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Each NgramsTable NgramsTable NgramsElement NgramsElement #

Question: why these repetition of Type in this instance may you document it please ?

Instance details

Defined in Gargantext.API.Ngrams.Types

HasSwagger (WithCustomErrorScheme GargAPI) # 
Instance details

Defined in Gargantext.API.Routes

type Rep NgramsTable # 
Instance details

Defined in Gargantext.API.Ngrams.Types

type Rep NgramsTable = D1 ('MetaData "NgramsTable" "Gargantext.API.Ngrams.Types" "gargantext-0.0.7.1.5.3-inplace" 'True) (C1 ('MetaCons "NgramsTable" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [NgramsElement])))

data UpdateTableNgramsCharts #

Instances

Instances details
FromJSON UpdateTableNgramsCharts # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToJSON UpdateTableNgramsCharts # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Generic UpdateTableNgramsCharts # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Associated Types

type Rep UpdateTableNgramsCharts :: Type -> Type #

Show UpdateTableNgramsCharts # 
Instance details

Defined in Gargantext.API.Ngrams.Types

Eq UpdateTableNgramsCharts # 
Instance details

Defined in Gargantext.API.Ngrams.Types

ToSchema UpdateTableNgramsCharts # 
Instance details

Defined in Gargantext.API.Ngrams.Types

HasSwagger (WithCustomErrorScheme GargAPI) # 
Instance details

Defined in Gargantext.API.Routes

type Rep UpdateTableNgramsCharts # 
Instance details

Defined in Gargantext.API.Ngrams.Types

type Rep UpdateTableNgramsCharts = D1 ('MetaData "UpdateTableNgramsCharts" "Gargantext.API.Ngrams.Types" "gargantext-0.0.7.1.5.3-inplace" 'False) (C1 ('MetaCons "UpdateTableNgramsCharts" 'PrefixI 'True) (S1 ('MetaSel ('Just "_utn_tab_type") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 TabType) :*: S1 ('MetaSel ('Just "_utn_list_id") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ListId)))