Difference between revisions of "Querying Coral Records"
From Linked Earth Wiki
m (Fix typo) |
(Make various queries) |
||
| Line 1: | Line 1: | ||
| + | __TOC__ | ||
| + | |||
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. | 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: | + | ===Example: Get a list of datasets datasets with archive coral (limit to 10) === |
<pre> | <pre> | ||
| − | {{ #ask: [[Category:Dataset_©]] [[IncludesPaleoData_©.BasedOn_©.Name_©:: | + | {{ #ask: [[Category:Dataset_©]] [[IncludesPaleoData_©.BasedOn_©.ArchivedIn_©.Name_©::coral]] |
| ?IncludesPaleoData_©=PaleoData | | ?IncludesPaleoData_©=PaleoData | ||
| format=broadtable | | format=broadtable | ||
| − | | limit= | + | | limit=10 |
}} | }} | ||
</pre> | </pre> | ||
| − | {{ #ask: [[Category:Dataset_©]][[IncludesPaleoData_©.BasedOn_©.Name_©:: | + | {{ #ask: [[Category:Dataset_©]][[IncludesPaleoData_©.BasedOn_©.ArchivedIn_©.Name_©::coral]] |
| ?IncludesPaleoData_©=PaleoData | | ?IncludesPaleoData_©=PaleoData | ||
| format=broadtable | | format=broadtable | ||
| − | | limit= | + | | limit=10 |
| + | }} | ||
| + | |||
| + | ===Example:Get a list of datasets with archive coral and observation d18O === | ||
| + | |||
| + | <pre> | ||
| + | {{ #ask: [[Category:Dataset_©]] [[IncludesPaleoData_©.BasedOn_©.ArchivedIn_©.Name_©::coral]] [[IncludesPaleoData_©.BasedOn_©.Name_©::d18O]] | ||
| + | | ?IncludesPaleoData_©=PaleoData | ||
| + | | format=broadtable | ||
| + | | limit=10 | ||
| + | }} | ||
| + | </pre> | ||
| + | {{ #ask: [[Category:Dataset_©]][[IncludesPaleoData_©.BasedOn_©.ArchivedIn_©.Name_©::coral]] [[IncludesPaleoData_©.BasedOn_©.Name_©::d18O]] | ||
| + | | ?IncludesPaleoData_©=PaleoData | ||
| + | | format=broadtable | ||
| + | | limit=10 | ||
| + | }} | ||
| + | |||
| + | === Example: Map the datasets with archive coral and observation d18O === | ||
| + | <pre> | ||
| + | {{#ask: [[Category:Location_©]] [[CoordinatesFor.archiveType::Coral]] [[CoordinatesFor.IncludesPaleoData_©.BasedOn_©.Name_©::d18O]] | ||
| + | | ?Coordinates | ||
| + | | ?CoordinatesFor | ||
| + | | ?Name_© | ||
| + | | showtitle=off | ||
| + | | maxzoom=14 | ||
| + | | minzoom=1 | ||
| + | | limit=500 | ||
| + | | template=LiPDLocation | ||
| + | | format=leaflet | ||
| + | }} | ||
| + | </pre> | ||
| + | |||
| + | |||
| + | {{#ask: [[Category:Location_©]] [[CoordinatesFor.archiveType::Coral]] [[CoordinatesFor.IncludesPaleoData_©.BasedOn_©.Name_©::d18O]] | ||
| + | | ?Coordinates | ||
| + | | ?CoordinatesFor | ||
| + | | ?Name_© | ||
| + | | showtitle=off | ||
| + | | maxzoom=14 | ||
| + | | minzoom=1 | ||
| + | | limit=500 | ||
| + | | template=LiPDLocation | ||
| + | | format=leaflet | ||
}} | }} | ||
Revision as of 03:42, 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_©]] [[IncludesPaleoData_©.BasedOn_©.ArchivedIn_©.Name_©::coral]]
| ?IncludesPaleoData_©=PaleoData
| format=broadtable
| limit=10
}}
Example:Get a list of datasets with archive coral and observation d18O
{{ #ask: [[Category:Dataset_©]] [[IncludesPaleoData_©.BasedOn_©.ArchivedIn_©.Name_©::coral]] [[IncludesPaleoData_©.BasedOn_©.Name_©::d18O]]
| ?IncludesPaleoData_©=PaleoData
| format=broadtable
| limit=10
}}
Example: Map the datasets with archive coral and observation d18O
{{#ask: [[Category:Location_©]] [[CoordinatesFor.archiveType::Coral]] [[CoordinatesFor.IncludesPaleoData_©.BasedOn_©.Name_©::d18O]]
| ?Coordinates
| ?CoordinatesFor
| ?Name_©
| showtitle=off
| maxzoom=14
| minzoom=1
| limit=500
| template=LiPDLocation
| format=leaflet
}}