gargantext-0.0.4.9.5: Search, map, share
Copyright(c) CNRS 2017-Present
LicenseAGPL + CECILL v3
Maintainerteam@gargantext.org
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
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 :: FlowCmdM env err m => User -> DataText -> TermType Lang -> CorpusId -> Maybe FlowSocialListWith -> (JobLog -> m ()) -> m CorpusId Source #

flow :: (FlowCmdM env err m, FlowCorpus a, MkCorpus c) => Maybe c -> User -> Either CorpusName [CorpusId] -> TermType Lang -> Maybe FlowSocialListWith -> [[a]] -> (JobLog -> m ()) -> m CorpusId Source #

flowCorpusFile :: FlowCmdM env err m => User -> Either CorpusName [CorpusId] -> Limit -> TermType Lang -> FileFormat -> FilePath -> Maybe FlowSocialListWith -> (JobLog -> m ()) -> m CorpusId Source #

flowCorpus :: (FlowCmdM env err m, FlowCorpus a) => User -> Either CorpusName [CorpusId] -> TermType Lang -> Maybe FlowSocialListWith -> [[a]] -> (JobLog -> m ()) -> m CorpusId Source #

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

flowAnnuaire :: FlowCmdM env err m => User -> Either CorpusName [CorpusId] -> TermType Lang -> FilePath -> (JobLog -> m ()) -> m AnnuaireId Source #

insertMasterDocs :: (FlowCmdM env err m, FlowCorpus a, MkCorpus c) => Maybe c -> TermType Lang -> [a] -> m [DocId] Source #

saveDocNgramsWith :: FlowCmdM env err m => ListId -> HashMap ExtractedNgrams (Map NgramsType (Map NodeId Int)) -> m () Source #

getOrMkRoot :: HasNodeError err => User -> Cmd err (UserId, RootId) Source #

data TermType lang Source #

Constructors

Mono 

Fields

Multi 

Fields

MonoMulti 

Fields

Unsupervised 

Fields

Instances

Instances details
Generic (TermType lang) Source # 
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 #

type Rep (TermType lang) Source # 
Instance details

Defined in Gargantext.Core.Text.Terms

type Rep (TermType lang)

data DataOrigin Source #

Instances

Instances details
Eq DataOrigin Source # 
Instance details

Defined in Gargantext.Database.Action.Flow

Generic DataOrigin Source # 
Instance details

Defined in Gargantext.Database.Action.Flow

Associated Types

type Rep DataOrigin :: Type -> Type #

ToJSON DataOrigin Source # 
Instance details

Defined in Gargantext.Database.Action.Flow

FromJSON DataOrigin Source # 
Instance details

Defined in Gargantext.Database.Action.Flow

ToSchema DataOrigin Source # 
Instance details

Defined in Gargantext.Database.Action.Flow

type Rep DataOrigin Source # 
Instance details

Defined in Gargantext.Database.Action.Flow

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

indexAllDocumentsWithPosTag :: FlowCmdM env err m => m () Source #

TODO putelsewhere | Upgrade function Suppose all documents are English (this is the case actually)

Orphan instances