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 |
Searches Knowledge Graph for entities that match the constraints. A list of matched entities will be returned in response, which will be in JSON-LD format and compatible with http://schema.org
See: Knowledge Graph Search API Reference for kgsearch.entities.search
.
Synopsis
- type EntitiesSearchResource = "v1" :> ("entities:search" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "prefix" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParams "types" Text :> (QueryParams "ids" Text :> (QueryParams "languages" Text :> (QueryParam "indent" Bool :> (QueryParam "query" Text :> (QueryParam "limit" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] SearchResponse))))))))))))))
- entitiesSearch :: EntitiesSearch
- data EntitiesSearch
- esXgafv :: Lens' EntitiesSearch (Maybe Xgafv)
- esUploadProtocol :: Lens' EntitiesSearch (Maybe Text)
- esPrefix :: Lens' EntitiesSearch (Maybe Bool)
- esAccessToken :: Lens' EntitiesSearch (Maybe Text)
- esUploadType :: Lens' EntitiesSearch (Maybe Text)
- esTypes :: Lens' EntitiesSearch [Text]
- esIds :: Lens' EntitiesSearch [Text]
- esLanguages :: Lens' EntitiesSearch [Text]
- esIndent :: Lens' EntitiesSearch (Maybe Bool)
- esQuery :: Lens' EntitiesSearch (Maybe Text)
- esLimit :: Lens' EntitiesSearch (Maybe Int32)
- esCallback :: Lens' EntitiesSearch (Maybe Text)
REST Resource
type EntitiesSearchResource = "v1" :> ("entities:search" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "prefix" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParams "types" Text :> (QueryParams "ids" Text :> (QueryParams "languages" Text :> (QueryParam "indent" Bool :> (QueryParam "query" Text :> (QueryParam "limit" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] SearchResponse)))))))))))))) Source #
A resource alias for kgsearch.entities.search
method which the
EntitiesSearch
request conforms to.
Creating a Request
entitiesSearch :: EntitiesSearch Source #
Creates a value of EntitiesSearch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data EntitiesSearch Source #
Searches Knowledge Graph for entities that match the constraints. A list of matched entities will be returned in response, which will be in JSON-LD format and compatible with http://schema.org
See: entitiesSearch
smart constructor.
Instances
Request Lenses
esUploadProtocol :: Lens' EntitiesSearch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
esPrefix :: Lens' EntitiesSearch (Maybe Bool) Source #
Enables prefix match against names and aliases of entities
esAccessToken :: Lens' EntitiesSearch (Maybe Text) Source #
OAuth access token.
esUploadType :: Lens' EntitiesSearch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
esTypes :: Lens' EntitiesSearch [Text] Source #
Restricts returned entities with these types, e.g. Person (as defined in http://schema.org/Person). If multiple types are specified, returned entities will contain one or more of these types.
esIds :: Lens' EntitiesSearch [Text] Source #
The list of entity id to be used for search instead of query string. To specify multiple ids in the HTTP request, repeat the parameter in the URL as in ...?ids=A&ids=B
esLanguages :: Lens' EntitiesSearch [Text] Source #
The list of language codes (defined in ISO 693) to run the query with, e.g. 'en'.
esCallback :: Lens' EntitiesSearch (Maybe Text) Source #
JSONP