gkg_raw: Function to retrive Data from Google Knowledge Graph API

Description Usage Arguments

View source: R/gkg_raw.R

Description

This function allows you to get the Information for a specific Keyword you enter.

Usage

1
2
gkg_raw(query, token = "AIzaSyDsxs2vKm33doRABnW4JoieK8RrDQvJwds",
  language = "en", limit = 1, types = "", prefix = FALSE)

Arguments

query

character. The keyword you want to get the information for.

token

character. 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

character. The list of language codes (defined in ISO 639) to run the query with. Default is "en".

limit

numeric. Limits the number of entities to be returned. The API-Limit is 20.

types

character. 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

logical. 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.


dschmeh/GoogleKnowledgeGraphR documentation built on May 29, 2019, 10:57 a.m.