noi-techpark / it.bz.opendatahub.api.mobility-ninja

The new home of the Open Data Hub Mobility API v2
Other
2 stars 0 forks source link

As an ODH user, I would like to know the meaning of the single fields exposed by the API #25

Closed rcavaliere closed 2 years ago

rcavaliere commented 2 years ago
Piiit commented 2 years ago

@sseppi @rcavaliere Done, please test...

Not perfect, but good enough to have it integrated in our ODH browser I guess. The schema definitions are currently not linked as output description to the above calls, because depending on the representation and select parameters they might not correspond. To make it perfect, I would need to write several specific rules... I do not know if that is necessary. Let me know

Piiit commented 2 years ago

@rcavaliere I have not set a description for every field, we could also define default values, min,max and other constraints, if you like... for that I would need some domain expertise

Piiit commented 2 years ago

@mrabans FYI @gappc Maybe useful for the data browser integration?

rcavaliere commented 2 years ago

@Piiit looks promising. But I fear that this information is generic and not specific for every data type (e.g. e-charging, air quality), which may need some specific information for that. Do you have a proposal on how we could handle this?

gappc commented 2 years ago

@Piiit, @mrabans, @sseppi, @RudiThoeni I didn't take a deep look but this direction is definitely useful for the Databrowser, as we rely on information provided by the Swagger / OpenAPI definitions. It would also be very nice to narrow down the types and restrictions on them (e.g max. size) where possible. That way we could further automate things in the Databrowser. Ideally, the same ideas and concepts should be used across all ODH domains, such that the Databrowser can reuse as much logic as possible.

All in all, nice work :)

Piiit commented 2 years ago

@Piiit looks promising. But I fear that this information is generic and not specific for every data type (e.g. e-charging, air quality), which may need some specific information for that. Do you have a proposal on how we could handle this?

To solve this we would need several things: 1) some additional descriptive columns in several tables, that describe the actual data their:

These schemas could be used to automatically generate a swagger document (Open API v3 yaml file)... not perfect, because data comes in dynamically at high speed and might change too fast.

Another idea is to have "metadata" calls in the API itself, that explain and validate the output.

The descriptive fields must be updated manually, or with each data collector.

We would need a v3 API for that, because it probably needs incompatible changes

Piiit commented 2 years ago

Closing, please open new issues if additional functionality is needed...

mrabans commented 2 years ago

@Piiit thanks for explaining. In an first step I think a pure description is enough. Probably there is no need to validate data from the data providers right now on a schema level. The biggest issue is explaining to data consumers how this data is composed and should be interpreted. This is different for each data type, so the additional table is probably needed.

rcavaliere commented 2 years ago

@Piiit @mrabans as I said, I will try to start document these specific details for each source / station types in a separate document. We will then see how to optimally integrate this together to provide ODH customers with all details needed in order to perfectly understand our API and the type of data we provide

sseppi commented 2 years ago

As Roberto said, we need now to understand what kind of information the data consumer needs and collect in a document/spreadsheet, in order to take a better decision. Maybe we could also ask for feedback to data consumers.

@rcavaliere maybe it could be an Idea to create a dedicated issue about that, and put it in the Customer Care Kanban. so we can keep it tracked.