Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexposed Fields - Coinventors #16

Open
gonzalovizcardo opened this issue Oct 24, 2019 · 1 comment
Open

Unexposed Fields - Coinventors #16

gonzalovizcardo opened this issue Oct 24, 2019 · 1 comment

Comments

@gonzalovizcardo
Copy link

I believe this issue is similar to this one but for a different group:

#7

When I run this I get the list of inventor and coinventor fields

get_fields(endpoint = "inventors",
groups = c("coinventors", "inventors"))

But when I actually pass it into the searc_pv function it throws this error:

Error: Bad field(s): coinventor_city, coinventor_country, coinventor_first_name, coinventor_first_seen_date, coinventor_id, coinventor_last_name, coinventor_last_seen_date, coinventor_lastknown_city, coinventor_lastknown_country, coinventor_lastknown_latitude, coinventor_lastknown_location_id, coinventor_lastknown_longitude, coinventor_lastknown_state, coinventor_latitude, coinventor_location_id, coinventor_longitude, coinventor_num_patents_for_inventor, coinventor_total_num_patents, inventor_key_id

@crew102
Copy link
Collaborator

crew102 commented Oct 24, 2019

You're probably using the patents endpoint when you should be using the inventors endpoint. Try this:

search_pv(
  query = '{"inventor_last_name": "Whitney"}',
  endpoint = "inventors",
  fields = get_fields("inventors", c("inventors", "coinventors"))
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants