Difference between revisions of "Querying Coral Records"

From Linked Earth Wiki
Jump to: navigation, search
(Get the dataset list only for first query)
(Fix queries)
 
(13 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
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: Get a list of datasets datasets with archive coral (limit to 10) ===
+
===Example: Get a list of datasets with archive coral (limit to 10) ===
  
 
<pre>
 
<pre>
{{ #ask: [[Category:Dataset_©]] [[IncludesPaleoData_©.BasedOn_©.ArchivedIn_©.Name_©::coral]]
+
{{ #ask:  
 +
[[Category:Dataset_(L)]]  
 +
[[IncludesPaleoData_(L).FoundInMeasurementTable_(L).IncludesVariable_(L).MeasuredOn_(L)::<q>[[Category:Coral]]</q>]]
 
  | mainlabel=Datasets
 
  | mainlabel=Datasets
 
  | format=broadtable
 
  | format=broadtable
Line 12: Line 14:
 
}}
 
}}
 
</pre>
 
</pre>
{{ #ask: [[Category:Dataset_©]][[IncludesPaleoData_©.BasedOn_©.ArchivedIn_©.Name_©::coral]]
+
{{ #ask:  
 +
[[Category:Dataset_(L)]]  
 +
[[IncludesPaleoData_(L).FoundInMeasurementTable_(L).IncludesVariable_(L).MeasuredOn_(L)::<q>[[Category:Coral]]</q>]]
 
  | mainlabel=Datasets
 
  | mainlabel=Datasets
 
  | format=broadtable
 
  | format=broadtable
Line 21: Line 25:
  
 
<pre>
 
<pre>
{{ #ask: [[Category:Dataset_©]] [[IncludesPaleoData_©.BasedOn_©.ArchivedIn_©.Name_©::coral]] [[IncludesPaleoData_©.BasedOn_©.Name_©::d18O]]
+
{{ #ask:  
  | ?IncludesPaleoData_©=PaleoData
+
[[Category:Dataset_(L)]]  
 +
[[IncludesPaleoData_(L).FoundInMeasurementTable_(L).IncludesVariable_(L).MeasuredOn_(L)::<q>[[Category:Coral]]</q>]]
 +
[[IncludesPaleoData_(L).FoundInMeasurementTable_(L).IncludesVariable_(L).ProxyObservationType_(L)::D18O]]
 +
  | ?IncludesPaleoData_(L)=PaleoData
 
  | format=broadtable
 
  | format=broadtable
 
  | limit=10
 
  | limit=10
 
}}
 
}}
 
</pre>
 
</pre>
{{ #ask: [[Category:Dataset_©]][[IncludesPaleoData_©.BasedOn_©.ArchivedIn_©.Name_©::coral]] [[IncludesPaleoData_©.BasedOn_©.Name_©::d18O]]
+
{{ #ask:  
  | ?IncludesPaleoData_©=PaleoData
+
[[Category:Dataset_(L)]]  
 +
[[IncludesPaleoData_(L).FoundInMeasurementTable_(L).IncludesVariable_(L).MeasuredOn_(L)::<q>[[Category:Coral]]</q>]]
 +
[[IncludesPaleoData_(L).FoundInMeasurementTable_(L).IncludesVariable_(L).ProxyObservationType_(L)::D18O]]
 +
  | ?IncludesPaleoData_(L)=PaleoData
 
  | format=broadtable
 
  | format=broadtable
 
  | limit=10
 
  | limit=10
 
}}
 
}}
 
  
 
===Example: Search and map the records for the Atlantic===
 
===Example: Search and map the records for the Atlantic===
  
 
<pre>
 
<pre>
{{#ask: [[Category:Location_©]] [[CoordinatesFor.archiveType::Coral]] [[Ocean::Atlantic]
+
{{#ask:  
 +
[[Category:Location_(L)]]  
 +
[[CoordinatesFor.IncludesPaleoData_(L).FoundInMeasurementTable_(L).IncludesVariable_(L).MeasuredOn_(L)::<q>[[Category:Coral]]</q>]]
 +
[[Ocean::Atlantic]]
 
  | ?Coordinates
 
  | ?Coordinates
 
  | ?CoordinatesFor
 
  | ?CoordinatesFor
  | ?Name_©
+
  | ?Name_(L)
 
  | showtitle=off
 
  | showtitle=off
 
  | maxzoom=14
 
  | maxzoom=14
Line 51: Line 63:
  
  
{{#ask: [[Category:Location_©]] [[CoordinatesFor.archiveType::Coral]] [[Ocean::Atlantic]]
+
{{#ask:  
 +
[[Category:Location_(L)]]  
 +
[[CoordinatesFor.IncludesPaleoData_(L).FoundInMeasurementTable_(L).IncludesVariable_(L).MeasuredOn_(L)::<q>[[Category:Coral]]</q>]]
 +
[[Ocean::Atlantic]]
 
  | ?Coordinates
 
  | ?Coordinates
 
  | ?CoordinatesFor
 
  | ?CoordinatesFor
  | ?Name_©
+
  | ?Name_(L)
 
  | showtitle=off
 
  | showtitle=off
 
  | maxzoom=14
 
  | maxzoom=14

Latest revision as of 18:48, 24 October 2018

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 with archive coral (limit to 10)

{{ #ask: 
[[Category:Dataset_(L)]] 
[[IncludesPaleoData_(L).FoundInMeasurementTable_(L).IncludesVariable_(L).MeasuredOn_(L)::<q>[[Category:Coral]]</q>]]
 | mainlabel=Datasets
 | format=broadtable
 | limit=10
}}
The query result could not be obtained from the SPARQL database. This error might be temporary or indicate a bug in the database software.

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

{{ #ask: 
[[Category:Dataset_(L)]] 
[[IncludesPaleoData_(L).FoundInMeasurementTable_(L).IncludesVariable_(L).MeasuredOn_(L)::<q>[[Category:Coral]]</q>]]
[[IncludesPaleoData_(L).FoundInMeasurementTable_(L).IncludesVariable_(L).ProxyObservationType_(L)::D18O]]
 | ?IncludesPaleoData_(L)=PaleoData
 | format=broadtable
 | limit=10
}}
The query result could not be obtained from the SPARQL database. This error might be temporary or indicate a bug in the database software.

Example: Search and map the records for the Atlantic

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


The query result could not be obtained from the SPARQL database. This error might be temporary or indicate a bug in the database software.