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

Abstraction layer for SensorThings API query and filter functions #52

Open
timEngbrocks opened this issue Feb 5, 2021 · 2 comments
Open

Comments

@timEngbrocks
Copy link

SensorThings API: query and filter functions

The SensorThings API offers many built-in query and filter functions for queries to the SensorThings Service.
Some examples:

  • st_within: Find things in an area
  • eq: Find things where some property equals some value
  • distance: Calculate the distance between two points

The full documentation can be found here: OGC SensorThings API Part 1: Sensing in section 9.3.3.5

Current state

Currently it is possible to add filters to queries by calling filter() on a query: method definition
This method takes a string which is placed into the query which means that part of the query has to be defined manually.

Suggestion

It would be great if filters could be controlled with built-in methods.
A query could for example have a list of filters where each filter has a operation and a list of arguments.
This would provide a layer of abstraction so that users of the FROST-Client don't have to know the SensorThings API Syntax.

@hylkevds
Copy link
Member

hylkevds commented Feb 6, 2021

Yes, this would be very nice to have, but also a lot of work to implement.

@hylkevds
Copy link
Member

hylkevds commented Jul 8, 2021

This is also related to #37, since Filters can be used in Expands...

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

No branches or pull requests

2 participants