Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSV result format - V1.1 Request #3

Open
KathiSchleidt opened this issue Oct 3, 2018 · 3 comments
Open

CSV result format - V1.1 Request #3

KathiSchleidt opened this issue Oct 3, 2018 · 3 comments

Comments

@KathiSchleidt
Copy link
Collaborator

In order to make STA data more accessible, it would be valuable to provide a simple CSV result format

Link Fraunhofer GitHub: FraunhoferIOSB/FROST-Server#58
Link OGC GitHub: opengeospatial/sensorthings#51

@liangsteve
Copy link

I totally agree that it's very useful to have CSV outputs. Can you please offer more details here? There are many many different ways to flatten the data model and provide CSV outputs. Thoughts?

@sgrellet
Copy link
Contributor

Proposal from our workshop at BRGM with Hylke and Kathi and BRGM folks
Rationale only traverse the single cardinalities

  • mainly feasible for Observation and Datastream
    • Observation : start from Observation, traverse the single cardinalities (no funky loops) and write everything flat at the result level. Will only miss the Location
    • Datastream will have Thing, Sensor, ObservedProperty but no Observation nor Location
  • for the others, its just a csv 'dump' of the single table
  • MultiDatastream might a bit tricky

@hylkevds
Copy link
Collaborator

When expanding over a "many" relation, we can just return multiple lines, partially duplicating data. These queries should return equivalent results:

  • v1.0/Observations?$expand=Datastreams
  • v1.0/Datastreams?$expand=Observations

The only question would be what to do with a Datastream with no Observations. I think it would be best to return a single, incomplete line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants