biothings / biothings_explorer

TRAPI service for BioThings Explorer
https://explorer.biothings.io
Apache License 2.0
10 stars 11 forks source link

update to biolink 2.2.x #265

Closed andrewsu closed 3 years ago

andrewsu commented 3 years ago

Per the weekly Translator email, we need to update to Biolink 2.2.x. There should be no breaking changes so it should be a straightforward update, but needs to be tested.

For reference, #207 tracked update to v2.1.x

colleenXu commented 3 years ago

These are the changes I see from v2.2.0 onward (current version is v2.2.3):

@andrewsu please confirm what we want to do going forward...


Doesn't really affect us:

andrewsu commented 3 years ago

x-bte changes to use "has real world evidence of association with" seems reasonable to me. My guess is that predicate will be used in workflow B queries?

On the new predicate mixins, are you saying that we need new code to query those mixins, similar to how we do predicate expansion in the predicate subclass hierarchy?

colleenXu commented 3 years ago

I'm not sure whether we currently handle predicate mixins...that involves asking Marco?

And the predicate is being used in workflows B and C. I agree that it involves talking to multiomics provider about what operations to change the predicate on...

andrewsu commented 3 years ago

@colleenXu on predicate mixins, do you agree that this only affects queries in which a mixin predicate is directly used in the predicate list? I.e., queries with only non-mixin predicates will not be affected by the new mixin predicates? If yes, are you aware of any demo queries that use mixin predicates? This info would be useful for prioritization...

colleenXu commented 3 years ago

I agree that predicate mixins will only come up when they are directly used.

I am not aware of any demo queries that use mixin predicates right now. I can imagine Workflow A queries that could use them - but I don't know if they will change or not...

andrewsu commented 3 years ago

I created a new issue for mixin predicates here, so let's ignore that aspect from this issue.

In this issue, I think the main things to address are

colleenXu commented 3 years ago

Actually the second thing for "clinical risk kp api" was done already (~ 2 weeks ago). But there are many other issues with clinical risk kp api's x-bte annotations that I'm addressing in a PR here

I'm not sure if other APIs from multiomics provider also need a predicate change...

tokebe commented 3 years ago

Updating the file failed a test on account of a predicate being renamed (test has been updated). I diffed the files to check for anything else that might be relevant, just in case:

colleenXu commented 3 years ago

Pushed to prod server.

I've confirmed that the following queries to clinical risk kp api using the new predicates work: POST to https://api.bte.ncats.io/v1/smartapi/d86a24f6027ffe778f84ba10a7a1861a/query

{
    "message": {
        "query_graph": {
            "edges": {
                "e00": {
                    "subject": "n01",
                    "object": "n00",
                    "predicates": ["biolink:has_real_world_evidence_of_association_with"]
                }
            },
            "nodes": {
                "n00": {
                    "categories": [
                        "biolink:ChemicalEntity"
                    ]
                },
                "n01": {
                    "categories": [
                        "biolink:Disease"
                    ],
                    "ids": [
                        "MONDO:0005301"
                    ]
                }
            }
        }
    }
}
{
    "message": {
        "query_graph": {
            "edges": {
                "e00": {
                    "subject": "n00",
                    "object": "n01",
                    "predicates": ["biolink:associated_with_real_world_evidence"]
                }
            },
            "nodes": {
                "n00": {
                    "categories": [
                        "biolink:ChemicalEntity"
                    ]
                },
                "n01": {
                    "categories": [
                        "biolink:Disease"
                    ],
                    "ids": [
                        "MONDO:0005301"
                    ]
                }
            }
        }
    }
}
colleenXu commented 3 years ago

Closing this issue. Note that biolink model also has mixins that we currently don't support. Tracking that issue here #241 . currently considered low priority since it isn't coming up in Translator queries.