gargantext-0.0.7.1.5.3: Search, map, share
Safe HaskellSafe-Inferred
LanguageHaskell2010

Gargantext.Core.Text.Corpus.Query

Synopsis

Documentation

data Query #

An opaque wrapper around a Query type which can be parsed from a boolean expression like (a AND b) OR c, and which can be interpreted in many ways according to the particular service we are targeting.

Instances

Instances details
Show Query # 
Instance details

Defined in Gargantext.Core.Text.Corpus.Query

Methods

showsPrec :: Int -> Query -> ShowS #

show :: Query -> String #

showList :: [Query] -> ShowS #

opaque

newtype RawQuery #

A raw query, as typed by the user from the frontend.

Constructors

RawQuery 

Fields

Instances

Instances details
Arbitrary RawQuery # 
Instance details

Defined in Gargantext.Core.Text.Corpus.Query

FromJSON RawQuery # 
Instance details

Defined in Gargantext.Core.Text.Corpus.Query

ToJSON RawQuery # 
Instance details

Defined in Gargantext.Core.Text.Corpus.Query

IsString RawQuery # 
Instance details

Defined in Gargantext.Core.Text.Corpus.Query

Show RawQuery # 
Instance details

Defined in Gargantext.Core.Text.Corpus.Query

Eq RawQuery # 
Instance details

Defined in Gargantext.Core.Text.Corpus.Query

FromHttpApiData RawQuery # 
Instance details

Defined in Gargantext.Core.Text.Corpus.Query

ToHttpApiData RawQuery # 
Instance details

Defined in Gargantext.Core.Text.Corpus.Query

ToParamSchema RawQuery # 
Instance details

Defined in Gargantext.Core.Text.Corpus.Query

Methods

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

ToSchema RawQuery # 
Instance details

Defined in Gargantext.Core.Text.Corpus.Query

HasSwagger (WithCustomErrorScheme GargAPI) # 
Instance details

Defined in Gargantext.API.Routes

newtype Limit #

A limit to the number of results we want to retrieve.

Constructors

Limit 

Fields

Instances

Instances details
FromJSON Limit # 
Instance details

Defined in Gargantext.Core.Text.Corpus.Query

ToJSON Limit # 
Instance details

Defined in Gargantext.Core.Text.Corpus.Query

Num Limit # 
Instance details

Defined in Gargantext.Core.Text.Corpus.Query

Show Limit # 
Instance details

Defined in Gargantext.Core.Text.Corpus.Query

Methods

showsPrec :: Int -> Limit -> ShowS #

show :: Limit -> String #

showList :: [Limit] -> ShowS #

Eq Limit # 
Instance details

Defined in Gargantext.Core.Text.Corpus.Query

Methods

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

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

FromHttpApiData Limit # 
Instance details

Defined in Gargantext.Core.Text.Corpus.Query

ToHttpApiData Limit # 
Instance details

Defined in Gargantext.Core.Text.Corpus.Query

ToParamSchema Limit # 
Instance details

Defined in Gargantext.Core.Text.Corpus.Query

Methods

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

ToSchema Limit # 
Instance details

Defined in Gargantext.Core.Text.Corpus.Query

data QueryTerm #

A query term, i.e. a node of the query expression tree which can be either a Gargantext Term (i.e. just a textual value) or something else, like a partial match (i.e. the user is asking to perform a search that would match only a suffix of a word).

parseQuery :: RawQuery -> Either String Query #

Parses an input Text into a Query, reporting an error if it fails.

interpretQuery :: Query -> (BoolExpr [QueryTerm] -> ast) -> ast #

data ExternalAPIs #

Main Types TODO IsidoreAuth

Constructors

OpenAlex 
PubMed 
Arxiv 
HAL 
IsTex 
Isidore 
EPO 

Instances

Instances details
Arbitrary ExternalAPIs # 
Instance details

Defined in Gargantext.API.Admin.Orchestrator.Types

FromJSON ExternalAPIs #

Main Instances

Instance details

Defined in Gargantext.API.Admin.Orchestrator.Types

ToJSON ExternalAPIs # 
Instance details

Defined in Gargantext.API.Admin.Orchestrator.Types

Bounded ExternalAPIs # 
Instance details

Defined in Gargantext.API.Admin.Orchestrator.Types

Enum ExternalAPIs # 
Instance details

Defined in Gargantext.API.Admin.Orchestrator.Types

Generic ExternalAPIs # 
Instance details

Defined in Gargantext.API.Admin.Orchestrator.Types

Associated Types

type Rep ExternalAPIs :: Type -> Type #

Show ExternalAPIs # 
Instance details

Defined in Gargantext.API.Admin.Orchestrator.Types

Eq ExternalAPIs # 
Instance details

Defined in Gargantext.API.Admin.Orchestrator.Types

ToSchema ExternalAPIs # 
Instance details

Defined in Gargantext.API.Admin.Orchestrator.Types

type Rep ExternalAPIs # 
Instance details

Defined in Gargantext.API.Admin.Orchestrator.Types

type Rep ExternalAPIs = D1 ('MetaData "ExternalAPIs" "Gargantext.API.Admin.Orchestrator.Types" "gargantext-0.0.7.1.5.3-inplace" 'False) ((C1 ('MetaCons "OpenAlex" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "PubMed" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Arxiv" 'PrefixI 'False) (U1 :: Type -> Type))) :+: ((C1 ('MetaCons "HAL" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "IsTex" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Isidore" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "EPO" 'PrefixI 'False) (U1 :: Type -> Type))))

Useful for testing