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.KnowledgeGraphSearch
Contents
Description
Searches the Google Knowledge Graph for entities.
Synopsis
- knowledgeGraphSearchService :: ServiceConfig
- type KnowledgeGraphSearchAPI = EntitiesSearchResource
- module Network.Google.Resource.Kgsearch.Entities.Search
- data SearchResponse
- searchResponse :: SearchResponse
- srContext :: Lens' SearchResponse (Maybe JSONValue)
- srItemListElement :: Lens' SearchResponse [JSONValue]
- srType :: Lens' SearchResponse (Maybe JSONValue)
- data Xgafv
Service Configuration
knowledgeGraphSearchService :: ServiceConfig Source #
Default request referring to version v1
of the Knowledge Graph Search API. This contains the host and root path used as a starting point for constructing service requests.
API Declaration
type KnowledgeGraphSearchAPI = EntitiesSearchResource Source #
Represents the entirety of the methods and resources available for the Knowledge Graph Search API service.
Resources
kgsearch.entities.search
Types
SearchResponse
data SearchResponse Source #
Response message includes the context and a list of matching results which contain the detail of associated entities.
See: searchResponse
smart constructor.
Instances
searchResponse :: SearchResponse Source #
Creates a value of SearchResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
srContext :: Lens' SearchResponse (Maybe JSONValue) Source #
The local context applicable for the response. See more details at http://www.w3.org/TR/json-ld/#context-definitions.
srItemListElement :: Lens' SearchResponse [JSONValue] Source #
The item list of search results.
srType :: Lens' SearchResponse (Maybe JSONValue) Source #
The schema type of top-level JSON-LD object, e.g. ItemList.
Xgafv
V1 error format.
Instances
Enum Xgafv Source # | |
Eq Xgafv Source # | |
Data Xgafv Source # | |
Defined in Network.Google.KnowledgeGraphSearch.Types.Sum Methods gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Xgafv -> c Xgafv # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Xgafv # dataTypeOf :: Xgafv -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Xgafv) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Xgafv) # gmapT :: (forall b. Data b => b -> b) -> Xgafv -> Xgafv # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Xgafv -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Xgafv -> r # gmapQ :: (forall d. Data d => d -> u) -> Xgafv -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> Xgafv -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> Xgafv -> m Xgafv # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Xgafv -> m Xgafv # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Xgafv -> m Xgafv # | |
Ord Xgafv Source # | |
Read Xgafv Source # | |
Show Xgafv Source # | |
Generic Xgafv Source # | |
Hashable Xgafv Source # | |
ToJSON Xgafv Source # | |
FromJSON Xgafv Source # | |
FromHttpApiData Xgafv Source # | |
ToHttpApiData Xgafv Source # | |
Defined in Network.Google.KnowledgeGraphSearch.Types.Sum Methods toUrlPiece :: Xgafv -> Text # toEncodedUrlPiece :: Xgafv -> Builder # toHeader :: Xgafv -> ByteString # toQueryParam :: Xgafv -> Text # | |
type Rep Xgafv Source # | |