Expressed data needs to be stored in database
For speed reason, and more importantly, because we cannot trust any external database, we need to cache automatic expressed data in MongoDB. The other reason why CIRI's and their data need to be stored in Mongodb is to be able to do a search:
- an API endpoint should be created so that, given a search term, is returned a list of all CIRI who's data contain this term
- searching in the contextual database for those CIRI will then yield what the user wants.
This cache should be populated at validation time (where each CIRI should be followed and the data stored in the cache). CIRI's who do not exist should probably yield an error?
Edited by mma227