Skip to content

Support for collection "queryables" (metadata filters) #483

Description

@soxofaan

openEO API 1.2 feature:

New endpoint for metadata filters (queryables): /collections/{collection_id}/queryables. Also adds a new rel type to the collection links. Open-EO/openeo-api#396

Lacking anything better, client now leverages "summaries" which is incomplete, and raises warning if there is no match

if properties:
summaries = metadata and metadata.get("summaries") or {}
undefined_properties = set(properties.keys()).difference(summaries.keys())
if undefined_properties:
warnings.warn(
f"{collection_id} property filtering with properties that are undefined "
f"in the collection metadata (summaries): {', '.join(undefined_properties)}.",
stacklevel=2,
)
arguments["properties"] = {
prop: build_child_callback(pred, parent_parameters=["value"]) for prop, pred in properties.items()
}

related: #424 Open-EO/openeo-geopyspark-driver#536 Open-EO/openeo-api#396

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions