TranslatorSRI / NodeNormalization

Service that produces Translator compliant nodes given a curie
MIT License
9 stars 6 forks source link

Categorized not arranged properly with `/query` #230

Open gaurav opened 7 months ago

gaurav commented 7 months ago

The knowledge_graph.nodes results from /query returns categories in a scrambled order. Presumably the fix for https://github.com/TranslatorSRI/NodeNormalization/issues/86 hasn't been applied to the /query code.

Example:

"MONDO:0001134": {
                        "categories": [
                            "biolink:ThingWithTaxon",
                            "biolink:NamedThing",
                            "biolink:DiseaseOrPhenotypicFeature",
                            "biolink:BiologicalEntity",
                            "biolink:Entity",
                            "biolink:Disease",
                        ],
                        "name": "essential hypertension",
                        "attributes": [
                            {
                                "attribute_type_id": "biolink:same_as",
                                "value": [
                                    "MONDO:0001134",
                                    "DOID:10825",
                                    "OMIM:145500",
                                    "UMLS:C0085580",
                                    "MESH:D000075222",
                                    "MEDDRA:10015488",
                                    "MEDDRA:10015491",
                                    "MEDDRA:10036695",
                                    "MEDDRA:10045866",
                                    "NCIT:C3478",
                                    "SNOMEDCT:59621000",
                                    "ICD9:401",
                                ],
                                "value_type_id": "EDAM:data_0006",
                                "original_attribute_name": "equivalent_identifiers",
                            },
                            {
                                "attribute_type_id": "biolink:has_numeric_value",
                                "value": 83.0,
                                "value_type_id": "EDAM:data_0006",
                                "original_attribute_name": "information_content",
                            },
                        ],
                    }