zyra.connectors.discovery.ogc_records module๏
OGC API - Records discovery backend.
Parses a Records โitemsโ response (GeoJSON-like) and returns DatasetMetadata entries for features whose title/description match the query.
Network fetching is optional; tests can pass a JSON payload via items_json. If fetching is needed and requests is unavailable, raises a helpful error.
- class zyra.connectors.discovery.ogc_records.OGCRecordsBackend(endpoint: 'str', items_json: 'str | None' = None, weights: 'dict[str, int] | None' = None)[source]๏
Bases:
DiscoveryBackend- endpoint: str๏
- items_json: str | None = None๏
- search(query: str, *, limit: int = 10) list[DatasetMetadata][source]๏
- weights: dict[str, int] | None = None๏