Open wshayes opened 6 years ago
Need to understand how this would affect using annotations to search for Nanopubs. Allowing for somewhat arbitrary annotation types will make it difficult to use those annotation values for filtering/searching for Nanopubs.
Allow different types of annotations:
Requires changes to nanopub_bel JSONSchema, belbio_conf, bel_api and front-end tools.
Best way to handle this is probably to provide BEL API configurable annotation field requirements.
Change meaning of annotation type to: NSArg, P-value, Cohort, etc
Add schemas for each annotation type in the belbio_conf configuration file (NSArg and keyvalue would be default annotation types).
E.g. NSArg: {"class": string, "id": string, "label": string}, pvalue: {"name": string, "value": [number, string]}, keyvalue: {"key": string, "value": value}
Examples