geosolutions-it / c050-zamg-nexyo-integration

0 stars 0 forks source link

Queries to retrieve info #1

Open etj opened 2 years ago

etj commented 2 years ago

We need the basic queries to find out and retrieve the info that shall be mapped into the ISO metadata.

Basically we need

etj commented 2 years ago

Retrieve:

Query ```graphql { queryDataset(filter: {uuid: { eq: "c765aca5-debc-4eb2-97b7-9949471c3e79"}}) { uuid title metadata { _title __typename ... on INSPIRE_003 { uuid _title _createdAt _createdBy { uuid email firstname lastname } _lastUpdatedAt _lastUpdatedBy { uuid email firstname lastname } _draft _global inspire_creation_date inspire_meta_language inspire_dataurl inspire_language inspire_topiccategory inspire_conformationresult inspire_eastlong inspire_keywords inspire_westlong inspire_meta_date inspire_spatial_Res inspire_orgname inspire_encoding inspire_meta_email inspire_meta_orgname inspire_public_constraints { limited_access_url limited_access_text limited_access_title } inspire_ressource_identifier inspire_title inspire_southlat inspire_last_revision inspire_resource_type inspire_useconstraints { usage_url usage_text usage_title } inspire_temporal_extent inspire_coord { coord_url coord_epsg coord_title } inspire_spatialRep inspire_lineage inspire_abstract inspire_northlat inspire_accessconstraints { access_url access_text access_title } inspire_email } } } } ```
Response ```graphql { "data": { "queryDataset": [ { "metadata": [ { "__typename": "INSPIRE_003", "_createdAt": "2022-03-23T08:31:17Z", "_createdBy": { "email": "bernhard.stuxer@zamg.ac.at", "firstname": "Bernhard", "lastname": "Stuxer", "uuid": "e4e2c543-8ce6-42c6-9643-1b89dab3c9a0" }, "_draft": false, "_global": false, "_lastUpdatedAt": "2022-03-23T08:32:24Z", "_lastUpdatedBy": { "email": "bernhard.stuxer@zamg.ac.at", "firstname": "Bernhard", "lastname": "Stuxer", "uuid": "e4e2c543-8ce6-42c6-9643-1b89dab3c9a0" }, "_title": "INSPIRE", "inspire_abstract": "Interpolierte 30 jährige mittlere Klimadaten aus den Jahren 1961 bis 1990. Basierend auf geprüften Messdaten aus dem Stationsmessnetz der ZAMG.", "inspire_accessconstraints": { "access_text": "No conditions apply to access", "access_title": "no conditions to access", "access_url": "https://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/noConditionsApply" }, "inspire_conformationresult": "Konform", "inspire_coord": { "coord_epsg": "31287", "coord_title": "MGI / Austria Lambert", "coord_url": "https://epsg.io/31287" }, "inspire_creation_date": "2000-03-31T09:28:30+02:00", "inspire_dataurl": "https://wmsx.zamg.ac.at/cgi-bin/zamgInspireWMS?SERVICE=wms&VERSION=1.3.0&REQUEST=GetCapabilities", "inspire_eastlong": null, "inspire_email": "klima@zamg.ac.at", "inspire_encoding": null, "inspire_keywords": "Atmosphärische Bedingungen, Meteorologisch-geografische Kennwerte", "inspire_language": "Deutsch", "inspire_last_revision": "2022-03-23T09:28:17+01:00", "inspire_lineage": "TO DO", "inspire_meta_date": "2022-03-23T09:25:55+01:00", "inspire_meta_email": "inspire@zamg.ac.at", "inspire_meta_language": "Deutsch", "inspire_meta_orgname": "ZAMG - Zentralanstalt für Meteorologie und Geodynamik", "inspire_northlat": null, "inspire_orgname": "ZAMG - Zentralanstalt für Meteorologie und Geodynamik", "inspire_public_constraints": { "limited_access_text": "There are no limitations on public access to spatial data sets and services.", "limited_access_title": "no limitations to public access", "limited_access_url": "https://inspire.ec.europa.eu/metadata-codelist/LimitationsOnPublicAccess/noLimitations" }, "inspire_resource_type": "dataset", "inspire_ressource_identifier": "7fa65008-4de7-4a9b-955a-ba79fcb8e9e5", "inspire_southlat": null, "inspire_spatialRep": null, "inspire_spatial_Res": "1:1000000 ", "inspire_temporal_extent": "1961-1990 ", "inspire_title": "Luftfeuchte, relative - Mittel Jänner, Juli - Klimareferenzkarte 1961-1990 Österreich ", "inspire_topiccategory": "Atmosphärische Bedingungen, Meteorologisch-geografische Kennwerte", "inspire_useconstraints": { "usage_text": "Namensnennung 4.0 International (CC BY 4.0)", "usage_title": "CC BY 4.0", "usage_url": "https://creativecommons.org/licenses/by/4.0/" }, "inspire_westlong": null, "uuid": "e5ba641b-ec28-4f5c-98d0-adbff636df1e" } ], "title": "Klimareferenzkarte 1961-1990 Luftfeuchte, relative", "uuid": "c765aca5-debc-4eb2-97b7-9949471c3e79" } ] }, "extensions": { "touched_uids": 90, "tracing": { "duration": 13228085, "endTime": "2022-04-06T09:38:51.329524609Z", "execution": { "resolvers": [ { "dgraph": [ { "duration": 11236774, "label": "query", "startOffset": 1968516 } ], "duration": 12058078, "fieldName": "queryDataset", "parentType": "Query", "path": [ "queryDataset" ], "returnType": "[Dataset]", "startOffset": 1151466 } ] }, "startTime": "2022-04-06T09:38:51.316296517Z", "version": 1 } } } ```
etj commented 2 years ago

Discovery:

Query ```graphql { queryDataset(filter: { labels: { anyoftext: "INSPIRE" } }) { uuid title uri } } ```
Response ```graphql { "data": { "queryDataset": [ { "title": "Homogenisierte Klimadatenbasis für den Alpenraum ", "uri": null, "uuid": "c6fa73ab-d789-459e-bc20-53dfcb957f9f" }, { "title": "Klimareferenzkarte 1961-1990 Luftfeuchte, relative", "uri": null, "uuid": "c765aca5-debc-4eb2-97b7-9949471c3e79" }, { "title": "Messnetz WMO Essential Stations Österreich ", "uri": null, "uuid": "dd96baf5-a043-4a1c-9c91-f7803b8fc247" } ] }, "extensions": { "touched_uids": 48, "tracing": { "duration": 6721796, "endTime": "2022-04-12T09:14:42.331621306Z", "execution": { "resolvers": [ { "dgraph": [ { "duration": 5925205, "label": "query", "startOffset": 786931 } ], "duration": 6206233, "fieldName": "queryDataset", "parentType": "Query", "path": [ "queryDataset" ], "returnType": "[Dataset]", "startOffset": 508081 } ] }, "startTime": "2022-04-12T09:14:42.324899486Z", "version": 1 } } } ```