biolink / kgx

KGX is a Python library for exchanging Knowledge Graphs
https://kgx.readthedocs.io
BSD 3-Clause "New" or "Revised" License
114 stars 26 forks source link

update KGX to optionally provide "retrieval_source_ids" attribute to collect information retrieval properties #458

Open sierra-moxon opened 1 year ago

sierra-moxon commented 1 year ago

Currently, when primary_knowledge_source is not provided, KGX by default tries to add this to its transforms. We should make this an optional transformation, and in addition, add the ability to produce TRAPI-specific KGX.

"retrieval_source_ids":
    [
        {
            "resource_id": "infores:cohd",
            "resource_role": "primary_knowledge_source"
        },
        {
            "resource_id": "infores:columbia-cdw-ehr-data",
            "resource_role": "supporting_data_source"
        }
    ]