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ο