Skip to content

Commit

Permalink
incorporate CQS edge constraints into templates
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewsu committed Nov 5, 2024
1 parent 9eabfa1 commit dee7275
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 1 deletion.
2 changes: 2 additions & 0 deletions data/templateGroups.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
],
"templates": [
"Chem-treats-DoP.json",
"Chem-applied_to_treat-DoP.json",
"Chem-in_clinical_trials_for-DoP.json",
"Chem-treats-PhenoOfDisease.json",
"Chem-regulates,affects-Gene-biomarker,associated_condition-DoP.json"
]
Expand Down
31 changes: 31 additions & 0 deletions data/templates/Drug-treats-Disease/Chem-applied_to_treat-DoP.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"message": {
"query_graph": {
"nodes": {
"creativeQuerySubject": {
"categories":["biolink:ChemicalEntity"]
},
"creativeQueryObject": {
"categories":["biolink:DiseaseOrPhenotypicFeature"]
}
},
"edges": {
"eA": {
"subject": "creativeQuerySubject",
"object": "creativeQueryObject",
"predicates": [
"biolink:applied_to_treat"
],
"attribute_constraints": [
{
"name": "evidence_count_constraint",
"id": "biolink:evidence_count",
"operator": ">",
"value": 20
}
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"message": {
"query_graph": {
"nodes": {
"creativeQuerySubject": {
"categories":["biolink:ChemicalEntity"]
},
"creativeQueryObject": {
"categories":["biolink:DiseaseOrPhenotypicFeature"]
}
},
"edges": {
"eA": {
"subject": "creativeQuerySubject",
"object": "creativeQueryObject",
"predicates": [
"biolink:applied_to_treat"
],
"attribute_constraints": [
{
"id": "elevate_to_prediction",
"name": "boolean_make_prediction_constraint",
"operator": "==",
"value": "True"
}
]
}
}
}
}
}
4 changes: 3 additions & 1 deletion data/templates/Drug-treats-Disease/Chem-treats-DoP.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
"eA": {
"subject": "creativeQuerySubject",
"object": "creativeQueryObject",
"predicates": ["biolink:treats_or_applied_or_studied_to_treat"]
"predicates": [
"biolink:treats"
]
}
}
}
Expand Down

0 comments on commit dee7275

Please sign in to comment.