* $kgsearchService = new Google\Service\Kgsearch(...); * $entities = $kgsearchService->entities; * */ class Entities extends \Google\Service\Resource { /** * 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 (entities.search) * * @param array $optParams Optional parameters. * * @opt_param string ids 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=B * @opt_param bool indent Enables indenting of json results. * @opt_param string languages The list of language codes (defined in ISO 693) * to run the query with, e.g. 'en'. * @opt_param int limit Limits the number of entities to be returned. * @opt_param bool prefix Enables prefix match against names and aliases of * entities * @opt_param string query The literal query string for search. * @opt_param string types 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. * @return SearchResponse */ public function search($optParams = []) { $params = []; $params = array_merge($params, $optParams); return $this->call('search', [$params], SearchResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Entities::class, 'Google_Service_Kgsearch_Resource_Entities');