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

Send data to APICURON (placeholder issue) #1013

Open
kimrutherford opened this issue Aug 15, 2022 · 14 comments
Open

Send data to APICURON (placeholder issue) #1013

kimrutherford opened this issue Aug 15, 2022 · 14 comments

Comments

@kimrutherford
Copy link
Member

I don't think we have an issue specifically for this: we need to send curation data to APICURON.

While implementing pombase/website#525, I wrote the code to collect the basic curation stats for the annotation from Canto. So that's a start.

We now need to:

  • collect those stats for the other annotation especially HTP annotation that can be associated with a community curator
  • work out how to send the data using the APICURON API

We need to add more detail to that list. :-)

@ValWood
Copy link
Member

ValWood commented Aug 17, 2022

Yes we will speak with them again at some point soon -ish. MAybe OCt/Nov ish. Let's get other stuff out of the way first.

@kimrutherford
Copy link
Member Author

I've just emailed them to ask how to make "Terms" on apicuron.org as described in the "Defining your Terms" section of the docs. I can't find the dialog on the dev site.

@kimrutherford
Copy link
Member Author

I've just emailed them to ask how to make "Terms"

Turns out there was a bug that they've helped me work around.

kimrutherford added a commit to pombase/pombase-chado-json that referenced this issue Oct 3, 2023
kimrutherford added a commit to pombase/pombase-config that referenced this issue Oct 3, 2023
kimrutherford added a commit to pombase/pombase-chado-json that referenced this issue Oct 3, 2023
@kimrutherford
Copy link
Member Author

I've changed the nightly Chado processing code to make a file for testing the APICURON API. After a few false starts I've been able to submit the file to the dev APICURON server.

The test file contains a record for each time a user has managed to get a publication/session approved. Each record looks like:

    {
      "activity_term": "publication_curated",
      "timestamp": "2022-02-24T11:54:36.000Z",
      "curator_orcid": "0000-0003-4148-4606",
      "entity_uri": "https://www.pombase.org/reference/PMID:15964794"
    }

Let's talk about this on Zoom/Skype. I'd like to see what happens when you try to log in to the dev server.


Note to self, example of how to post Curl using:

curl -X 'POST' \
  'https://dev.apicuron.org/api/reports/bulk' \
  -H 'accept: */*' \
  -H 'version: 2' \
  -H 'authorization: bearer ...' \
  -H 'Content-Type: multipart/form-data' \
  -F 'delete_all=pombase' \                                   
  -F 'reports=@apicuron_data.json;type=application/json' 

@kimrutherford
Copy link
Member Author

Current status (2023-10-09): I've reported a few bugs via the APICURON Slack (on 2023-10-5) and I'm waiting for replies.

kimrutherford added a commit to pombase/pombase-legacy that referenced this issue Oct 17, 2023
@kimrutherford
Copy link
Member Author

Current status (2023-10-09): I've reported a few bugs via the APICURON Slack (on 2023-10-5) and I'm waiting for replies.

Those bugs are fixed.

@kimrutherford
Copy link
Member Author

As an experiment, I've added a command at the very end of the nightly load script to attempt to send our latest data to APICURON. I've put it at the end of the script so that if there are any problems it won't cause other load steps to be missed.

I'll check on Wednesday to see if that works OK.

Note that the data is still very minimal: just records of which ORCID curated which paper.

Val, when you have time (maybe next week?) we should try to get you logged in on the dev APICURON server to see how it looks to you.

@ValWood
Copy link
Member

ValWood commented Oct 17, 2023

Yes, let's do this next week.

@kimrutherford
Copy link
Member Author

I've put it at the end of the script so that if there are any problems it won't cause other load steps to be missed.

The load script fell over just before trying to upload to APICURON because I made a typo implementing #886. It's fixed now and I'll check the APICURON upload on Thursday morning.

@kimrutherford
Copy link
Member Author

I've put it at the end of the script so that if there are any problems it won't cause other load steps to be missed.

That's working now so the PomBase data in the dev APICURON is now updated nightly.

@kimrutherford
Copy link
Member Author

APICURON gives has a graph of contributions:

image

kimrutherford added a commit to pombase/pombase-chado-json that referenced this issue Oct 20, 2023
@kimrutherford
Copy link
Member Author

I've added a second APICURON "Activity Term" for when a user submits a HTP dataset. I want to see how it looks in the interface if a user has two different types of record. I've changed the code the generates the JSON too.

The new term ID is "provided_dataset". The existing term ID is "publication_curated". These are just terms for testing on the dev server. When we move other to the main apicuron.org we can rename or replace them.

kimrutherford added a commit to pombase/pombase-legacy that referenced this issue Oct 22, 2023
@kimrutherford
Copy link
Member Author

kimrutherford commented Oct 23, 2023

From the call last week:

  • export the a new type approved_session so that admins get some recognition

(Edit) See also:

kimrutherford added a commit to pombase/pombase-legacy that referenced this issue Oct 24, 2023
kimrutherford added a commit to pombase/pombase-chado-json that referenced this issue Oct 24, 2023
Store in ReferenceDetails and write to APICURON JSON file.

Refs pombase/pombase-chado#1013
kimrutherford added a commit that referenced this issue Oct 24, 2023
@kimrutherford
Copy link
Member Author

export the a new type approved_session so that admins get some recognition

The approver records are now sent to the dev APICURON too. We now have three "activity terms":

  • publication_curated (session curated in Canto)
  • provided_dataset (PHAF file)
  • approved_publication (approved a session in Canto)

I think that's quite a good set for this project.

kimrutherford added a commit that referenced this issue Oct 25, 2023
Add new "Importer" Moose Role with code for recording the
annotation_file_curator pubprop.

Refs #1013
kimrutherford added a commit that referenced this issue Jan 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants