| 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 |
Network.Google.Resource.Kgsearch.Entities.Search
Description
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.
- type EntitiesSearchResource = "v1" :> ("entities:search" :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "prefix" Bool :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParams "types" Text :> (QueryParams "ids" Text :> (QueryParams "languages" Text :> (QueryParam "indent" Bool :> (QueryParam "bearer_token" Text :> (QueryParam "query" Text :> (QueryParam "limit" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] SearchResponse))))))))))))))))
- entitiesSearch :: EntitiesSearch
- data EntitiesSearch
- esXgafv :: Lens' EntitiesSearch (Maybe Text)
- esUploadProtocol :: Lens' EntitiesSearch (Maybe Text)
- esPrefix :: Lens' EntitiesSearch (Maybe Bool)
- esPp :: Lens' EntitiesSearch 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)
- esBearerToken :: Lens' EntitiesSearch (Maybe Text)
- esQuery :: Lens' EntitiesSearch (Maybe Text)
- esLimit :: Lens' EntitiesSearch (Maybe Int32)
- esCallback :: Lens' EntitiesSearch (Maybe Text)
REST Resource
type EntitiesSearchResource = "v1" :> ("entities:search" :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "prefix" Bool :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParams "types" Text :> (QueryParams "ids" Text :> (QueryParams "languages" Text :> (QueryParam "indent" Bool :> (QueryParam "bearer_token" Text :> (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).
esIds :: Lens' EntitiesSearch [Text] Source #
The list of entity id to be used for search instead of query string.
esLanguages :: Lens' EntitiesSearch [Text] Source #
The list of language codes (defined in ISO 693) to run the query with, e.g. 'en'.
esBearerToken :: Lens' EntitiesSearch (Maybe Text) Source #
OAuth bearer token.
esCallback :: Lens' EntitiesSearch (Maybe Text) Source #
JSONP