Diversity Scientific Terms
No-SQL Interface
JSON Cache
Databases of the modules provid a No-SQL interface where the data of the main table and the depending tables are merged as JSON.
Table JsonCache
Content of table JsonCache restricted to public available data
Column | Data type | Description | Nullable | Relation |
---|---|---|---|---|
ID | int | Unique ID for the Dataset, Primary key | NO | ID of the source |
URI | varchar (500) | The URL as combination of BaseURL and ID | NO | BaseURL and ID of the source |
DisplayText | nvarchar (500) | Representation in the interface | NO | Main table of the source |
LogUpdatedWhen | datetime | Date and time when the data were last updated | NO | - |
Data | json | Data related to the current dataset | NO | - |
procFillJsonCache is started by an update trigger trgUpd… of the main table in the database
Interface in clients
All modules provide data via a cache table. In the header of the clients you can inspect the content of the JsonCache with a click on the button. For modules with a difference between local and public data, you can inspect the content of the public data with a click of the right mouse button.
Update
Apart of the update via the Trigger (see below) you can update the JsonCache via the update button underneath the
button.
To update the JsonCache for the whole database select Administration - JsonCache… from the menu. a window as shown below will open where you can update the JsonCache for single datasets or the whole database.
Summary
graph TD; TaxonName[Main table in database] trgUpdTaxonName[trgUpd.. of main table in database] TaxonName --> |Update in table| trgUpdTaxonName proc[Procedure procFillJsonCache setting the content in table JsonCache] trgUpdTaxonName --> proc
graph TD; Mainform[Main form] ButtonShow[Button show JsonCache of current dataset] Mainform --> ButtonShow Left[Show Data] ButtonShow --> |Left click| Left
graph TD; Mainform[Main form] Admin[Administration menu] Mainform --> Admin Cache[JsonCache...] Admin --> Cache Adminform[Administration form] Cache --> Adminform AdminUpdateSingle[Update single dataset] Adminform --> AdminUpdateSingle AdminUpdateDB[Update for whole database] Adminform --> AdminUpdateDB