W3C home > Mailing lists > Public > public-vocabs@w3.org > August 2012

Rich Snippets Testing Tool returning warning for legitimate Event URL?

From: Aaron Bradley <aaranged@yahoo.com>
Date: Thu, 2 Aug 2012 09:42:02 -0700 (PDT)
Message-ID: <1343925722.69409.YahooMailNeo@web160701.mail.bf1.yahoo.com>
To: Public Vocabs <public-vocabs@w3.org>
The Google Rich Snippet Testing tool [1] is returning an error for Event types encoded with any absolute URL except for those that use the TLD example.com

This validates fine:
<div itemscope itemtype="http://schema.org/MusicEvent">
<a itemprop="url" href="http://example.com/party-hard/" target="_blank">
<span itemprop="name">Party Hard</span></a> -
<meta itemprop="startDate" content="2016-04-21T20:00">
Thu, 04/21/16, 8:00 p.m.
</div>

This, however:
<div itemscope itemtype="http://schema.org/MusicEvent">
<a itemprop="url" href="http://madeupdomain.com/party-hard/" target="_blank">
<span itemprop="name">Party Hard</span></a> -
<meta itemprop="startDate" content="2016-04-21T20:00">
Thu, 04/21/16, 8:00 p.m.
</div>
... results in the following warning:

Warning: Event urls are pointing to a different domain than the base url.

I don't see anything in the schema.org documentation to suggest that the url property for Thing requires there be any relationship between an encoded URL and the URL of the resource.

Furthermore, this seems to be specific to Event types.  I haven't tested all types, but this does not produce a warning in the Testing Tool:
<div itemscope itemtype="http://schema.org/Person">
<a itemprop="url" href="http://madeupdomain.com/john-doe"><span itemprop="name">John Doe</span></a>
<div>

So is the warning in the Testing Tool in error, or is there some undocumented requirement for an Event type url itemprop of which I'm not aware?  Thanks!


[1] http://www.google.com/webmasters/tools/richsnippets

Received on Thursday, 2 August 2012 16:42:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 2 August 2012 16:42:33 GMT