Skip to content

add query constrains to the the query #34

@gloriachin

Description

@gloriachin

example query format:
{
"parameters": {"tiers": [0], "timeout": -1},
"submitter": "trapi-testing-tools",
"message": {
"query_graph": {
"nodes": {
"n0": {"ids": ["MONDO:0030010", "MONDO:0011766", "MONDO:0009890"]},
"n1": {},
},
"edges": {
"e0": {
"subject": "n0",
"object": "n1",
"predicates": ["biolink:has_phenotype"],
"attribute_constraints": [
{
"id": "biolink:has_total",
"name": "total value must be greater than 2",
"operator": ">",
"value": 2,
},
{
"id": "biolink:has_total",
"name": "total value must not be greater than 4",
"operator": ">",
"value": 4,
"not": True,
},
],
}
},
}
},
}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions