| Type: | Package | 
| Title: | Retrieve Information from 'Google Knowledge Graph' API | 
| Version: | 0.1.0 | 
| Author: | Daniel Schmeh | 
| Maintainer: | Daniel Schmeh <danielschmeh@gmail.com> | 
| Description: | Allows you to retrieve information from the 'Google Knowledge Graph' API https://www.google.com/intl/bn/insidesearch/features/search/knowledge.html and process it in R in various forms. The 'Knowledge Graph Search' API lets you find entities in the 'Google Knowledge Graph'. The API uses standard 'schema.org' types and is compliant with the 'JSON-LD' specification. | 
| License: | MIT + file LICENSE | 
| Encoding: | UTF-8 | 
| LazyData: | true | 
| RoxygenNote: | 6.0.1.9000 | 
| Depends: | jsonlite, curl | 
| NeedsCompilation: | no | 
| Packaged: | 2018-01-15 14:22:38 UTC; User | 
| Repository: | CRAN | 
| Date/Publication: | 2018-01-15 15:01:32 UTC | 
Function to retrive Data from Google Knowledge Graph API as a Data Frame output
Description
This function allows you to get the Information for a specific Keyword you enter. The output is a Dataframe with the Data retrived by the Google API.
Usage
gkg(query, token = "AIzaSyDsxs2vKm33doRABnW4JoieK8RrDQvJwds",
  language = "en", limit = 1, types = "", prefix = FALSE,
  type_output = TRUE)
Arguments
| query | The keyword you want to get the information for | 
| token | The token for yor Google API Project. Please use your own token if you have a lot of querys. You can find additional informations about the token here: https://developers.google.com/knowledge-graph/prereqs | 
| language | The list of language codes (defined in ISO 639) to run the query with. Default is "en" | 
| limit | Limits the number of entities to be returned. The API-Limit is 20. | 
| types | Restricts returned entities to those of the specified types. For example, you can specify Person (as defined in http://schema.org/Person) to restrict the results to entities representing people. If multiple types are specified, returned entities will contain one or more of these types. Default are all types. | 
| prefix | Enables prefix (initial substring) match against names and aliases of entities. For example, a prefix Jung will match entities and aliases such as Jung, Jungle, and Jung-ho Kang. Default is FALSE. | 
| type_output | In most cases, the API returns more than one type for a keyword. If type_output is set to TRUE, the types are placed in a cell. FALSE returns the list of types in a row. Default is TRUE. gkg() | 
Examples
{
gkg("beer")
}
Function to retrive Data from Google Knowledge Graph API
Description
This function allows you to get the Information for a specific Keyword you enter.
Usage
gkg_raw(query, token = "AIzaSyDsxs2vKm33doRABnW4JoieK8RrDQvJwds",
  language = "en", limit = 1, types = "", prefix = FALSE)
Arguments
| query | The keyword you want to get the information for | 
| token | The token for yor Google API Project. Please use your own token if you have a lot of querys. You can find additional informations about the token here: https://developers.google.com/knowledge-graph/prereqs | 
| language | The list of language codes (defined in ISO 639) to run the query with. Default is "en" | 
| limit | Limits the number of entities to be returned. The API-Limit is 20. | 
| types | Restricts returned entities to those of the specified types. For example, you can specify Person (as defined in http://schema.org/Person) to restrict the results to entities representing people. If multiple types are specified, returned entities will contain one or more of these types. Default are all types. | 
| prefix | Enables prefix (initial substring) match against names and aliases of entities. For example, a prefix Jung will match entities and aliases such as Jung, Jungle, and Jung-ho Kang. Default is FALSE. gkg_raw() | 
Examples
{
gkg_raw("beer")
}