Copyright | (c) CNRS 2017-Present |
---|---|
License | AGPL + CECILL v3 |
Maintainer | team@gargantext.org |
Stability | experimental |
Portability | POSIX |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- runViewAuthorsDoc :: HasDBid NodeType => ContactId -> IsTrash -> Maybe Offset -> Maybe Limit -> Maybe OrderBy -> DBCmd err [FacetDoc]
- runViewDocuments :: (HasDBid NodeType, HasNodeError err) => CorpusId -> IsTrash -> Maybe Offset -> Maybe Limit -> Maybe OrderBy -> Maybe Text -> Maybe Text -> DBCmd err [FacetDoc]
- viewDocuments :: CorpusId -> ListId -> IsTrash -> NodeTypeId -> Maybe Text -> Maybe Text -> Select FacetDocAgg
- runCountDocuments :: (HasDBid NodeType, HasNodeError err) => CorpusId -> IsTrash -> Maybe Text -> Maybe Text -> DBCmd err Int
- filterWith :: (SqlOrd date, SqlOrd title, SqlOrd category, SqlOrd score, hyperdata ~ SqlJsonb) => Maybe Offset -> Maybe Limit -> Maybe OrderBy -> Select (Facet id (Field date) (Field title) (Field hyperdata) (FieldNullable category) ngramCount (FieldNullable score)) -> Select (Facet id (Field date) (Field title) (Field hyperdata) (FieldNullable category) ngramCount (FieldNullable score))
- type Category = Int
- type Score = Double
- type Title = Text
- data Pair i l = Pair {}
- data Facet id created title hyperdata category ngramCount score = FacetDoc {
- facetDoc_id :: id
- facetDoc_created :: created
- facetDoc_title :: title
- facetDoc_hyperdata :: hyperdata
- facetDoc_category :: category
- facetDoc_ngramCount :: ngramCount
- facetDoc_score :: score
- type FacetDoc = Facet NodeId UTCTime Title HyperdataDocument (Maybe Category) (Maybe Double) (Maybe Score)
- type FacetDocRead = Facet (Field SqlInt4) (Field SqlTimestamptz) (Field SqlText) (Field SqlJsonb) (FieldNullable SqlInt4) (FieldNullable SqlFloat8) (FieldNullable SqlFloat8)
- data FacetPaired id date hyperdata score = FacetPaired {
- _fp_id :: id
- _fp_date :: date
- _fp_hyperdata :: hyperdata
- _fp_score :: score
- type FacetPairedRead = FacetPaired (Field SqlInt4) (Field SqlTimestamptz) (Field SqlJsonb) (Field SqlInt4)
- data OrderBy
Documentation
runViewAuthorsDoc :: HasDBid NodeType => ContactId -> IsTrash -> Maybe Offset -> Maybe Limit -> Maybe OrderBy -> DBCmd err [FacetDoc] #
runViewDocuments :: (HasDBid NodeType, HasNodeError err) => CorpusId -> IsTrash -> Maybe Offset -> Maybe Limit -> Maybe OrderBy -> Maybe Text -> Maybe Text -> DBCmd err [FacetDoc] #
viewDocuments :: CorpusId -> ListId -> IsTrash -> NodeTypeId -> Maybe Text -> Maybe Text -> Select FacetDocAgg #
runCountDocuments :: (HasDBid NodeType, HasNodeError err) => CorpusId -> IsTrash -> Maybe Text -> Maybe Text -> DBCmd err Int #
filterWith :: (SqlOrd date, SqlOrd title, SqlOrd category, SqlOrd score, hyperdata ~ SqlJsonb) => Maybe Offset -> Maybe Limit -> Maybe OrderBy -> Select (Facet id (Field date) (Field title) (Field hyperdata) (FieldNullable category) ngramCount (FieldNullable score)) -> Select (Facet id (Field date) (Field title) (Field hyperdata) (FieldNullable category) ngramCount (FieldNullable score)) #
TODO after demo data Facet id date hyperdata score = FacetDoc { facetDoc_id :: id , facetDoc_date :: date , facetDoc_hyperdata :: hyperdata , facetDoc_score :: score } deriving (Show, Generic)
Instances
data Facet id created title hyperdata category ngramCount score #
FacetDoc | |
|
Instances
Arbitrary FacetDoc # | Mock and Quickcheck instances |
ToSchema FacetDoc # | Documentation instance |
Defined in Gargantext.Database.Query.Facet.Types | |
HasSwagger (WithCustomErrorScheme GargAPI) # | |
Defined in Gargantext.API.Routes | |
(ProductProfunctor p, Default p a1_0 a1_1, Default p a2_0 a2_1, Default p a3_0 a3_1, Default p a4_0 a4_1, Default p a5_0 a5_1, Default p a6_0 a6_1, Default p a7_0 a7_1) => Default p (Facet a1_0 a2_0 a3_0 a4_0 a5_0 a6_0 a7_0) (Facet a1_1 a2_1 a3_1 a4_1 a5_1 a6_1 a7_1) # | Database instances |
Defined in Gargantext.Database.Query.Facet.Types | |
(FromJSON id, FromJSON created, FromJSON title, FromJSON hyperdata, FromJSON category, FromJSON ngramCount, FromJSON score) => FromJSON (Facet id created title hyperdata category ngramCount score) # | JSON instance |
(ToJSON id, ToJSON created, ToJSON title, ToJSON hyperdata, ToJSON category, ToJSON ngramCount, ToJSON score) => ToJSON (Facet id created title hyperdata category ngramCount score) # | |
Defined in Gargantext.Database.Query.Facet.Types toJSON :: Facet id created title hyperdata category ngramCount score -> Value # toEncoding :: Facet id created title hyperdata category ngramCount score -> Encoding # toJSONList :: [Facet id created title hyperdata category ngramCount score] -> Value # toEncodingList :: [Facet id created title hyperdata category ngramCount score] -> Encoding # | |
Generic (Facet id created title hyperdata category ngramCount score) # | |
Defined in Gargantext.Database.Query.Facet.Types | |
(Show id, Show created, Show title, Show hyperdata, Show category, Show ngramCount, Show score) => Show (Facet id created title hyperdata category ngramCount score) # | |
type Rep (Facet id created title hyperdata category ngramCount score) # | |
Defined in Gargantext.Database.Query.Facet.Types type Rep (Facet id created title hyperdata category ngramCount score) = D1 ('MetaData "Facet" "Gargantext.Database.Query.Facet.Types" "gargantext-0.0.7.1.5.3-inplace" 'False) (C1 ('MetaCons "FacetDoc" 'PrefixI 'True) ((S1 ('MetaSel ('Just "facetDoc_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 id) :*: (S1 ('MetaSel ('Just "facetDoc_created") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 created) :*: S1 ('MetaSel ('Just "facetDoc_title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 title))) :*: ((S1 ('MetaSel ('Just "facetDoc_hyperdata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 hyperdata) :*: S1 ('MetaSel ('Just "facetDoc_category") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 category)) :*: (S1 ('MetaSel ('Just "facetDoc_ngramCount") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ngramCount) :*: S1 ('MetaSel ('Just "facetDoc_score") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 score))))) |
type FacetDoc = Facet NodeId UTCTime Title HyperdataDocument (Maybe Category) (Maybe Double) (Maybe Score) #
type FacetDocRead = Facet (Field SqlInt4) (Field SqlTimestamptz) (Field SqlText) (Field SqlJsonb) (FieldNullable SqlInt4) (FieldNullable SqlFloat8) (FieldNullable SqlFloat8) #
data FacetPaired id date hyperdata score #
FacetPaired | |
|
Instances
(ProductProfunctor p, Default p a1_0 a1_1, Default p a2_0 a2_1, Default p a3_0 a3_1, Default p a4_0 a4_1) => Default p (FacetPaired a1_0 a2_0 a3_0 a4_0) (FacetPaired a1_1 a2_1 a3_1 a4_1) # | |
Defined in Gargantext.Database.Query.Facet.Types def :: p (FacetPaired a1_0 a2_0 a3_0 a4_0) (FacetPaired a1_1 a2_1 a3_1 a4_1) # | |
(Arbitrary id, Arbitrary date, Arbitrary hyperdata, Arbitrary score) => Arbitrary (FacetPaired id date hyperdata score) # | |
Defined in Gargantext.Database.Query.Facet.Types arbitrary :: Gen (FacetPaired id date hyperdata score) # shrink :: FacetPaired id date hyperdata score -> [FacetPaired id date hyperdata score] # | |
(FromJSON id, FromJSON date, FromJSON hyperdata, FromJSON score) => FromJSON (FacetPaired id date hyperdata score) # | |
Defined in Gargantext.Database.Query.Facet.Types parseJSON :: Value -> Parser (FacetPaired id date hyperdata score) # parseJSONList :: Value -> Parser [FacetPaired id date hyperdata score] # | |
(ToJSON id, ToJSON date, ToJSON hyperdata, ToJSON score) => ToJSON (FacetPaired id date hyperdata score) # | |
Defined in Gargantext.Database.Query.Facet.Types toJSON :: FacetPaired id date hyperdata score -> Value # toEncoding :: FacetPaired id date hyperdata score -> Encoding # toJSONList :: [FacetPaired id date hyperdata score] -> Value # toEncodingList :: [FacetPaired id date hyperdata score] -> Encoding # | |
Generic (FacetPaired id date hyperdata score) # | |
Defined in Gargantext.Database.Query.Facet.Types type Rep (FacetPaired id date hyperdata score) :: Type -> Type # from :: FacetPaired id date hyperdata score -> Rep (FacetPaired id date hyperdata score) x # to :: Rep (FacetPaired id date hyperdata score) x -> FacetPaired id date hyperdata score # | |
(Show id, Show date, Show hyperdata, Show score) => Show (FacetPaired id date hyperdata score) # | |
Defined in Gargantext.Database.Query.Facet.Types showsPrec :: Int -> FacetPaired id date hyperdata score -> ShowS # show :: FacetPaired id date hyperdata score -> String # showList :: [FacetPaired id date hyperdata score] -> ShowS # | |
(ToSchema id, ToSchema date, ToSchema hyperdata, ToSchema score, Typeable id, Typeable date, Typeable hyperdata, Typeable score) => ToSchema (FacetPaired id date hyperdata score) # | |
Defined in Gargantext.Database.Query.Facet.Types declareNamedSchema :: Proxy (FacetPaired id date hyperdata score) -> Declare (Definitions Schema) NamedSchema # | |
type Rep (FacetPaired id date hyperdata score) # | |
Defined in Gargantext.Database.Query.Facet.Types type Rep (FacetPaired id date hyperdata score) = D1 ('MetaData "FacetPaired" "Gargantext.Database.Query.Facet.Types" "gargantext-0.0.7.1.5.3-inplace" 'False) (C1 ('MetaCons "FacetPaired" 'PrefixI 'True) ((S1 ('MetaSel ('Just "_fp_id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 id) :*: S1 ('MetaSel ('Just "_fp_date") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 date)) :*: (S1 ('MetaSel ('Just "_fp_hyperdata") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 hyperdata) :*: S1 ('MetaSel ('Just "_fp_score") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 score)))) |
type FacetPairedRead = FacetPaired (Field SqlInt4) (Field SqlTimestamptz) (Field SqlJsonb) (Field SqlInt4) #
DateAsc | |
DateDesc | |
TitleAsc | |
TitleDesc | |
NgramCountDesc | |
NgramCountAsc | |
ScoreDesc | |
ScoreAsc | |
SourceAsc | |
SourceDesc | |
TagAsc | |
TagDesc |