bcgsc / pori_graphkb_loader

The Loaders for GraphKB. Imports content from external sources via the GraphKB REST API
https://bcgsc.github.io/pori
GNU General Public License v3.0
6 stars 4 forks source link

Create disease ontology json file #79

Closed creisle closed 2 years ago

creisle commented 2 years ago

For terms like "all solid tumours" which are not defined in a particular ontology but we have manually added to our graphkb instance to improve loading of external ontologies it would be useful to create a JSON file in this repo under the data folder to store this mapping of the custom non-specific term to actual ontology terms so that is can be re-used by external users

see specification for file format here: https://github.com/bcgsc/pori_graphkb_loader/tree/develop/src/ontology

creisle commented 2 years ago

Also add new term to support moa loader

2022-03-01T19:56:13.246Z warn: Error: missing Disease record where {"AND":[{"name":"Any solid tumor"},{"source":{"filters":{"name":"oncotree"},"target":"Source"}}]}

This should be linked as an alias of the "all solid tumours" term

creisle commented 2 years ago

Should include all the subclass of relationships from this entity. Since we are defining these in this file going forward you can set the source of the origin node to "graphkb"

https://graphkb.bcgsc.ca/view/Disease/133:21363

creisle commented 2 years ago

from our online conversation this is the pseudo spec we went over


{
    "class": "Disease",
    "records": {
        "someKey": {
            "name": "all solid tumors", 
            "otherField": "otherValue",

        },
        "phc": {
            "name": "pheochromocytoma", 
            "sourceId": "PHC", 
            "source": "oncotree",
            "links": [
            {
                "class": "SubClassOf",
                "source": "graphkb",
                "target": "someKey"
            }
        ]}
    },
    "sources": {
        "default": {"name": "graphkb"},
        "oncotree": {"name": "oncotree"}
    }
}```