[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
URI Templates in Atom links
- To: Atom-Syntax <atom-syntax@xxxxxxx>
- Subject: URI Templates in Atom links
- From: James Abley <james.abley@xxxxxxxxx>
- Date: Fri, 26 Feb 2010 12:20:38 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=BaiV9OXzCo1dSwK43fxMgTWYPNKzscGBE9QHACXk3qI=; b=WmQqUARNSHofeB4YN3qQan29EvXT/wFDp+9LGSMhhKcZyaTaUdsg9dA4LRFeuH2D6L sscvtd7ZKCnh8vjxZZjxwM9B9FAaMu3vRhHSk6DuMhzbG/ztuqcXPPF67GAAGmalDSh9 XQu5kXtrBVXG4GbMWnueOIlaDVxgiiThfUuZc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=IOIFhPEUtVoexEma6wYNEi1LGsbZUHL6RNO2a3029rf7agXtyrTspIz+2cmqBApSlt e6ozq2TjovWzQIMmtBqQadqBG/uCPc4EZSTrrde2xh1PhxbKNNyhvvGQV6MSce2rLMlH 2Bok9EsiaqY7XDYH9C8eCUsBrMilbuWrpaaiM=
- List-archive: <http://www.imc.org/atom-syntax/mail-archive/>
- List-id: <atom-syntax.imc.org>
- List-unsubscribe: <mailto:atom-syntax-request@imc.org?body=unsubscribe>
- Sender: owner-atom-syntax@xxxxxxxxxxxx
Hi,
Just curious if anyone has done this or has opinions either way; e.g.
<link href="" href="http://example.com/path/to/{deviceType}/movie/resource">http://example.com/path/to/{deviceType}/movie/resource" type="video/quicktime" />
Where the client applications know to substitute the parameter appropriately.
Versus using Media RSS or similar:
<media:group>
<media:content url="" href="http://example.com/movie1.mov">http://example.com/movie1.mov"
fileSize="15555"
type="video/quicktime"
medium="video"
isDefault="true"
_expression_="full"
bitrate="128"
framerate="25"
samplingrate="44.1"
channels="2"
duration="185"
height="200"
width="300"
lang="en"/>
<media:content url="" href="http://example.com/movie2.mov">http://example.com/movie2.mov"
fileSize="12345"
type="video/quicktime"
medium="video"
isDefault="true"
_expression_="full"
bitrate="128"
framerate="25"
samplingrate="44.1"
channels="2"
duration="185"
height="200"
width="300"
lang="en" />
</media:group>
For my domain (mobile applications) the smaller payload is quite attractive, and I control all of the clients of the feed, since I'm writing them. One niggle is that I don't think the URI template is a valid IRI, so validation tools might grouse.
Cheers,
James