Skip to content

Create a page that explains the IriTemplate starting from an example #7

@Mec-iS

Description

@Mec-iS

Starting from the triples example in HydraCG/Specifications#171

That has been ported in JSON-LD by @vddesai1998 as:

{
    "@context": "/serverapi/context.jsonld",
    "@id": "https://tiles.openplanner.team/planet",
    "@type": "Collection",
    "search": {
        "@type": "IriTemplate",
        "template": "https://c.tile.openstreetmap.org/{z}/{x}/{y}.examplejsonld",
        "variableRepresentation": "BasicRepresentation",
        "mapping": [
            {
                "@type": "IriTemplateMapping",
                "variable": "x",
                "property": "tiles:longitudeTile",
                "required": true
            },
              {
                "@type": "IriTemplateMapping",
                "variable": "y",
                "property": "tiles:latitudeTile",
                "required": true
            },
              {
                "@type": "IriTemplateMapping",
                "variable": "z",
                "property": "tiles:zoomTile",
                "required": true
            }
        ]
    }
}

Produce a documentation section that explains:

  • which problem is solved (uniquely identify a tile on a map by indication of row, height and zoom)
  • how the variables in the IRI (z/x/y) are mapped to a templates
  • what is VariableRepresentation
  • ...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions