reteplayground
Select

๐Ÿ“ Map the giant sequoias

SELECT ?wkt ?species ?h WHERE {
  ?t a tci:Tree ; tci:taxon ?tx ; geo:hasGeometry/geo:asWโ€ฆ
  ?tx skos:prefLabel ?species .
  FILTER(CONTAINS(?species, "Sequoiadendron"))
  OPTIONAL { ?t tci:heightM ?h }
}
Run this query โ†’ no server ยท no download ยท no account
caviri.github.io/rete
Run this query in the playground โ†’ no server, no download โ€” the query runs in your browser.

The query

PREFIX tci: <https://data.graphplaza.com/tree-city-inventory/ns#> PREFIX skos: <http://www.w3.org/2004/02/skos/core#> PREFIX geo: <http://www.opengis.net/ont/geosparql#> SELECT ?wkt ?species ?h WHERE { ?t a tci:Tree ; tci:taxon ?tx ; geo:hasGeometry/geo:asWKT ?wkt . ?tx skos:prefLabel ?species . FILTER(CONTAINS(?species, "Sequoiadendron")) OPTIONAL { ?t tci:heightM ?h } } LIMIT 300

rete playground ยท documentation ยท github.com/caviri/rete