-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add interactive mode #5
Comments
crazy idea -- if it was a bot -- it could have presented those options as an issue (or just part of the PR description) with
for choices, so we could just select the one we want to add (or not)...
and then monitor for some |
This is a cool idea, although it would probably need to be a separate action from the main con/tributors (I'm not sure how one GitHub repo can serve more than one). I think to start wouldn't it be more reasonable to make an actually interactive mode, to run on the command line, and ask the user to choose from a list? In terms of metadata, it's not trivial to just list all the names /affiliations, because the initial request just returns orcids, and a follow up request shows metadata. So if we find 30 results, that means 30 calls to get all of the detailed metadata and then prompt the user. Is that a reasonable thing to do? I think it's just as easy to see the list, and then copy paste the identifiers into a URL to look carefully at the records. In practice just the name and affiliation isn't enough - a lot of users just have a name and you need to use papers, etc. to actually figure out the affiliation. |
@yarikoptic this won't work because here is the metadata that we get back: [{'orcid-identifier': {'uri': 'https://orcid.org/0000-0001-9374-7098',
'path': '0000-0001-9374-7098',
'host': 'orcid.org'}},
{'orcid-identifier': {'uri': 'https://orcid.org/0000-0001-9750-2514',
'path': '0000-0001-9750-2514',
'host': 'orcid.org'}},
{'orcid-identifier': {'uri': 'https://orcid.org/0000-0003-3181-8561',
'path': '0000-0003-3181-8561',
'host': 'orcid.org'}},
{'orcid-identifier': {'uri': 'https://orcid.org/0000-0003-0925-2012',
'path': '0000-0003-0925-2012',
'host': 'orcid.org'}}] And the API works to look up based on metadata, but you can't just get full metadata for any orcid (it only works for your own). So we could add an interactive mode to ask the user to select an orcid (and they would need to still open the browser to do it) or we could keep as is and give them the list, and then assume they are skilled at opening a text file and copy pasting the entry. |
rright, according to https://orcid.org/organizations/integrators/API it would require "Basic Member API" to "Search/retrieve member-subscriber data Subject to permissions granted by iD holders" and according to https://orcid.org/about/membership "Standard (single legal entity): US$5,150 " (- some discounts) which is quite obnoxious IMHO. I would have probably paid ~100$ to support/use ... but hey -- Dartmouth is a member without any contact information :-(. I will inquire. If I can get a token I could use, then I will see what it would return! |
Awesome! Yes please let me know and I can update here to support it, if it's something we could reasonably do. |
uff, ok - looked at https://pub.orcid.org/v3.0/#!/Development_Public_API_v3.0/viewRecordv3 and it seems you do not even need any TOKEN to access public records. So, as long as you have (a candidate) orcid id already, it seems to possible to retrieve an entire public record, e.g. $> curl --silent -X GET --header 'Accept: application/json' 'https://pub.orcid.org/v3.0/0000-0003-3456-2493' | jq . > /tmp/myorcid.json
$> grep email /tmp/myorcid.json
"verified-email": true,
"verified-primary-email": true
"emails": {
"email": [
"email": "[email protected]",
"path": "/0000-0003-3456-2493/email" from which you could display name, affiliation(s), etc. It seems no token is even needed for basic search:
|
okay so let's say that we do this - and that we get a result of N=400 for some other names query. Then we would do 400 other requests just to show the user a list? :/ |
so why did we need token at all? It seems to be doing quite good job for me as well:
for Michael Hanke it brings some false positives etc, actually not even sure if real one among them -- good example where showing possibly emails etc would be of help to disambiguate. The question is though -- why needed to do all the API token dance? ;) |
note: doesn't tollerate unicode well ;)
|
Good question - I never got it to work without the token! Let me give that a try. |
Yep that works! The difference is that you are using expanded-search and not regular search, which I had never tried. I'll update the current PR to do this, and also add interactive mode since we have the metadata available. |
No description provided.
The text was updated successfully, but these errors were encountered: