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" 
	<a itemprop="url" href="http://www.domain.com/ResidencePage">
	<img alt="This is X Residence" itemprop="image" 

	<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>

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 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:29:21 UTC