Skip to content

Instantly share code, notes, and snippets.

@andrewsu
Created October 22, 2021 05:22
Show Gist options
  • Save andrewsu/bb35aaccbecca4a0f697e33e5570c09c to your computer and use it in GitHub Desktop.
Save andrewsu/bb35aaccbecca4a0f697e33e5570c09c to your computer and use it in GitHub Desktop.
example consolidated JSON
{
"message": {
"knowledge_graph": {
"edges": {
"14341143da7fbd11d1481cbc7a960299": {
"attributes": [
{
"attribute_type_id": "biolink:primary_knowledge_source",
"value": [
"infores:data_source_1"
],
"value_type_id": "biolink:InformationResource"
}
],
"object": "MONDO:0005068",
"predicate": "biolink:contributes_to",
"subject": "NCBIGene:3630"
},
"2cfc967e4ad992e85f7d6b42df532f33": {
"attributes": [
{
"attribute_type_id": "biolink:primary_knowledge_source",
"value": [
"infores:data_source_2"
],
"value_type_id": "biolink:InformationResource"
}
],
"object": "MONDO:0005068",
"predicate": "biolink:treats",
"subject": "NCBIGene:3630"
},
"5003dde2e5ba3f9a697fc812d38d064f": {
"object": "MONDO:0005010",
"predicate": "biolink:genetic_association",
"subject": "NCBIGene:3630"
},
"5df74981d4613a20a3fc764e904ecc77": {
"object": "NCBIGene:3630",
"predicate": "biolink:entity_positively_regulates_entity",
"subject": "PUBCHEM.COMPOUND:3386"
},
"61d553dd49d5b6b004d433b1c30975d7": {
"object": "NCBIGene:3630",
"predicate": "biolink:entity_negatively_regulates_entity",
"subject": "PUBCHEM.COMPOUND:146570"
},
"be31fe792253cb869a51465217e2ece9": {
"object": "NCBIGene:3630",
"predicate": "biolink:entity_negatively_regulates_entity",
"subject": "PUBCHEM.COMPOUND:43815"
}
},
"nodes": {
"MONDO:0005068": {
"categories": [
"biolink:Disease"
],
"name": "myocardial infarction (disease)"
},
"MONDO:0005010": {
"categories": [
"biolink:Disease"
],
"name": "coronary artery disease"
},
"NCBIGene:3630": {
"categories": [
"biolink:Gene"
],
"name": "INS"
},
"PUBCHEM.COMPOUND:146570": {
"categories": [
"biolink:SmallMolecule"
],
"name": "Escitalopram"
},
"PUBCHEM.COMPOUND:3386": {
"categories": [
"biolink:SmallMolecule"
],
"name": "Fluoxetine"
},
"PUBCHEM.COMPOUND:43815": {
"categories": [
"biolink:SmallMolecule"
],
"name": "Paroxetine"
}
}
},
"results": [
{
"edge_bindings": {
"e00": [
{
"id": "5df74981d4613a20a3fc764e904ecc77"
},
{
"id": "61d553dd49d5b6b004d433b1c30975d7"
},
{
"id": "be31fe792253cb869a51465217e2ece9"
}
],
"e01": [
{
"id": "14341143da7fbd11d1481cbc7a960299"
},
{
"id": "2cfc967e4ad992e85f7d6b42df532f33"
},
{
"id": "5003dde2e5ba3f9a697fc812d38d064f"
}
]
},
"node_bindings": {
"n00": [
{
"id": "PUBCHEM.COMPOUND:3386"
},
{
"id": "PUBCHEM.COMPOUND:146570"
},
{
"id": "PUBCHEM.COMPOUND:43815"
}
],
"n01": [
{
"id": "NCBIGene:3630"
}
],
"n02": [
{
"id": "MONDO:0005068"
},
{
"id": "MONDO:0005010"
}
]
},
"reasoner_id": "BTE",
"score": 1
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment