View source: R/Record_search.R
search_wos | R Documentation |
This function performs an API search on Web Of Science (WOS), taking care of
the authorization steps and query normalization. The user is needed to provide
an API key by accessing https://www.webofknowledge.com with an
authorized account (e.g. access through an academic VPN or proxy). The key can
be found in the URL once the user is authorized. The key has a time limit, so
it will need to be regenerated. The function is a wrapper over
wosr::pull_wos()
and requires the wosr
package.
search_wos( query, year_query = NULL, additional_fields = NULL, api_key = getOption("baysren.wos_api_key"), parallel = TRUE, parse_query = TRUE, ... )
query |
A boolean query with AND/OR/NOT operators, brackets for term grouping and quotation marks for n-grams. |
year_query |
A year based filtering query. See |
additional_fields |
Additional fields to add to the query. Won't be normalized so it must already follow WOS specific syntax. |
api_key |
Necessary to access WOS database. See Details. |
parallel |
Whether to use parallel execution to speed up result collection. Works only on Unix-based systems. |
parse_query |
Whether to normalize the query into WOS specific syntax. If
|
... |
Additional arguments for |
A data frame of records.
# Initial query to be built on domain knowledge. It accepts OR, AND, NOT # boolean operators and round brackets to group terms. query <- '((model OR models OR modeling OR network OR networks) AND (dissemination OR transmission OR spread OR diffusion) AND (nosocomial OR hospital OR "long-term-care" OR "long term care" OR "longterm care" OR "long-term care" OR "healthcare associated") AND (infection OR resistance OR resistant))' # Year filter. The framework converts it to the API-specific format # seamlessly. Common logical comparators can be used, i.e. <, <=, >, >=, # while dashes denotes inclusive date intervals. A single year restricts # results to one year period. year_filter <- "2010-2020" ## Not run: records <- search_wos(query, year_filter) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.