belbio / bel_api

BEL API documentation
https://bel-api.rtfd.io
Apache License 2.0
7 stars 2 forks source link

Add non-namespace annotations #60

Open wshayes opened 6 years ago

wshayes commented 6 years ago

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

wshayes commented 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.