W3C home > Mailing lists > Public > public-vocabs@w3.org > December 2011

Using Properties Multiple Times

From: <kurt@develohost.com>
Date: Fri, 09 Dec 2011 11:31:56 -0700
To: <public-vocabs@w3.org>
Message-ID: <da2d4c01765ccfca3fe81cde86fff641@develohost.com>
Let's say I have a reality listing site - is it proper to use something 
like the URL property multiple times if I have the URL in more than one 
location? For example:

<div class="apartment" itemtype="http://schema.org/Residence" 
itemscope>
	<a itemprop="url" href="http://www.domain.com/ResidencePage">
	<img alt="This is X Residence" itemprop="image" 
src="http://www.domain.com/XResidence.jpg">
	</a>

	<p itemprop="description">This is Residence X's Description</p>

	<a itemprop="url" href="http://www.domain.com/ResidencePage">
	<h1 itemprop="name">Residence X</h1>
	</a>
</div>

See how I link to the residence's page twice in two different locations 
and use the URL property both times? Once around it's image, and once 
around it's name; is is valid to use a property twice like this since 
they are both going to the same place?

I'm sure it isn't totally necessary, but is it valid?
Received on Friday, 9 December 2011 18:35:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 22 May 2012 06:48:58 GMT