Description Usage Arguments Value query parameter options resulttype parameter options References Examples
Europe PMC utilities
1 2 3 4 5 6 7 8 9 10 11 12 | eupmc_search(
query,
resulttype = "lite",
synonym = FALSE,
per_page = 25,
cursorMark = "*",
...
)
eupmc_fields(...)
eupmc_xml(id, ...)
|
query |
(character) Search terms. Required. See Details |
resulttype |
(character) The result type can either be idlist, core or lite. This parameter determines the fields returned by XML and JSON formats, but it has no effect on the DC format. See Details. |
synonym |
(boolean) Synonym searches are not made by default
(Default: |
per_page |
(integer) Number of records to return. Max: 1000. Default: 25 |
cursorMark |
(character) cursor string, default: |
... |
curl options passed on to crul::HttpClient |
id |
A single Europe PMC article identifier, begins with "PMC", followed by numbers, e.g., "PMC3257301" |
sort |
(character) The default sort order is relevance. Specify the sort field and sort order. This parameter provides "asc" or "desc" order for every single-valued field: P_PDATE_D, AUTH_FIRST, CITED etc. For example sorting by CITED in ascending order: CITED asc |
eupmc_search
returns a list with results. eupmc_fields
returns
a data.frame. eupmc_xml
returns an object of class xml_document
query
parameter optionsa keyword or combination of keywords (e.g. HPV virus).
a phrase with enclosing speech marks (e.g. "human malaria").
a fielded search (e.g. auth:stoehr). Available search fields are listed in the Appendix 1 of the Reference Guide or can be retrieved using the fields module of the API.
a specific publication (e.g. ext_id:781840 src:med) Specify ext_id as the article identifier, and src as the source database. List of the data sources can be found on the help pages or in section 3 of the Reference Guide.
resulttype
parameter optionsidlist - returns a list of IDs and sources for the given search terms
lite - returns key metadata for the given search terms; this is the default value if the parameter is unspecified.
core - returns full metadata for a given publication ID; including abstract, full text links, and MeSH terms.
https://europepmc.org/RestfulWebService
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Not run:
# search
eupmc_search(query = 'ecology')
eupmc_search(query = 'human malaria')
eupmc_search(query = '"human malaria"')
eupmc_search(query = 'auth:stoehr')
eupmc_search(query = 'journal:pnas')
eupmc_search(query = 'journal:pnas')
eupmc_search(query = 'ext_id:781840 src:med')
eupmc_search(query = 'ext_id:IND43783977 src:agr')
# list indexed search fields
x <- eupmc_fields()
NROW(x)
head(x)
# get full text XML
eupmc_xml('PMC3257301')
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.