You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
We should define a schema which is attached to the dataset metadata and sent by the Datastore API with each API call.
It should look something like this:
On the client side, we will have access to this, and can start to use our type-safety to perform data operations from generic datahandlers - rather than writing custom code
for instance, if our schema defines a field: accpeptsMedicaretype: bool we could provide a datahandler definition pieChartFromBoolField: {fieldName: 'acceptsMedicare'} which returns the chart.
This concept could / should be extended to provide a well-documented DSL that is tightly coupled to the datastore api.
Also, adding a schema should be backwards compatible, we can create implementations that use it, but existing implementations (of dkan metadata as well as dkan-dash implementations) should continue to work
Description
We should define a schema which is attached to the dataset metadata and sent by the Datastore API with each API call.
It should look something like this:
On the client side, we will have access to this, and can start to use our type-safety to perform data operations from generic datahandlers - rather than writing custom code
for instance, if our schema defines a field:
accpeptsMedicare
type: bool
we could provide a datahandler definitionpieChartFromBoolField: {fieldName: 'acceptsMedicare'}
which returns the chart.This concept could / should be extended to provide a well-documented DSL that is tightly coupled to the datastore api.
An imaginary dsl could look like:
etc.
*note - these are direct mappings from known API return values (along with metadata such as
type
) and known data formats for chart componentsFurther analysis will be required to capture the useful set of generic dataHandlers
Notes
The text was updated successfully, but these errors were encountered: