src/KnowledgeGraph.php
public function search($query, $type = null, $lang = null, $limit = null)
  {
    $results = $this->client->request([
      'query' => $query,
      'types' => $type,
      'languages' => $lang,
      'limit' => $limit
    ]);

    return $results;
  }
public function search($query, $type = null, $lang = null, $limit = null)
  {
    $results = $this->client->request([
      'query' => $query,
      'types' => $type,
      'languages' => $lang,
      'limit' => $limit
    ]);

    return $results;
  }
public function search ( $ query , $ type = null , $ lang = null , $ limit = null ) { $ results = $ this -> client -> request ( [ 'query' => $ query , 'types' => $ type , 'languages' => $ lang , 'limit' => $ limit ] ) ; return $ results ; }
Search by entity name

@param string $query
@param string $type Restricts returned results to those of the specified types. (e.g. "Person")
@param string $lang Language code (ISO 639) to run the query with (e.g. "es")
@param string $limit Limits the number of results to be returned. (default: 20)

@return \Illuminate\Support\Collection Return collection of \KnowledgeGraph\SearchResult
Search by entity name