Difference between revisions of "Querying Coral Records"
From Linked Earth Wiki
(Get the dataset list only for first query) |
(access archiveType directly) |
||
Line 6: | Line 6: | ||
<pre> | <pre> | ||
− | {{ #ask: [[Category:Dataset_©]] [ | + | {{ #ask: [[Category:Dataset_©]] [archiveType::Coral]] |
| mainlabel=Datasets | | mainlabel=Datasets | ||
| format=broadtable | | format=broadtable | ||
Line 12: | Line 12: | ||
}} | }} | ||
</pre> | </pre> | ||
− | {{ #ask: [[Category:Dataset_©]][[ | + | {{ #ask: [[Category:Dataset_©]][[archiveType::Coral]] |
| mainlabel=Datasets | | mainlabel=Datasets | ||
| format=broadtable | | format=broadtable | ||
Line 21: | Line 21: | ||
<pre> | <pre> | ||
− | {{ #ask: [[Category:Dataset_©]] [[ | + | {{ #ask: [[Category:Dataset_©]] [[archiveType::Coral]] [[IncludesPaleoData_©.BasedOn_©.Name_©::d18O]] |
| ?IncludesPaleoData_©=PaleoData | | ?IncludesPaleoData_©=PaleoData | ||
| format=broadtable | | format=broadtable | ||
Line 27: | Line 27: | ||
}} | }} | ||
</pre> | </pre> | ||
− | {{ #ask: [[Category:Dataset_©]][[ | + | {{ #ask: [[Category:Dataset_©]][[archiveType::Coral]] [[IncludesPaleoData_©.BasedOn_©.Name_©::d18O]] |
| ?IncludesPaleoData_©=PaleoData | | ?IncludesPaleoData_©=PaleoData | ||
| format=broadtable | | format=broadtable |
Revision as of 04:07, 23 June 2016
Contents
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_©]] [archiveType::Coral]] | mainlabel=Datasets | format=broadtable | limit=10 }}
Example: Get a list of datasets with archive coral and observation d18O
{{ #ask: [[Category:Dataset_©]] [[archiveType::Coral]] [[IncludesPaleoData_©.BasedOn_©.Name_©::d18O]] | ?IncludesPaleoData_©=PaleoData | format=broadtable | limit=10 }}
Example: Search and map the records for the Atlantic
{{#ask: [[Category:Location_©]] [[CoordinatesFor.archiveType::Coral]] [[Ocean::Atlantic] | ?Coordinates | ?CoordinatesFor | ?Name_© | showtitle=off | maxzoom=14 | minzoom=1 | limit=500 | template=LiPDLocation | format=leaflet }}