Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WoSIS GraphQL API masterclass
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ISRIC
databases
WoSIS GraphQL API masterclass
Commits
554902dc
Commit
554902dc
authored
1 year ago
by
lcalisto
Browse files
Options
Downloads
Patches
Plain Diff
query MyQuery
parent
fb3367e9
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+8
-8
8 additions, 8 deletions
README.md
scripts/python/wosis_graphql_q1.py
+1
-1
1 addition, 1 deletion
scripts/python/wosis_graphql_q1.py
with
9 additions
and
9 deletions
README.md
+
8
−
8
View file @
554902dc
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
scripts/python/wosis_graphql_q1.py
+
1
−
1
View file @
554902dc
...
...
@@ -3,7 +3,7 @@ import json
# GraphQL query
query
=
"""
{
query MyQuery
{
wosisLatestProfiles(first: 2) {
continent
region
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment