Soil and Landscape Grid
of Australia

SoilDataFederator

About

The SoilDataFederator is a web API that brings together soil site data from a range of disparate data sources. It allows the user to query soils data stores across Australia in a consistent manner and the data returned is a consistent format. Users do not need to know the details of each of the individual data stores structures and querying mechanisms. The data in the system is historical soil survey data and is composed of both soil morphological description data and laboratory analysis data. The SoilDataFederator will return all available data for a specified soil property

The SoilDataFederator web API is designed to be as simple as possible. Users can query API end point to return information about
and then return data using the
The currently available datasets and their contributors are listed HERE

The code for the SoilDataFederator system is written in R and can be found HERE

API Key Registration

You need to register for an API Key to be able to use the API to access the soil data. You can quickly register HERE. Just supply your email address, name and organisation and you are good to go. We might get in touch once in a while to ask for feedback or let you know about changes etc. All of the current endpoints will work without an API Key, except for the "GetSoilData" endpoint - the one you'll actually want to use. If you don't want to register, but instead you just want to check out how the API works you can use usr=Demo & key=Demo authentication. Only the first 5 records will be returned.

Licensing

All data in SoilDataFederator system are publicly available, typically under a CC BY 4.0 license , meaning you are free to use this data as is but you must attribute the original source. No guarantee of accuracy or quality is made. Explicit licensing information for each data set can be obtained from the "Dataset" endpoint

Examples

The Swagger UI for the API is located HERE. The Swagger UI allows users to quickly test the functionality of the API.
Below are some examples for the various endpoints in the API. You can click on these links to see what information is returned.

An R script which demonstrates how to access these endpoints can be downloaded HERE.

The endpoint can return data in either, json, xml or csv formats. The json format is by far the most efficient format for big data queries.
The API uses authentication (user name & password) to restrict access to data that is not publicly available. By default, only publicly available data sets are returned from queries.



The following endpoints are currently available in the SoilDataFederator

DataSets

The DataSets endpoint returns all of the DataSets available in the SoilDataFederator. Examples of the 3 different returned formats are listed below. After this, only the json example will be provided but other formats can be returned using the same query parameters.

Endpoint Parameters

Endpoint Syntax



Properties

The Properties endpoint returns all of the soil properties known to the SoilDataFederator. Properties are broken down into two groups. ""FieldMeasurement" and "LaboratoryMeasurement" or more commonly known as Morphology and Lab data.

Endpoint Parameters

 

Endpoint Syntax



PropertyGroups

The PropertyGroups endpoint returns all of the soil PropertyGroups known to the SoilDataFederator as described in the "Propeties" endpoint.

Endpoint Parameters

Endpoint Syntax



SoilData

The SoilData endpoint returns soil property data from all of the datasets in a consistent format. The SoilDataFederator queries the datasets individual datastore and translates the disparate data on the fly into a consistent format. Each dataset datastore is queried in turn, so it can take a long time for this endpoint to return data, depending on the amount of data to be retrieved. The examples below use the "numToReturn" parameter to reduce the number of records to be returned purely to speed up the demonstration. Remove this parameter to see the full dataset. The standard fields returned from this end point are listed below.

Endpoint Parameters

Further filter parameters can potentially be added on request by asking a developer

Endpoint Syntax



ObservationLocations

The ObservationLocations endpoint Returns all locations for which there is any data. ie soil sample location. Data for a specific property may or may not exist at these locations

Endpoint Parameters

Endpoint Syntax


DataQualityDescriptions

Returns the descriptions of the data quality codes

Endpoint Parameters

Endpoint Syntax



Output Data Format

The fields returned from the SoilDataFederator for the "SoilData" endpont are
 

An example of what the returned data looks like



Output format

TERN logoNCRIS logo

TERN is supported by the Australian Government through the National Collaborative Research Infrastructure Strategy and the Super Science Initiative.