<ADD APP DESCRIPTION HERE>
Examples of the Trapi Query, Response, and Meta Knowledge Graph Objects that this app supports.
Click to view json example
{
"message": {
"query_graph": {
"nodes": {
"n0": {
"ids": [
"<ADD BIOLINK CURIE HERE>",
"<ADD BIOLINK CURIE HERE>"
],
"categories": [
"<ADD BIOLINK ENTITY TYPE HERE>",
"<ADD BIOLINK ENTITY TYPE HERE>"
],
"is_set": <add boolean here>,
"constraints": [
{
"id": "<ADD BIOLINK CURIE HERE>",
"name": "<ADD HUMAN READABLE NAME FOR THE ID HERE>",
"not": <add boolean here>,
"operator": "<ADD AN OPERATOR HERE>",
"value": [
"<ADD ATTRIBUTE VALUE HERE>",
"<ADD ATTRIBUTE VALUE HERE>"
],
"unit_id": [
"<ADD UNIT_ID FOR VALUE FIELD HERE>",
"<ADD UNIT_ID FOR VALUE FIELD HERE>"
],
"unit_name": [
"<ADD HUMAN READABLE NAME FOR THE VALUE FIELD HERE>",
"<ADD HUMAN READABLE NAME FOR THE VALUE FIELD HERE>"
]
}
]
},
"n1": {
"ids": [
"<ADD BIOLINK CURIE HERE>",
"<ADD BIOLINK CURIE HERE>"
],
"categories": [
"<ADD BIOLINK ENTITY TYPE HERE>",
"<ADD BIOLINK ENTITY TYPE HERE>"
],
"is_set": <add boolean here>,
"constraints": [
{
"id": "<ADD BIOLINK CURIE HERE>",
"name": "<ADD HUMAN READABLE NAME FOR THE ID HERE>",
"not": <add boolean here>,
"operator": "<ADD AN OPERATOR HERE>",
"value": [
"<ADD ATTRIBUTE VALUE HERE>",
"<ADD ATTRIBUTE VALUE HERE>"
],
"unit_id": [
"<ADD UNIT_ID FOR VALUE FIELD HERE>",
"<ADD UNIT_ID FOR VALUE FIELD HERE>"
],
"unit_name": [
"<ADD HUMAN READABLE NAME FOR THE VALUE FIELD HERE>",
"<ADD HUMAN READABLE NAME FOR THE VALUE FIELD HERE>"
]
}
]
},
},
"edges": {
"e0": {
"predicates": [
"<ADD BIOLINK PREDICATE HERE>",
"<ADD BIOLINK PREDICATE HERE>"
],
"subject": "n0",
"object": "n1",
"constraints": [
{
"id": "<ADD BIOLINK CURIE HERE>",
"name": "<ADD HUMAN READABLE NAME FOR THE ID HERE>",
"not": false,
"operator": "<ADD AN OPERATOR HERE>",
"value": [
"<ADD ATTRIBUTE VALUE HERE>",
"<ADD ATTRIBUTE VALUE HERE>"
],
"unit_id": [
"<ADD UNIT_ID FOR VALUE FIELD HERE>",
"<ADD UNIT_ID FOR VALUE FIELD HERE>"
],
"unit_name": [
"<ADD HUMAN READABLE NAME FOR THE VALUE FIELD HERE>",
"<ADD HUMAN READABLE NAME FOR THE VALUE FIELD HERE>"
]
}
]
}
}
},
"knowledge_graph": {},
"results": {}
}
}
Click to view json example
{
"message": {
"query_graph": {
"nodes": {
"n0": {
"ids": [
"<ADD BIOLINK CURIE HERE>",
"<ADD BIOLINK CURIE HERE>"
],
"categories": [
"<ADD BIOLINK ENTITY TYPE HERE>",
"<ADD BIOLINK ENTITY TYPE HERE>"
],
"is_set": <add boolean here>,
"constraints": [
{
"id": "<ADD BIOLINK CURIE HERE>",
"name": "<ADD HUMAN READABLE NAME FOR THE ID HERE>",
"not": <add boolean here>,
"operator": "<ADD AN OPERATOR HERE>",
"value": [
"<ADD ATTRIBUTE VALUE HERE>",
"<ADD ATTRIBUTE VALUE HERE>"
],
"unit_id": [
"<ADD UNIT_ID FOR VALUE FIELD HERE>",
"<ADD UNIT_ID FOR VALUE FIELD HERE>"
],
"unit_name": [
"<ADD HUMAN READABLE NAME FOR THE VALUE FIELD HERE>",
"<ADD HUMAN READABLE NAME FOR THE VALUE FIELD HERE>"
]
}
]
},
"n1": {
"ids": [
"<ADD BIOLINK CURIE HERE>",
"<ADD BIOLINK CURIE HERE>"
],
"categories": [
"<ADD BIOLINK ENTITY TYPE HERE>",
"<ADD BIOLINK ENTITY TYPE HERE>"
],
"is_set": <add boolean here>,
"constraints": [
{
"id": "<ADD BIOLINK CURIE HERE>",
"name": "<ADD HUMAN READABLE NAME FOR THE ID HERE>",
"not": <add boolean here>,
"operator": "<ADD AN OPERATOR HERE>",
"value": [
"<ADD ATTRIBUTE VALUE HERE>",
"<ADD ATTRIBUTE VALUE HERE>"
],
"unit_id": [
"<ADD UNIT_ID FOR VALUE FIELD HERE>",
"<ADD UNIT_ID FOR VALUE FIELD HERE>"
],
"unit_name": [
"<ADD HUMAN READABLE NAME FOR THE VALUE FIELD HERE>",
"<ADD HUMAN READABLE NAME FOR THE VALUE FIELD HERE>"
]
}
]
},
},
"edges": {
"e0": {
"predicates": [
"<ADD BIOLINK PREDICATE HERE>",
"<ADD BIOLINK PREDICATE HERE>"
],
"subject": "n0",
"object": "n1",
"constraints": [
{
"id": "<ADD BIOLINK CURIE HERE>",
"name": "<ADD HUMAN READABLE NAME FOR THE ID HERE>",
"not": false,
"operator": "<ADD AN OPERATOR HERE>",
"value": [
"<ADD ATTRIBUTE VALUE HERE>",
"<ADD ATTRIBUTE VALUE HERE>"
],
"unit_id": [
"<ADD UNIT_ID FOR VALUE FIELD HERE>",
"<ADD UNIT_ID FOR VALUE FIELD HERE>"
],
"unit_name": [
"<ADD HUMAN READABLE NAME FOR THE VALUE FIELD HERE>",
"<ADD HUMAN READABLE NAME FOR THE VALUE FIELD HERE>"
]
}
]
}
}
},
"knowledge_graph": {
"nodes": {
"name": "<ADD BIOLINK ENTITY NAME HERE>",
"categories": [
"<ADD BIOLINK ENTITY TYPE HERE>",
"<ADD BIOLINK ENTITY TYPE HERE>"
],
"attributes": [
{
"attribute_type_id": "<ADD BIOLINK CURIE HERE>",
"original_attribute_name": "<ADD TERM USED BY ORIGINAL SOURCE HERE>",
"value": "<ADD ATTRIBUTE VALUE HERE>",
"value_type_id": "<ADD BIOLINK CURIE HERE>",
"attribute_source": "<ADD ATTRIBUTE SOURCE HERE>",
"value_url": "<ADD URL TO ADDITIONAL DOCUMENTATION FOR THIS VALUE>",
"description": "<ADD DESCRIPTION HERE>",
"attributes": [
{
"attribute_type_id": "<ADD BIOLINK CURIE HERE>",
"original_attribute_name": "<ADD TERM USED BY ORIGINAL SOURCE HERE>",
"value": "<ADD ATTRIBUTE VALUE HERE>",
"value_type_id": "<ADD BIOLINK CURIE HERE>",
"attribute_source": "<ADD ATTRIBUTE SOURCE HERE>",
"value_url": "<ADD URL TO ADDITIONAL DOCUMENTATION FOR THIS VALUE>",
"description": "<ADD DESCRIPTION HERE>",
}
]
}
]
},
"edges": {
"e0": {
"predicate": "<ADD PREDICATE HERE>",
"subject": "n0",
"object": "n1",
"attributes": [
{
"attribute_type_id": "<ADD BIOLINK CURIE HERE>",
"original_attribute_name": "<ADD TERM USED BY ORIGINAL SOURCE HERE>",
"value": "<ADD ATTRIBUTE VALUE HERE>",
"value_type_id": "<ADD BIOLINK CURIE HERE>",
"attribute_source": "<ADD ATTRIBUTE SOURCE HERE>",
"value_url": "<ADD URL TO ADDITIONAL DOCUMENTATION FOR THIS VALUE>",
"description": "<ADD DESCRIPTION HERE>",
"attributes": [
{
"attribute_type_id": "<ADD BIOLINK CURIE HERE>",
"original_attribute_name": "<ADD TERM USED BY ORIGINAL SOURCE HERE>",
"value": "<ADD ATTRIBUTE VALUE HERE>",
"value_type_id": "<ADD BIOLINK CURIE HERE>",
"attribute_source": "<ADD ATTRIBUTE SOURCE HERE>",
"value_url": "<ADD URL TO ADDITIONAL DOCUMENTATION FOR THIS VALUE>",
"description": "<ADD DESCRIPTION HERE>",
}
]
}
]
}
}
},
"results": [
{
"node_bindings": {
"n0": [
{
"id": "<ADD NODE CURIE HERE>"
}
],
"n1": [
{
"id": "<ADD NODE CURIE HERE>"
}
]
},
"edge_bindings": {
"e1": [
{
"id": "<ADD EDGE ID HERE>"
}
]
},
"score": <ADD SCORE HERE>
},
]
},
"logs": [],
"workflow": [
{
"id": "<ADD WORKFLOW TYPE HERE>"
}
]
}
Click to view json example
{
"nodes": [
{
"<ADD BIOLINK ENTITY TYPE HERE>": {
"id_prefixes":[
"<ADD BIOLINK ENTITY TYPE HERE>",
"<ADD BIOLINK ENTITY TYPE HERE>"
],
"attributes": [
{
"attribute_type_id": "",
"attribute_source": "",
"original_attribute_names": [
"<ADD META ATTRIBUTE NAME HERE>",
"<ADD META ATTRIBUTE NAME HERE>"
],
"constraint_use": <add boolean here>,
"constraint_name": "<ADD CONSTRAINT NAME HERE>"
}
]
},
}
],
"edges": [
{
"subject": "<ADD SUBJECT CATEGORY HERE>",
"object": "<ADD OBJECT CATEGORY HERE",
"predicate": "<ADD PREDICATE HERE>",
"attributes": [
{
"attribute_type_id": "<ADD ATTRIBUTE CURIE HERE>",
"attribute_source": "<ADD ATTRIBUTE SOURCE HERE>",
"original_attribute_names": [
"<ADD META ATTRIBUTE NAME HERE>",
"<ADD META ATTRIBUTE NAME HERE>"
],
"constraint_use": <add boolean here>,
"constraint_name": "<ADD CONSTRAINT NAME HERE>"
}
]
}
]
}
Link: <ADD LINK TO REFERENCE HERE>
Description: <ADD DESCRIPTION FOR REFERENCE 2 HERE>
Name: <ADD REFERENCE WITH NO WEBSITE>
Description: <ADD DESCRIPTION FOR REFERENCE 2 HERE>