gogol-freebasesearch-0.1.0: Google Freebase Search SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Method.Freebase.Search

Contents

Description

Search Freebase open data.

See: Freebase Search Reference for freebase.search.

Synopsis

REST Resource

type SearchMethod = ("freebase" :> ("v1" :> ("search" :> (QueryParams "without" Text :> (QueryParam "cursor" (Textual Int32) :> (QueryParams "with" Text :> (QueryParams "domain" Text :> (QueryParam "format" FreebaseSearchFormat :> (QueryParam "help" FreebaseSearchHelp :> (QueryParams "lang" Text :> (QueryParam "indent" Bool :> (QueryParam "output" Text :> (QueryParam "query" Text :> (QueryParam "scoring" FreebaseSearchScoring :> (QueryParam "limit" (Textual Int32) :> (QueryParams "filter" Text :> (QueryParam "mql_output" Text :> (QueryParams "mid" Text :> (QueryParams "type" Text :> (QueryParam "stemmed" Bool :> (QueryParam "exact" Bool :> (QueryParam "spell" FreebaseSearchSpell :> (QueryParam "as_of_time" Text :> (QueryParam "encode" FreebaseSearchEncode :> (QueryParam "prefixed" Bool :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ()))))))))))))))))))))))))))) :<|> ("freebase" :> ("v1" :> ("search" :> (QueryParams "without" Text :> (QueryParam "cursor" (Textual Int32) :> (QueryParams "with" Text :> (QueryParams "domain" Text :> (QueryParam "format" FreebaseSearchFormat :> (QueryParam "help" FreebaseSearchHelp :> (QueryParams "lang" Text :> (QueryParam "indent" Bool :> (QueryParam "output" Text :> (QueryParam "query" Text :> (QueryParam "scoring" FreebaseSearchScoring :> (QueryParam "limit" (Textual Int32) :> (QueryParams "filter" Text :> (QueryParam "mql_output" Text :> (QueryParams "mid" Text :> (QueryParams "type" Text :> (QueryParam "stemmed" Bool :> (QueryParam "exact" Bool :> (QueryParam "spell" FreebaseSearchSpell :> (QueryParam "as_of_time" Text :> (QueryParam "encode" FreebaseSearchEncode :> (QueryParam "prefixed" Bool :> (QueryParam "callback" Text :> (QueryParam "alt" AltMedia :> Get '[OctetStream] Stream))))))))))))))))))))))))))) Source #

A resource alias for freebase.search method which the Search request conforms to.

Creating a Request

search :: Search Source #

Creates a value of Search with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data Search Source #

Search Freebase open data.

See: search smart constructor.

Instances

Eq Search Source # 

Methods

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

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

Data Search Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Search -> c Search #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Search #

toConstr :: Search -> Constr #

dataTypeOf :: Search -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c Search) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Search) #

gmapT :: (forall b. Data b => b -> b) -> Search -> Search #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Search -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Search -> r #

gmapQ :: (forall d. Data d => d -> u) -> Search -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Search -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Search -> m Search #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Search -> m Search #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Search -> m Search #

Show Search Source # 
Generic Search Source # 

Associated Types

type Rep Search :: * -> * #

Methods

from :: Search -> Rep Search x #

to :: Rep Search x -> Search #

GoogleRequest Search Source # 

Associated Types

type Rs Search :: * #

type Scopes Search :: [Symbol] #

GoogleRequest (MediaDownload Search) Source # 
type Rep Search Source # 
type Rep Search = D1 (MetaData "Search" "Network.Google.Method.Freebase.Search" "gogol-freebasesearch-0.1.0-FR0oowm1SYAGv2oea1aZqt" False) (C1 (MetaCons "Search'" PrefixI True) ((:*:) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_sWithout") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_sCursor") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int32))))) ((:*:) (S1 (MetaSel (Just Symbol "_sWith") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) ((:*:) (S1 (MetaSel (Just Symbol "_sDomain") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_sFormat") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 FreebaseSearchFormat))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_sHelp") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe FreebaseSearchHelp))) ((:*:) (S1 (MetaSel (Just Symbol "_sLang") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_sIndent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))))) ((:*:) (S1 (MetaSel (Just Symbol "_sOutput") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_sQuery") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_sScoring") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 FreebaseSearchScoring)))))) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_sLimit") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Textual Int32))) ((:*:) (S1 (MetaSel (Just Symbol "_sFilter") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_sMqlOutput") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) (S1 (MetaSel (Just Symbol "_sMid") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) ((:*:) (S1 (MetaSel (Just Symbol "_sType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_sStemmed") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_sExact") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) ((:*:) (S1 (MetaSel (Just Symbol "_sSpell") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 FreebaseSearchSpell)) (S1 (MetaSel (Just Symbol "_sAsOfTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) (S1 (MetaSel (Just Symbol "_sEncode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 FreebaseSearchEncode)) ((:*:) (S1 (MetaSel (Just Symbol "_sPrefixed") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))) (S1 (MetaSel (Just Symbol "_sCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))))))
type Scopes Search Source # 
type Scopes Search = [] Symbol
type Rs Search Source # 
type Rs Search = ()
type Scopes (MediaDownload Search) Source # 
type Rs (MediaDownload Search) Source # 

Request Lenses

sWithout :: Lens' Search [Text] Source #

A rule to not match against.

sCursor :: Lens' Search (Maybe Int32) Source #

The cursor value to use for the next page of results.

sWith :: Lens' Search [Text] Source #

A rule to match against.

sDomain :: Lens' Search [Text] Source #

Restrict to topics with this Freebase domain id.

sFormat :: Lens' Search FreebaseSearchFormat Source #

Structural format of the json response.

sHelp :: Lens' Search (Maybe FreebaseSearchHelp) Source #

The keyword to request help on.

sLang :: Lens' Search [Text] Source #

The code of the language to run the query with. Default is 'en'.

sIndent :: Lens' Search (Maybe Bool) Source #

Whether to indent the json results or not.

sOutput :: Lens' Search (Maybe Text) Source #

An output expression to request data from matches.

sQuery :: Lens' Search (Maybe Text) Source #

Query term to search for.

sScoring :: Lens' Search FreebaseSearchScoring Source #

Relevance scoring algorithm to use.

sLimit :: Lens' Search Int32 Source #

Maximum number of results to return.

sFilter :: Lens' Search [Text] Source #

A filter to apply to the query.

sMqlOutput :: Lens' Search (Maybe Text) Source #

The MQL query to run againist the results to extract more data.

sMid :: Lens' Search [Text] Source #

A mid to use instead of a query.

sType :: Lens' Search [Text] Source #

Restrict to topics with this Freebase type id.

sStemmed :: Lens' Search (Maybe Bool) Source #

Query on stemmed names and aliases. May not be used with prefixed.

sExact :: Lens' Search (Maybe Bool) Source #

Query on exact name and keys only.

sSpell :: Lens' Search FreebaseSearchSpell Source #

Request 'did you mean' suggestions

sAsOfTime :: Lens' Search (Maybe Text) Source #

A mql as_of_time value to use with mql_output queries.

sEncode :: Lens' Search FreebaseSearchEncode Source #

The encoding of the response. You can use this parameter to enable html encoding.

sPrefixed :: Lens' Search (Maybe Bool) Source #

Prefix match against names and aliases.

sCallback :: Lens' Search (Maybe Text) Source #

JS method name for JSONP callbacks.