Giter Site home page Giter Site logo

Comments (13)

ciakovx avatar ciakovx commented on June 8, 2024 1

Thanks, it works, I needed to restart my session. I really appreciate your responsiveness, thank you.

from rorcid.

sckott avatar sckott commented on June 8, 2024

was just a warning, these queries all result in 0 results. fixed now to give back an empty data.frame

from rorcid.

ciakovx avatar ciakovx commented on June 8, 2024

Thanks for getting back so quickly. The interesting thing is, when I run these queries, I get data back, do you know why that is?

carberry <- rorcid::orcid(query = 'family-name:carberry AND affiliation-org-name:Wesleyan')
iakovakis <- rorcid::orcid(query = 'family-name:iakovakis AND affiliation-org-name:Oklahoma')

from rorcid.

sckott avatar sckott commented on June 8, 2024

orcid_search() wraps orcid() - but it doesn't allow all possible fields to search on - I just added affiliation_org which maps to affiliation-org-name - so those examples should work now but using affiliation_org instead

you can see what the user facing params map to with rorcid:::field_match_list

from rorcid.

ciakovx avatar ciakovx commented on June 8, 2024

Ah I see. Thanks Scott, that's great. Excellent work on orcid_search; it's far easier. I'm updating my walkthrough now. Much appreciated!

from rorcid.

ciakovx avatar ciakovx commented on June 8, 2024

Sorry to bother you again, but it looks like affiliation_org is operating as an OR, not an AND. Each of the below examples should return a single result, but they are returning 10, 3, and 5 respectively.

carberry <- rorcid::orcid_search(family_name = 'carberry', 
                                 affiliation_org = 'Brown')
iakovakis <- rorcid::orcid_search(family_name = 'iakovakis', 
                                 affiliation_org = 'Oklahoma')
boettiger <- rorcid::orcid_search(family_name = 'boettiger',
                                  affiliation_org = 'California')

from rorcid.

sckott avatar sckott commented on June 8, 2024

hmm, it shouldl be AND. i'm getting 1 row for each of those. did you reinstall from master? if you did, then run it with verbose = TRUE at the end to see what URL is being sent, mine looks like https://pub.orcid.org/v3.0/search?q=family-name%3Aboettiger%20AND%20affiliation-org-name%3ACalifornia&rows=10 (which uses AND)

from rorcid.

ciakovx avatar ciakovx commented on June 8, 2024

It looks like current_inst, current_prim_inst, and past_inst are not supported--and there is not a way to designate these on one's ORCID profile. See https://github.com/ORCID/ORCID-Source/blob/master/orcid-api-web/tutorial/search.md:

The entire ORCID record is indexed and can be searched using basic keyword searching. Search can also be limited to the specific fields listed below:
Affiliations data

  • affiliation-org-name
  • ringgold-org-id
  • grid-org-id

from rorcid.

sckott avatar sckott commented on June 8, 2024

hmmm, that's too bad. I guess we should remove them maybe

from rorcid.

ciakovx avatar ciakovx commented on June 8, 2024

It is too bad because affiliation-org-name searches across all of an individuals listed affiliations (employment, education, invited positions, membership & service) past and present. So it has the potential to return false positives--in other words, one should not use it to get ORCID iDs of all individuals currently at an institution, because it will include those who previously worked there or got their degree from there.

I would find it helpful to add the ringgold-org-id and grid-org-id whenever you have some time, if it's not too much trouble.

from rorcid.

sckott avatar sckott commented on June 8, 2024

opened an issue for that

from rorcid.

ciakovx avatar ciakovx commented on June 8, 2024

Thank you. Also I'm getting an error for the keywords argument: Error: Internal Server Error (HTTP 500). - org.apache.solr.client.solrj.impl.HttpSolrServer.RemoteSolrException Full validation error: undefined field keywords

carberry <- rorcid::orcid_search(family_name = 'carberry',
                                 keywords = 'psychoceramics')

from rorcid.

sckott avatar sckott commented on June 8, 2024

opened an issue for that

from rorcid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.