Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Search Freebase open data.
See: Freebase Search Reference for freebase.search
.
- 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)))))))))))))))))))))))))))
- search :: Search
- data Search
- sWithout :: Lens' Search [Text]
- sCursor :: Lens' Search (Maybe Int32)
- sWith :: Lens' Search [Text]
- sDomain :: Lens' Search [Text]
- sFormat :: Lens' Search FreebaseSearchFormat
- sHelp :: Lens' Search (Maybe FreebaseSearchHelp)
- sLang :: Lens' Search [Text]
- sIndent :: Lens' Search (Maybe Bool)
- sOutput :: Lens' Search (Maybe Text)
- sQuery :: Lens' Search (Maybe Text)
- sScoring :: Lens' Search FreebaseSearchScoring
- sLimit :: Lens' Search Int32
- sFilter :: Lens' Search [Text]
- sMqlOutput :: Lens' Search (Maybe Text)
- sMid :: Lens' Search [Text]
- sType :: Lens' Search [Text]
- sStemmed :: Lens' Search (Maybe Bool)
- sExact :: Lens' Search (Maybe Bool)
- sSpell :: Lens' Search FreebaseSearchSpell
- sAsOfTime :: Lens' Search (Maybe Text)
- sEncode :: Lens' Search FreebaseSearchEncode
- sPrefixed :: Lens' Search (Maybe Bool)
- sCallback :: Lens' Search (Maybe Text)
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
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:
Search Freebase open data.
See: search
smart constructor.
Eq Search Source # | |
Data Search Source # | |
Show Search Source # | |
Generic Search Source # | |
GoogleRequest Search Source # | |
GoogleRequest (MediaDownload Search) Source # | |
type Rep Search Source # | |
type Scopes Search Source # | |
type Rs Search Source # | |
type Scopes (MediaDownload Search) Source # | |
type Rs (MediaDownload Search) Source # | |
Request Lenses
sLang :: Lens' Search [Text] Source #
The code of the language to run the query with. Default is 'en'.
sMqlOutput :: Lens' Search (Maybe Text) Source #
The MQL query to run againist the results to extract more data.
sStemmed :: Lens' Search (Maybe Bool) Source #
Query on stemmed names and aliases. May not be used with prefixed.
sAsOfTime :: Lens' Search (Maybe Text) Source #
A mql as_of_time value to use with mql_output queries.