Difference between revisions of "Querying the Datasets"

From Linked Earth Wiki
Jump to: navigation, search
(Created page with "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 Datas...")
 
(Example: Get a List of Datasets with archive type "Sclerosponge" and plot them on a map)
Line 23: Line 23:
 
  | ?CoordinatesFor
 
  | ?CoordinatesFor
 
  | ?Name_©
 
  | ?Name_©
  | markerclusters=on
+
  | markercluster=on
 
  | showtitle=off
 
  | showtitle=off
 
  | maxzoom=14
 
  | maxzoom=14
Line 36: Line 36:
 
  | ?CoordinatesFor
 
  | ?CoordinatesFor
 
  | ?Name_©
 
  | ?Name_©
  | markerclusters=on
+
  | markercluster=on
 
  | showtitle=off
 
  | showtitle=off
 
  | maxzoom=14
 
  | maxzoom=14

Revision as of 06:51, 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 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
}}