Difference between revisions of "Querying Coral Records"

From Linked Earth Wiki
Jump to: navigation, search
(Example: Get a list of datasets datasets with archive coral (limit to 10))
Line 25: Line 25:
  
 
<pre>
 
<pre>
{{ #ask: [[Category:Dataset_©]] [[archiveType::coral]] [[IncludesPaleoData_©.FoundInMeasurementTable_©.IncludesVariable_©.OnProxyObservationProperty_©::D18O]]
+
{{ #ask:  
 +
[[Category:Dataset_©]]  
 +
[[IncludesPaleoData_©.FoundInMeasurementTable_©.IncludesVariable_©.MeasuredOn_©::<q>[[Category:Coral]]</q>]]
 +
[[IncludesPaleoData_©.FoundInMeasurementTable_©.IncludesVariable_©.OnProxyObservationProperty_©::D18O]]
 
  | ?IncludesPaleoData_©=PaleoData
 
  | ?IncludesPaleoData_©=PaleoData
 
  | format=broadtable
 
  | format=broadtable
Line 31: Line 34:
 
}}
 
}}
 
</pre>
 
</pre>
{{ #ask: [[Category:Dataset_©]] [[archiveType::coral]] [[IncludesPaleoData_©.FoundInMeasurementTable_©.IncludesVariable_©.OnProxyObservationProperty_©::D18O]]
+
{{ #ask:  
 +
[[Category:Dataset_©]]  
 +
[[IncludesPaleoData_©.FoundInMeasurementTable_©.IncludesVariable_©.MeasuredOn_©::<q>[[Category:Coral]]</q>]]
 +
[[IncludesPaleoData_©.FoundInMeasurementTable_©.IncludesVariable_©.OnProxyObservationProperty_©::D18O]]
 
  | ?IncludesPaleoData_©=PaleoData
 
  | ?IncludesPaleoData_©=PaleoData
 
  | format=broadtable
 
  | format=broadtable
Line 40: Line 46:
  
 
<pre>
 
<pre>
{{#ask: [[Category:Location_©]] [[CoordinatesFor.archiveType::coral]] [[Ocean::Atlantic]]
+
{{#ask:  
 +
[[Category:Location_©]]  
 +
[[CoordinatesFor.IncludesPaleoData_©.FoundInMeasurementTable_©.IncludesVariable_©.MeasuredOn_©::<q>[[Category:Coral]]</q>]]
 +
[[Ocean::Atlantic]]
 
  | ?Coordinates
 
  | ?Coordinates
 
  | ?CoordinatesFor
 
  | ?CoordinatesFor
Line 54: Line 63:
  
  
{{#ask: [[Category:Location_©]] [[CoordinatesFor.archiveType::coral]] [[Ocean::Atlantic]]
+
{{#ask:  
 +
[[Category:Location_©]]  
 +
[[CoordinatesFor.IncludesPaleoData_©.FoundInMeasurementTable_©.IncludesVariable_©.MeasuredOn_©::<q>[[Category:Coral]]</q>]]
 +
[[Ocean::Atlantic]]
 
  | ?Coordinates
 
  | ?Coordinates
 
  | ?CoordinatesFor
 
  | ?CoordinatesFor

Revision as of 04:20, 7 September 2016

This is an example on how to query the datasets on the wiki using Semantic Media Wiki (SMW) queries. The queries refer to the Special:Categories and Special:Properties defined in the wiki.

Example: Get a list of datasets datasets with archive coral (limit to 10)

{{ #ask: 
[[Category:Dataset_©]] 
[[IncludesPaleoData_©.FoundInMeasurementTable_©.IncludesVariable_©.MeasuredOn_©::<q>[[Category:Coral]]</q>]]
 | mainlabel=Datasets
 | format=broadtable
 | limit=10
}}


Example: Get a list of datasets with archive coral and observation d18O

{{ #ask: 
[[Category:Dataset_©]] 
[[IncludesPaleoData_©.FoundInMeasurementTable_©.IncludesVariable_©.MeasuredOn_©::<q>[[Category:Coral]]</q>]]
[[IncludesPaleoData_©.FoundInMeasurementTable_©.IncludesVariable_©.OnProxyObservationProperty_©::D18O]]
 | ?IncludesPaleoData_©=PaleoData
 | format=broadtable
 | limit=10
}}


Example: Search and map the records for the Atlantic

{{#ask: 
[[Category:Location_©]] 
[[CoordinatesFor.IncludesPaleoData_©.FoundInMeasurementTable_©.IncludesVariable_©.MeasuredOn_©::<q>[[Category:Coral]]</q>]]
[[Ocean::Atlantic]]
 | ?Coordinates
 | ?CoordinatesFor
 | ?Name_©
 | showtitle=off
 | maxzoom=14
 | minzoom=1
 | limit=500
 | template=LiPDLocation
 | format=leaflet
}}