Difference between revisions of "Querying the Datasets"

From Linked Earth Wiki
Jump to: navigation, search
Line 15: Line 15:
 
{{ #ask: [[Category:Dataset_©]]
 
{{ #ask: [[Category:Dataset_©]]
 
  | mainlabel=Datasets
 
  | mainlabel=Datasets
 +
| format=broadtable
 +
| limit=5
 +
}}
 +
 +
==== Example: Get a List of Datasets that have paleo data based on d18O Proxy (limit 5) ====
 +
 +
<pre>
 +
{{ #ask: [[Category:Dataset_©]] [[IncludesPaleoData_©.BasedOn_©.Name_©::d18O]]
 +
| ?IncludesPaleoData_©=PaleoData
 +
| format=broadtable
 +
| limit=5
 +
}}
 +
</pre>
 +
{{ #ask: [[Category:Dataset_©]] [[IncludesPaleoData_©.BasedOn_©.Name_©::d18O]]
 +
| ?IncludesPaleoData_©=PaleoData
 
  | format=broadtable
 
  | format=broadtable
 
  | limit=5
 
  | limit=5
Line 45: Line 60:
 
  | template=LiPDLocation
 
  | template=LiPDLocation
 
  | format=leaflet
 
  | format=leaflet
}}
 
 
 
==== Example: Get a List of Datasets that have paleo data based on d18O Proxy (limit 5) ====
 
 
<pre>
 
{{ #ask: [[Category:Dataset_©]] [[IncludesPaleoData_©.BasedOn_©.Name_©::d18O]]
 
| ?IncludesPaleoData_©=PaleoData
 
| format=broadtable
 
| limit=5
 
}}
 
</pre>
 
{{ #ask: [[Category:Dataset_©]] [[IncludesPaleoData_©.BasedOn_©.Name_©::d18O]]
 
| ?IncludesPaleoData_©=PaleoData
 
| format=broadtable
 
| limit=5
 
 
}}
 
}}

Revision as of 13:22, 22 June 2016

The data in the wiki can be queried and embedded within the wiki by Semantic Media Wiki (SMW) queries.

Semantic Media Wiki Queries

Example: Get a List of Datasets (limit to 5)

{{ #ask: [[Category:Dataset_©]]
 | mainlabel=Datasets
 | format=broadtable
 | limit=5
}}


Example: Get a List of Datasets that have paleo data based on d18O Proxy (limit 5)

{{ #ask: [[Category:Dataset_©]] [[IncludesPaleoData_©.BasedOn_©.Name_©::d18O]]
 | ?IncludesPaleoData_©=PaleoData
 | format=broadtable
 | limit=5
}}


Example: Get a List of Datasets with archive type "Sclerosponge" and plot them on a map

{{#ask: [[Category:Location_©]] [[CoordinatesFor.archiveType::Sclerosponge]]
 | ?Coordinates
 | ?CoordinatesFor
 | ?Name_©
 | markercluster=on
 | showtitle=off
 | maxzoom=14
 | minzoom=1
 | limit=500
 | template=LiPDLocation
 | format=leaflet
}}