This repository has been archived by the owner on May 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Update to Biolink 3 and add support for qualifiers #549
Comments
1 task
We currently map ontology properties directly to Biolink properties: cam-kp-api/src/main/scala/org/renci/cam/QueryService.scala Lines 814 to 833 in d74f56b
However, in order to support queries, I think we will need to provide support for more complex mappings (see Biolink predicate transformation examples (PDF)). |
Okay, we have a working Biolink 3 instance at https://cam-kp-api-dev.renci.org/1.3.0/docs/index.html?url=docs.yaml#/default/postQuery For example, it accepts the following query: {
"message": {
"query_graph": {
"nodes": {
"gene": {
"categories": [
"biolink:Gene"
],
"ids": [
"NCBIGene:340061"
]
},
"chemical": {
"categories": [
"biolink:ChemicalEntity"
]
}
},
"edges": {
"t_edge": {
"object": "gene",
"subject": "chemical",
"predicates": [
"biolink:affects"
],
"knowledge_type": "inferred",
"qualifier_constraints": [
{
"qualifier_set": [
{
"qualifier_type_id": "biolink:object_aspect_qualifier",
"qualifier_value": "activity_or_abundance"
},
{
"qualifier_type_id": "biolink:object_direction_qualifier",
"qualifier_value": "increased"
}
]
}
]
}
}
}
}
} |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This will need to happen in the pipeline first.
The text was updated successfully, but these errors were encountered: