There are three ways to do this:
- Bring NodeAnnotator in sync with NodeNorm in terms of identifiers (i.e. normalize queries before responding?)
- Both systems effectively construct JSON, so once we've chosen the best database store, we could merge all the JSON outputs from the two systems seamlessly if they are using the same canonical identifiers.
- Provide some way to export NodeAnnotator so that it can be directly incorporated into NodeNorm.
- This might require precalculating annotations for every node in NodeNorm.
- This will ALSO require assembling all these properties on-the-fly, which might slow things down (even if we assume that not every query with have the "annotations" flag turned on).
- Although we could precompute these assembled annotations also.
- Incorporate NodeAnnotator's pipelines into Babel so that we can calculate the annotations ourselves.
- "Merge the code" option.
- Step 1 would help with this anyway.
Note that NodeNorm has its own annotations that need to be consolidated (NCATSTranslator/NodeNormalization#306)
There are three ways to do this:
Note that NodeNorm has its own annotations that need to be consolidated (NCATSTranslator/NodeNormalization#306)