Example API
...
searches for specific
...
data
This section shows some examples of API search queries for datasets with specific parameters. There are many more parameters that can be searched, please refer to the TERN vocabularies for a full list of parameters. Each entry has its own unique URI that can be used as a search value.
...
Region
Filter data whose site is Search query for all the data collected at sites located within a specific region.
Example 1 - Data collected in the Bioregion of Cape York Peninsula
Code Block |
---|
"region": [ "http://linked.data.gov.au/dataset/bioregion/CYP" ] |
Example 2 - Data collected in the Queensland state
Code Block |
---|
"region": [ "http://linked.data.gov.au/dataset/asgs2016/stateorterritory/3" ] |
Example 3 - Data collected either in Tasmania or in Cape York Peninsula
Code Block |
---|
"region": [ "http://linked.data.gov.au/dataset/asgs2016/stateorterritory/6", "http://linked.data.gov.au/dataset/bioregion/CYP" ] |
...
Dataset
Filter data by Search query to return all data contained within a specific dataset.
Example 1 - Data Refine to data from “Tern Surveillance Monitoring” or “Williams Wet Tropics Vertebrates” datasets
Code Block |
---|
"dataset": [ "http://linked.data.gov.au/dataset/ausplots", "http://linked.data.gov.au/dataset/wet-tropics-vertebrate" ] |
...
Site
Retrieve site specific data from 1 for one or more ecological monitoring sites.
Example 1 - Retrieve all the data from Tern Surveillance Monitoring site nsabbs0001
Code Block |
---|
"site_id": [ "http://linked.data.gov.au/dataset/ausplots/site-nsabbs0001" ] |
...
Site Visit
Retrieve site visit data from 1 one or more ecological monitoring sites.
Example 1 - Retrieve all the data from Tern Surveillance Monitoring sitevisit 58580
Code Block |
---|
"site_visit_id": [ "http://linked.data.gov.au/dataset/ausplots/sv-58580" ] |
...
Feature
...
of
...
Interest
EcoPlots has records for a broad range of observations that are categorised in as a Feature of Interest (FOI). Please see the FOI vocabularies for more detaildetails.
Example 1 - Retrieve all the data from Landform the exists for “Landform”feature of interest
Code Block |
---|
"feature_type": [ "http://linked.data.gov.au/def/tern-cv/2cf3ed29-440e-4a50-9bbc-5aab30df9fcd" ] |
...
Observable property
...
Each observation in EcoPlots is measuring an observable property (or parameterEcoPlots collects data for many different is observable properties (or parameters). Please see the Parameter vocabularies for more detaildetails.
Example 1 - Get all the data from Crown cover “Crown cover”parameter.
Code Block |
---|
"observed_property": [ "http://linked.data.gov.au/def/tern-cv/83ac0278-51cd-4d1a-8e05-7c1fc68cf020" ] |
...
Refine search to a temporal extent (date)
In addition to all the vocabularised facets , you can filter that can be used for searching, it is all possible to refine data based on a temporal resolution search.
Example 1 - Get all the data between 1st January 2006 and 30th July 2021.
Code Block |
---|
"date_from": "2006-01-01", "date_to": "2021-07-30" |
...
Spatial extent
Need to explain how this works and how to do this.
Statial queries in EcoPlots allows Spatial queries within EcoPlots allow three different formats: GeoJSON, Well-Known Text (WKT) and Bounding Box. The A spatial query will do an “intersect” between the given geometry and the geometry of the data.
...