Invalid predicates sent to Retriever
Retriever Sentry has registered a handful of validation errors in the past week or so, all of them one of two invalid predicates on ARAX queries:
- biolink:increases_activity_of
- biolink:has_real_world_evidence_of_association_with
This isn't a problem for Retriever, but it's probably preventing ARAX from obtaining some amount of information, so I figured I'd raise it.
OK thanks @tokebe for the heads-up.
I checked the biolink-model.yaml file and indeed, these two predicates do not seem to be valid in the current Biolink metamodel.
I'm not sure where this error is coming from. A log snippet would be helpful in tracking down the original source of these invalid predicates.
But I can certainly check RTX-KG2.Neither of these predicates is in the current RTX-KG2 predicate-remap.yaml file, as shown here:
https://github.com/RTXteam/RTX-KG2/blob/master/maps/predicate-remap.yaml
Could the biolink:increases_activity_of be coming from this unit test module?
https://github.com/RTXteam/RTX/blob/0c76c9938b1ee993105f5544dacc3289a5798e6c/code/ARAX/test/test_ARAX_workflows.py#L751
Could the biolink:has_real_world_evidence_of_association_with be coming from this unit test module?
https://github.com/RTXteam/RTX/blob/0c76c9938b1ee993105f5544dacc3289a5798e6c/code/ARAX/test/test_ARAX_overlay.py#L365
Also not seeing these predicates in the latest KG2.10.3 edge file:
sramsey-laptop:big-files sramsey$ grep 'biolink:increases_activity_of' kg2.10.3-conflated-edges.jsonl
sramsey-laptop:big-files sramsey$ grep 'biolink:has_real_world_evidence_of_association_with' kg2.10.3-conflated-edges.jsonl
@saramsey Apologies, is this the wrong repo? These are coming from ARAX Dev queries being sent to Retriever, presumably in the handling of creative queries coming from the ARS/UI
@tokebe I think you reported the issue in the correct repo. I was just doing some checks to see if maybe these predicates (in a root cause sense) were coming from the RTX-KG2 system. But, so far, it appears more likely this issue is coming (in a root cause sense) from ARAX. Thank you!
Looks like @chunyuma was the last person to edit that line of code in the unit test. Tentatively assigning to him (@dkoslicki can change it if I have misdirected the issue assignment).
@tokebe can you provide a concrete example or two of this issue (along with associated queries)? With the different environments and pre-/post-refactor stuff, that would help us narrow down where to look.
I think the biolink:has_real_world_evidence_of_association_with is from a decision from one of previous Translator mini-hackathon (see issue1610), where all the COHD predicates were required to be replaced with has real world evidence of association with.
The biolink:increases_activity_of edges might come from the xDTD creative mode results that were trained on the old KG2 (e.g. KG2.10.0 if I recall correctly). If KG2 new version has removed this predicate, when we re-train xDTD on KG, we should not have this predicate anymore.
@chunyuma Thank you for your reply. It looks like in the Biolink 3.0 major release update two years ago, the biolink:has_real_world_evidence_of_association_with got dropped. Please see this screen-capped excerpt from the Biolink 3.0 migration guide:
https://github.com/biolink/biolink-model/blob/2be8761511a810a05cb93e3cc6fbff3d89f54999/src/docs/Migration_3.0_Guide.md?plain=1#L175
Thanks @saramsey for letting me know this predicate has been depreciated in the Biolink 3.0.
So @saramsey and @dkoslicki, do you think it is suitable to use biolink:correlated_with or biolink:associated_with to replace biolink:has_real_world_evidence_of_association_with for COHD predicates?
Since these are things like paired concept frequencies, co-occurrence frequencies, and the like, probably associated_with is the best bet @chunyuma , but happy to hear others' thoughts if they think differently.
For concepts in COHD that co-occur in the clinical record, I concur with @dkoslicki -- biolink:associated_with seems appropriate. For concepts in the clinical record, correlated_with doesn't seem so ideal, since usually "correlated with" implies a relationship between two ordinal or continuous numerical variables (not categorical). I think?
Attached are two of the most recent responses saved in Retriever. Retriever doesn't preserve the entire query message, just the query graph and parameters, so unfortunately there may be identifying information missing.
`increases_activity_of` example
{
"message": {
"query_graph": {
"nodes": {
"n2": {
"ids": null,
"categories": ["biolink:ChemicalEntity"],
"set_interpretation": "BATCH",
"constraints": [],
"member_ids": [],
"is_set": true
},
"n1": {
"ids": [
"NCBIGene:54498",
"NCBIGene:3383",
"NCBIGene:10202",
"NCBIGene:51164",
"NCBIGene:9134",
"NCBIGene:27178",
"UMLS:C0017337",
"NCBIGene:2736",
"NCBIGene:10422",
"NCBIGene:5340",
"UMLS:C1244811",
"UMLS:C1126727",
"NCBIGene:671",
"NCBIGene:5742",
"NCBIGene:1511",
"UMLS:C0067899",
"UMLS:C1250540",
"NCBIGene:79989",
"NCBIGene:51297",
"NCBIGene:3689",
"NCBIGene:7040",
"NCBIGene:372",
"NCBIGene:59307",
"NCBIGene:1803",
"NCBIGene:7311",
"NCBIGene:5657",
"NCBIGene:959",
"UMLS:C0056889",
"NCBIGene:4982",
"NCBIGene:1080",
"NCBIGene:9370",
"UMLS:C0055363",
"UMLS:C0036002",
"NCBIGene:1773",
"NCBIGene:8140",
"NCBIGene:339345",
"NCBIGene:2064",
"NCBIGene:847",
"NCBIGene:1906",
"NCBIGene:5126",
"NCBIGene:4319",
"UMLS:C1965685",
"UMLS:C1577249",
"UMLS:C0794225",
"UMLS:C0017362",
"NCBIGene:5309",
"NCBIGene:10963",
"NCBIGene:3162",
"UMLS:C3210896",
"NCBIGene:1811",
"UMLS:C0033684",
"UMLS:C3210895",
"UMLS:C0872881",
"NCBIGene:5009",
"NCBIGene:6690",
"NCBIGene:1360",
"NCBIGene:857",
"NCBIGene:59341",
"UMLS:C1576610",
"NCBIGene:7052"
],
"categories": ["biolink:Protein", "biolink:Gene"],
"set_interpretation": "BATCH",
"constraints": [],
"member_ids": [],
"is_set": true
}
},
"edges": {
"e1": {
"subject": "n2",
"object": "n1",
"knowledge_type": null,
"predicates": ["biolink:increases_activity_of"],
"attribute_constraints": [],
"qualifier_constraints": []
}
}
},
"knowledge_graph": {
"nodes": {},
"edges": {}
},
"results": []
},
"biolink_version": "4.3.2",
"schema_version": "1.6.0",
"workflow": null,
"parameters": { "tiers": [0] },
"submitter": "infores:arax",
"job_id": "d165ac2e3d644de5ae66fc75f4f088e6",
"status": "QueryNotTraversable",
"description": "Query terminated due to validation errors. See logs for more details.",
"logs": [
{
"level": "INFO",
"message": "Begin processing job d165ac2e3d644de5ae66fc75f4f088e6 for client infores:arax.",
"timestamp": "2026-02-26T05:19:36.686+00:00"
},
{
"level": "WARNING",
"message": "Node `n2`: skipping unknown fields (is_set)",
"timestamp": "2026-02-26T05:19:36.688+00:00"
},
{
"level": "WARNING",
"message": "Node `n1`: skipping unknown fields (is_set)",
"timestamp": "2026-02-26T05:19:36.689+00:00"
},
{
"level": "ERROR",
"message": "Query validation encountered 1 error. Error logs to follow:",
"timestamp": "2026-02-26T05:19:36.692+00:00"
},
{
"level": "ERROR",
"message": "Validation Error: Edge `e1` has invalid predicates: ['biolink:increases_activity_of']",
"timestamp": "2026-02-26T05:19:36.696+00:00"
},
{
"level": "ERROR",
"message": "Due to the above errors, your query terminates.",
"timestamp": "2026-02-26T05:19:36.699+00:00"
}
],
"response_url": "http://dev.retriever.biothings.io/response/d165ac2e3d644de5ae66fc75f4f088e6"
}
`has_real_world_evidence_of_association_with`
{
"message": {
"query_graph": {
"nodes": {
"n2": {
"ids": null,
"categories": ["biolink:ChemicalEntity"],
"set_interpretation": "BATCH",
"constraints": [],
"member_ids": [],
"is_set": true
},
"n0": {
"ids": ["MONDO:0009061"],
"categories": [
"biolink:PhenotypicFeature",
"biolink:Disease",
"biolink:DiseaseOrPhenotypicFeature"
],
"set_interpretation": "BATCH",
"constraints": [],
"member_ids": [],
"is_set": false
}
},
"edges": {
"e2": {
"subject": "n2",
"object": "n0",
"knowledge_type": null,
"predicates": ["biolink:has_real_world_evidence_of_association_with"],
"attribute_constraints": [],
"qualifier_constraints": [],
"exclude": true
}
}
},
"knowledge_graph": {
"nodes": {},
"edges": {}
},
"results": []
},
"biolink_version": "4.3.2",
"schema_version": "1.6.0",
"workflow": null,
"parameters": { "tiers": [0] },
"submitter": "infores:arax",
"job_id": "8de40610796c47c8ad80b62f14e2546e",
"status": "QueryNotTraversable",
"description": "Query terminated due to validation errors. See logs for more details.",
"logs": [
{
"level": "INFO",
"message": "Begin processing job 8de40610796c47c8ad80b62f14e2546e for client infores:arax.",
"timestamp": "2026-02-26T05:19:36.452+00:00"
},
{
"level": "WARNING",
"message": "Edge `e2`: skipping unknown fields (exclude)",
"timestamp": "2026-02-26T05:19:36.462+00:00"
},
{
"level": "WARNING",
"message": "Node `n2`: skipping unknown fields (is_set)",
"timestamp": "2026-02-26T05:19:36.464+00:00"
},
{
"level": "WARNING",
"message": "Node `n0`: skipping unknown fields (is_set)",
"timestamp": "2026-02-26T05:19:36.465+00:00"
},
{
"level": "ERROR",
"message": "Query validation encountered 1 error. Error logs to follow:",
"timestamp": "2026-02-26T05:19:36.469+00:00"
},
{
"level": "ERROR",
"message": "Validation Error: Edge `e2` has invalid predicates: ['biolink:has_real_world_evidence_of_association_with']",
"timestamp": "2026-02-26T05:19:36.473+00:00"
},
{
"level": "ERROR",
"message": "Due to the above errors, your query terminates.",
"timestamp": "2026-02-26T05:19:36.477+00:00"
}
],
"response_url": "http://dev.retriever.biothings.io/response/8de40610796c47c8ad80b62f14e2546e"
}
Ah, I see! So @chunyuma has taken care of the has_real_world_evidence_of_association_with edges. For the increases_activity_of, this is an xCRG (creative up/down regulates) issue, since it hasn't been re-trained in quite a while.
We do have a long-standing open issue to fix xCRG #2048. Perhaps this will be the impetus for us to fix it. @tokebe how high of priority is this? Could a temporary work-around be to discard such edges (either on our or your end)? Or is a true fix needed STAT?
@dkoslicki This isn't a showstopper; Retriever simply fails the query in validation and returns no results. These are happening rarely enough that it's probably not ruining ARAX's response quality. Up to you if you want to add a workaround on your end.
Thanks Willow, let's just wait until we fix xCRG properly then
Are there any updates on this? At this point the vast majority of errors Retriever reports to Sentry are ARAX-sent invalid predicate queries. It's still not a showstopper or something that's causing significant Retriever difficulty, but it's to the tune of about 6.5k invalid queries per 24h window, so ARAX is really losing out on a lot of information.
*The above appears exaggerated due to a quirk of Sentry, Retriever makes ~3 error logs per invalid query (assuming 1 validation error) and each is counted as an error by Sentry, so the value is roughly tripled)
We (mostly @venkataseshtej ) are working on this at: https://github.com/Translator-CATRAX/shepherd/tree/xcrg-lookup-mvp. We are aiming to have a fix for this (and essentially all MVP2 related feedback issues), in a few week's time.