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.Database.Action.Flow

Description

  • - TODO-ACCESS:
  • - check userId CanFillUserCorpus userCorpusId
  • - check masterUserId CanFillMasterCorpus masterCorpusId
  • - TODO-ACCESS: check uId CanInsertDoc pId && checkDocType nodeType
  • - TODO-EVENTS: InsertedNodes
Synopsis

Documentation

flowDataText :: forall env err m. (DbCmd' env err m, HasNodeStory env err m, MonadLogger m, HasNLPServer env, HasTreeError err, HasValidationError err, MonadJobStatus m) => User -> DataText -> TermType Lang -> CorpusId -> Maybe FlowSocialListWith -> JobHandle m -> m CorpusId #

flow :: forall env err m a c. (DbCmd' env err m, HasNodeStory env err m, MonadLogger m, HasNLPServer env, HasTreeError err, HasValidationError err, FlowCorpus a, MkCorpus c, MonadJobStatus m) => Maybe c -> MkCorpusUser -> TermType Lang -> Maybe FlowSocialListWith -> (Integer, ConduitT () a m ()) -> JobHandle m -> m CorpusId #

flowCorpusFile :: (DbCmd' env err m, HasNodeStory env err m, MonadLogger m, HasNLPServer env, HasTreeError err, HasValidationError err, MonadJobStatus m) => MkCorpusUser -> Limit -> TermType Lang -> FileType -> FileFormat -> FilePath -> Maybe FlowSocialListWith -> JobHandle m -> m CorpusId #

flowCorpus :: (DbCmd' env err m, HasNodeStory env err m, MonadLogger m, HasNLPServer env, HasTreeError err, HasValidationError err, FlowCorpus a, MonadJobStatus m) => MkCorpusUser -> TermType Lang -> Maybe FlowSocialListWith -> (Integer, ConduitT () a m ()) -> JobHandle m -> m CorpusId #

TODO improve the needed type to create/update a corpus (For now, Either is enough)

flowCorpusUser :: (HasNodeError err, HasValidationError err, HasNLPServer env, HasTreeError err, HasNodeStory env err m, MkCorpus c) => Lang -> User -> CorpusId -> ListId -> Maybe c -> Maybe FlowSocialListWith -> m CorpusId #

flowAnnuaire :: (DbCmd' env err m, HasNodeStory env err m, MonadLogger m, HasNLPServer env, HasTreeError err, HasValidationError err, MonadJobStatus m) => MkCorpusUser -> TermType Lang -> FilePath -> JobHandle m -> m AnnuaireId #

insertMasterDocs :: (DbCmd' env err m, HasNodeError err, FlowCorpus a, MkCorpus c) => NLPServerConfig -> Maybe c -> TermType Lang -> [a] -> m [DocId] #

addDocumentsToHyperCorpus :: (DbCmd' env err m, HasNodeError err, FlowCorpus document, MkCorpus corpus) => NLPServerConfig -> Maybe corpus -> TermType Lang -> CorpusId -> [document] -> m [DocId] #

Given a list of corpus documents and a NodeId identifying the CorpusId, adds the given documents to the corpus. Returns the Ids of the inserted documents.

reIndexWith :: HasNodeStory env err m => CorpusId -> ListId -> NgramsType -> Set ListType -> m () #

Re-index documents of a corpus with ngrams in the list

data TermType lang #

Constructors

Mono 

Fields

Multi 

Fields

MonoMulti 

Fields

Unsupervised 

Fields

Instances

Instances details
Generic (TermType lang) # 
Instance details

Defined in Gargantext.Core.Text.Terms

Associated Types

type Rep (TermType lang) :: Type -> Type #

Methods

from :: TermType lang -> Rep (TermType lang) x #

to :: Rep (TermType lang) x -> TermType lang #

Show lang => Show (TermType lang) # 
Instance details

Defined in Gargantext.Core.Text.Terms

Methods

showsPrec :: Int -> TermType lang -> ShowS #

show :: TermType lang -> String #

showList :: [TermType lang] -> ShowS #

type Rep (TermType lang) # 
Instance details

Defined in Gargantext.Core.Text.Terms

type Rep (TermType lang) = D1 ('MetaData "TermType" "Gargantext.Core.Text.Terms" "gargantext-0.0.7.1.5.3-inplace" 'False) ((C1 ('MetaCons "Mono" 'PrefixI 'True) (S1 ('MetaSel ('Just "_tt_lang") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 lang)) :+: C1 ('MetaCons "Multi" 'PrefixI 'True) (S1 ('MetaSel ('Just "_tt_lang") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 lang))) :+: (C1 ('MetaCons "MonoMulti" 'PrefixI 'True) (S1 ('MetaSel ('Just "_tt_lang") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 lang)) :+: C1 ('MetaCons "Unsupervised" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_tt_lang") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 lang) :*: S1 ('MetaSel ('Just "_tt_windowSize") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int)) :*: (S1 ('MetaSel ('Just "_tt_ngramsSize") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "_tt_model") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe (Tries Token ())))))))

data DataOrigin #

Instances

Instances details
FromJSON DataOrigin # 
Instance details

Defined in Gargantext.Database.Action.Flow.Types

ToJSON DataOrigin # 
Instance details

Defined in Gargantext.Database.Action.Flow.Types

Generic DataOrigin # 
Instance details

Defined in Gargantext.Database.Action.Flow.Types

Associated Types

type Rep DataOrigin :: Type -> Type #

Eq DataOrigin # 
Instance details

Defined in Gargantext.Database.Action.Flow.Types

ToSchema DataOrigin # 
Instance details

Defined in Gargantext.Database.Action.Flow.Types

type Rep DataOrigin # 
Instance details

Defined in Gargantext.Database.Action.Flow.Types

type Rep DataOrigin = D1 ('MetaData "DataOrigin" "Gargantext.Database.Action.Flow.Types" "gargantext-0.0.7.1.5.3-inplace" 'False) (C1 ('MetaCons "InternalOrigin" 'PrefixI 'True) (S1 ('MetaSel ('Just "_do_api") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ExternalAPIs)) :+: C1 ('MetaCons "ExternalOrigin" 'PrefixI 'True) (S1 ('MetaSel ('Just "_do_api") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ExternalAPIs)))