Copyright | (c) 2015 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.
Request Lenses
sFormat :: Lens' Search FreebaseSearchFormat Source
Structural format of the json response.
sScoring :: Lens' Search FreebaseSearchScoring Source
Relevance scoring algorithm to use.
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.
sSpell :: Lens' Search FreebaseSearchSpell Source
Request 'did you mean' suggestions
sEncode :: Lens' Search FreebaseSearchEncode Source
The encoding of the response. You can use this parameter to enable html encoding.