[Specifications] Geospatial tiling description in Hydra

pietercolpaert has just created a new issue for https://github.com/HydraCG/Specifications:

== Geospatial tiling description in Hydra ==
Geospatial tiling in e.g., OpenStreetMap works according to a formula. When you open a map, and you want to know which tiles you have to show, you have to use a formula (https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames#ECMAScript_(JavaScript/ActionScript,_etc.)) to calculate which tiles you need, and fill out the description of these tiles in a URI template as follows:
`https://c.tile.openstreetmap.org/{z}/{x}/{y}.png` which results in a URL like https://c.tile.openstreetmap.org/15/16722/10964.png

I think this tiling strategy is pretty powerful, but also want to be able to expose this in my Linked Data documents as a hypermedia form.

My current suggestion to describe this would be as follows:
```turtle
<https://tiles.openplanner.team/planet> a hydra:Collection ;
            hydra:manages  <http://www.wikidata.org/entity/Q34442> .
            hydra:search [
              hydra:template "https://c.tile.openstreetmap.org/{z}/{x}/{y}.examplejsonld";
              hydra:variableRepresentation hydra:BasicRepresentation;
              hydra:mapping [
                a hydra:IriTemplateMapping;
                hydra:variable "x";
                hydra:property tiles:longitudeTile ;
                hydra:required true .
              ],[
                a hydra:IriTemplateMapping;
                hydra:variable "y";
                hydra:property tiles:latitudeTile ;
                hydra:required true .
              ],[
                a hydra:IriTemplateMapping;
                hydra:variable "z";
                hydra:property tiles:zoomTile ;
                hydra:required true .
              ] ;
            dcterms:hasPart <this_page> .
```

Currenlty this introduces 3 new properties: tiles:longitudeTile, tiles:latitudeTile, and tiles:zoomTile. Do you think adding these semantics within the Hydra spec makes sense, or should I add these elsewhere?

Please view or discuss this issue at https://github.com/HydraCG/Specifications/issues/171 using your GitHub account

Received on Wednesday, 21 November 2018 09:25:45 UTC