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

Gargantext.Core.Text.Corpus.API

Description

 
Synopsis

Documentation

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))))

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 GetCorpusError #

Constructors

InvalidInputQuery !RawQuery !Text

We couldn't parse the user input query into something meaningful.

ExternalAPIError !ExternalAPIs !ClientError

The external service returned an error.

get #

Arguments

:: ExternalAPIs 
-> Lang

A user-selected language in which documents needs to be retrieved. If the provider doesn't support the search filtered by language, or if the language is not important, the frontend will simply send EN to the backend.

-> RawQuery 
-> Maybe APIKey 
-> Maybe AuthKey 
-> Text 
-> Maybe Limit 
-> IO (Either GetCorpusError (Maybe Integer, ConduitT () HyperdataDocument IO ())) 

Get External API metadata main function