- From: Dietrich Schulten <ds@escalon.de>
- Date: Tue, 10 Nov 2015 14:26:23 +0100
- To: Ruben Verborgh <ruben.verborgh@ugent.be>
- Cc: Hydra <public-hydra@w3.org>, Maik Riechert <m.riechert@reading.ac.uk>
Received on Tuesday, 10 November 2015 13:26:56 UTC
Am 10.11.2015 13:49 schrieb Ruben Verborgh <ruben.verborgh@ugent.be>: > > Hi Maik, > > > If I have a URL structure with repeating parameters like > > > > http://example.com/coveragecollection?include=domain&include=range > > > > how would that look like in an IriTemplate? > > I think that would be > http://example.com/coveragecollection?include={includes} > where the variable includes is multi-valued. > > We would then need a variable serialization for multiple values, > that for instance expands the template to > http://example.com/coveragecollection?include=abc,def > > > Is that possible at all? > > I don't see multi-valued parameters in the spec right now. > Others, do we have something for that? > We do, since we refer to RFC 6570 for the IriTemplate syntax. The UriTemplates RFC 6570 has a * modifier for this: http://tools.ietf.org/html/rfc6570#page-16 It is used for list and object expansion. List expansion examples: Given the variable assignments year := ("1965", "2000", "2012") dom := ("example", "com") Example Template Expansion find{?year*} find?year=1965&year=2000&year=2012 www{.dom*} www.example.com There is also an object expansion example which resolves an address object into keyvalue pairs for the address attributes. HTH Dietrich
Received on Tuesday, 10 November 2015 13:26:56 UTC