get_query: Generate URLs to search OPS biblios

View source: R/get_query.R View source: R/gen_urls.R

get_queryR Documentation

Generate URLs to search OPS biblios

Description

Generate URLs to search OPS biblios

Generate urls to be fed into get_ops function

Usage

get_query(
  title = NA,
  abstract = NA,
  titab = NA,
  applicant = NA,
  inventor = NA,
  citation = NA,
  pub_num = NA,
  cpc = NA,
  ipc = NA,
  from = NA,
  to = NA,
  with_biblio = FALSE
)

get_query(
  title = NA,
  abstract = NA,
  titab = NA,
  applicant = NA,
  inventor = NA,
  citation = NA,
  pub_num = NA,
  cpc = NA,
  ipc = NA,
  from = NA,
  to = NA,
  with_biblio = FALSE
)

Arguments

title

- Character vector containing string to be searched in the title field

abstract

- Character vector containing string to be searched in the abstract field

titab

- Character vector containing string to be searched in the title or abstract field

applicant

- Character vector containing string to be searched in the applicant field

inventor

- Character vector containing string to be searched in the inventor field

citation

- Character vector containing DOCDB identification to be searched in the citation field

pub_num

- Character vector containing publication number. It can also be used to search patents granted by a specific patent authority, using their country code

cpc

- Character vector containing Cooperative Patent Classification code

ipc

- Character vector containing International Patent Classification code

from

- YYYY or YYYYMMDD, publication date.

to

- YYYY or YYYYMMDD, publication date

with_biblio

- Boolean. If true, the results returns with bibliographic information attached

Details

This function generates a set of URLs with a maximum of 100 results per URL for searching either OPS titles, titles & abstracts, biblios (default) and/or date ranges (publication date). See Details.

This function returns queries that can be provided as inputs to the get_ops function. Remember that the ops accepts only queries made of maximum 20 components or 10 components per field.

Value

prints a query that is ready to be used in the Publication Data Keyword Search endpoint

url

Examples

## Not run: urls <- get_query(title = "pizza", applicant = "IBM", from = 2010, to = 2011)
## Not run: urls <- get_query(title = "pizza", applicant = "IBM", from = 2010, to = 2011)

AlessioNar/Rops documentation built on Sept. 27, 2022, 1:16 a.m.