我决定为我的活动网站添加数据标记,以便搜索引擎更轻松地使用我的数据。我决定使用 RDFa 而不是微格式和微数据,但我不确定如何最好地使用它...
我的网站:
1 页,其中包含事件列表,其中包含每个事件的基本详细信息,每个事件都可以点击,将您带到包含该事件完整详细信息的页面。
问题:
我应该将 RDFa 放在哪个页面上?我本来会选择每个事件自己的页面,但我很困惑:
<a href="http://www.example.com/events/spinaltap" rel="v:url"
property="v:summary">Spinal Tap</a>
我是否需要从其自身创建到事件页面的链接,或者 RDFa 读者/搜索引擎是否知道使用当前的 url
我一直在使用以下 RDFa Google 网站站长的事件规范:
http:// www.google.com/support/webmasters/bin/answer.py?hl=zh-CN&answer=164506
I've decided to include data markup for my events site to make it easier for search engines to use my data. I've decided to go for RDFa over microformats and microdata, however I'm unsure how to best use it...
my site:
1 page with a list of events with the essential details for each, each event is clickable taking you to a page with the that events full details.
the question:
Which page should i put the RDFa on? I would have gone for each events own page but i'm confused by:
<a href="http://www.example.com/events/spinaltap" rel="v:url"
property="v:summary">Spinal Tap</a>
do i need to make a link to the events page from itself or do RDFa readers / search engines know to use the current url
i've been using the following RDFa events spec from google webmasters:
http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=164506
发布评论
评论(1)
如果您要将此 RDFa 标记添加到事件的详细信息页面,那么您可以使用如下内容:
我将
更改为
。这是创建仅对 RDFa 解析器可见的“不可点击”链接的一种方法。
实际上,您可以只使用空的
resource=""
,因为resource
接受相对 URL,并且空的相对 URL 会扩展为当前页面的 URL(除非您是使用
做一些有趣的事情)。If you are adding this RDFa markup to the event's detail page, then you could just use something like this:
I changed
<a href="...">
to<span resource="...">
. That's one way of creating a “non-clickable” link that will be visible only to RDFa parsers.Actually you could just use an empty
resource=""
, becauseresource
accepts a relative URL and an empty relative URL expands to the URL of the current page (unless you're doing something funny with<base>
).