Description Usage Arguments Examples
View source: R/dimensions_query.R
Make a basic query request to the Dimensions Analytics API
1 | dimensions_query(query = NULL, format = "list")
|
query |
(character) String containing a raw Dimensions Search Language query. |
format |
(character) The format in which data should be returned. One of "list" or "json" |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | # The most basic query: search and return all publications
dimensions_query(query = "search publications return publications")
# Return results in JSON format
dimensions_query(query = "search publications return publications",
format = "json")
# Dimensions automatically limits results to 20 records. Add a "limit" clause
to increase the number of returned results
dimensions_query(query = "search publications return publications limit 100")
# Search for a specific DOI. Note that quotation marks surrounding DOIs must
be escaped by placing a backwards slash (\) in front of the quotation marks.
You may find the `paste` and `paste0` functions helpful to build longer query
strings.
my_query <- paste0("search publications",
"where doi = \"10.3389/frma.2018.00023\"",
"return publications")
dimensions_query(query = my_query)
A full overview of query syntax can be found in the [Dimensions Search
Language](https://docs.dimensions.ai/dsl/) documentation.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.