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

Adding 'type' to definition references #748

Merged
merged 10 commits into from
Sep 12, 2019
Merged

Adding 'type' to definition references #748

merged 10 commits into from
Sep 12, 2019

Conversation

beckyjackson
Copy link
Contributor

@beckyjackson beckyjackson commented Sep 1, 2019

image

Options for property to use with eco codes:

  • MI:0353 (cross-reference type)
  • dc:type (type)
  • rdfs:comment (comment)
  • IAO:0000232 (curator note)

I went with dc:type for this first pass, but this can always be changed. The definition of cross-reference type (MI:0353) is a little to restrictive in my opinion, because then you wouldn't want to include the 'curator inference' part (just say the type is dictionary, encyclopedia, etc...)

Right now, the reference types are annotations on the DbXref annotations. This is only possible with ROBOT templates right now, so new references would need to be added via templates as follows:

ID Definition Xref Xref Type
ID A IAO:0000115 >A oboInOwl:hasDbXref >>AI dc11:type
DOID:ex1 Some definition url:http://example.com curator inference from dictionary
DOID:ex1 Some definition PMID:123456 curator inference from journal publication

Then running template followed by repair -merge-axiom-annotations true to merge axiom annotations:

robot template \
  --input doid-edit.owl \
  --merge-before \
  --collapse-import-closure false \
  --template template.csv \
repair \
  --merge-axiom-annotations true \
  --output new-doid-edit.owl

The alternative is to have the reference types alongside the DbXrefs, but that may get confusing with multiple references:

image

@beckyjackson beckyjackson changed the title Adding 'type Adding 'type' to definition references Sep 1, 2019
@lschriml
Copy link
Contributor

Hello @sbello -- want to check with you that adding this annotation on the references' database cross reference will not cause a problem for the AGR ??

Thank you,
Lynn

@lschriml
Copy link
Contributor

@beckyjackson -- Hello Becky,
Looks good to me, just need to confirm this will not cause any AGR/MOD conflicts with @sbello.
If it will be OK with those groups, then I will merge the branches.

Cheers,
Lynn

@sbello
Copy link
Collaborator

sbello commented Sep 10, 2019

@beckyjackson Will this additional information make it into the doid.obo or doid-merged.obo files? If this does not make it into the OBO files then I can be confident this won't cause issues for the MODs. If this ends up in the OBO files I will need to check with the SEs.

@lschriml
Copy link
Contributor

lschriml commented Sep 10, 2019 via email

@sbello
Copy link
Collaborator

sbello commented Sep 10, 2019

@lschriml will do

@sbello
Copy link
Collaborator

sbello commented Sep 10, 2019

@beckyjackson Will I need to change the ROBOT template once this is implemented? If so where do I find the new template?

@sierra-moxon
Copy link

sierra-moxon commented Sep 10, 2019

Thanks for the heads up @beckyjackson @lschriml @sbello :) - would it be possible to post an excerpt from the resulting obo file? (I'm a SE at Alliance and ZFIN).

@lschriml
Copy link
Contributor

lschriml commented Sep 10, 2019 via email

@beckyjackson
Copy link
Contributor Author

@sierra-moxon - The resulting OBO file will not include these type references, so it will look exactly the same.

@sbello - The ROBOT template will be slightly different for new terms, as there will be one additional column for these immediately to the right of the definition source (xref) column.

@sierra-moxon
Copy link

@beckyjackson -ok great! thanks. We're planning to prototype moving to the obo-JSON copy of this ontology (when its available, etc...), but at that point, we can certainly adjust to a type column addition. For now, if no changes to obo, we're good. :)

Copy link
Collaborator

@sbello sbello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As the changes won't show up in the OBO files this should not cause any problems for the Alliance or the MODs

@beckyjackson
Copy link
Contributor Author

This PR is failing due to too many messages being printed by ROBOT. I'm looking into this issue now, but it does not have anything to do with the changes made in this PR.

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

Successfully merging this pull request may close these issues.

None yet

4 participants