Re: [Specifications] IriTemplate should have a way to describe variable as UUID etc.

What on earth is `uniqueIdentifierComponent`? It sound awful specific. IMO we need something more generic. 

Like you say, currently we have the `hydra:property` term.

``` json
{
  "@type": "IriTemplate",
  "mapping": [
    {
      "@type": "IriTemplateMapping",
      "property": "hydra:freetextQuery"
    }
  ]
}
```

Strangely enough it doesn't have a range defined. But, I assume it's intended to be used with `rdf:Property` and the data type of the mapped property should be taken from that property's range?

If so, maybe the simplest is to explicitly declare that if necessary. Even on an anonymous property?

``` json
{
  "@type": "IriTemplate",
  "mapping": [
    {
      "@type": "IriTemplateMapping",
      "variable": "identifier",
      "property": {
        "rdfs:range": "??:uuid"
      }
    }
  ]
}
```

-- 
GitHub Notification of comment by tpluscode
Please view or discuss this issue at https://github.com/HydraCG/Specifications/issues/145#issuecomment-341986583 using your GitHub account

Received on Sunday, 5 November 2017 16:40:51 UTC