From 554902dc388bbe855b9c7c66bcf2b07aaebc691b Mon Sep 17 00:00:00 2001 From: lcalisto <luis.calisto@hotmail.com> Date: Fri, 25 Aug 2023 22:33:22 +0100 Subject: [PATCH] query MyQuery --- README.md | 16 ++++++++-------- scripts/python/wosis_graphql_q1.py | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 512d9fa..b5d1433 100644 --- a/README.md +++ b/README.md @@ -146,7 +146,7 @@ Its now time to start exploring WoSIS data using queries. - Get all WoSIS Latest Attributes ```graphql -{ +query MyQuery { wosisLatestAttributes { layers profiles @@ -181,7 +181,7 @@ The correct way to write our query is: - Get the first 100 records of WoSIS Latest Attributes ```graphql -{ +query MyQuery { wosisLatestAttributes(first: 100) { attribute description @@ -197,7 +197,7 @@ In practice this query will return all WoSIS Latest Attributes because currently - Get the first 10 __*wosisLatestProfiles*__ profiles without any classification record. ```graphql -{ +query MyQuery { wosisLatestProfiles(first: 10) { continent region @@ -214,7 +214,7 @@ In practice this query will return all WoSIS Latest Attributes because currently - Get the __last 10 *wosisLatestProfiles* profiles__ with all available classification records (FAO, USDA, WRB). ```graphql -{ +query MyQuery { wosisLatestProfiles(last: 10) { continent region @@ -250,7 +250,7 @@ Please note that you can use graphiQL IDE interface to easily create your querie - Get __first 10 profiles__ and for each profile get also the __first 10 layers__: ```graphql -{ +query MyQuery { wosisLatestProfiles(first: 10) { profileId continent @@ -276,7 +276,7 @@ Please note that you can use graphiQL IDE interface to easily create your querie - Get __first 10 profiles__ and for each profile get also the __first 10 layers__ and also the __first 10 values of silt__: ```graphql -{ +query MyQuery { wosisLatestProfiles(first: 10) { profileId continent @@ -308,7 +308,7 @@ Please note that you can use graphiQL IDE interface to easily create your querie ```graphql -{ +query MyQuery { wosisLatestProfiles(first: 10) { profileId continent @@ -375,7 +375,7 @@ import json # GraphQL query query = """ -{ +query MyQuery { wosisLatestProfiles(first: 10) { continent region diff --git a/scripts/python/wosis_graphql_q1.py b/scripts/python/wosis_graphql_q1.py index eea83c8..d4d2e49 100644 --- a/scripts/python/wosis_graphql_q1.py +++ b/scripts/python/wosis_graphql_q1.py @@ -3,7 +3,7 @@ import json # GraphQL query query = """ -{ +query MyQuery { wosisLatestProfiles(first: 2) { continent region -- GitLab