FraunhoferIOSB / FROST-Client

Library implementing a client interface to the SensorThingsAPI
MIT License
28 stars 13 forks source link

Abstraction layer for SensorThings API query and filter functions #52

Open timEngbrocks opened 3 years ago

timEngbrocks commented 3 years ago

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:

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 commented 3 years ago

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

hylkevds commented 3 years ago

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