ブログ ページを持っていますが、schema.org の microdata を正しく理解しているかどうかわかりません。確信が持てないケースがいくつかあり、それらについて話し合うのは良いことだと思います。私のコード:
<body lang="en" itemscope itemtype="http://schema.org/WebPage">
<section class="blog" itemscope itemtype="http://schema.org/Blog">
<article class="post" itemprop="blogPosts" itemscope itemtype="http://schema.org/BlogPosting">
<header>
<time class="publish-date" datetime="2011-11-06T13:42:04+01:00" itemprop="datePublished">
November 2011
</time>
<h1 itemprop="name"><a href=blog/post-slug.html" itemprop="url">
My Title Here
</a></h1>
</header>
<section itemprop="description">
<p>The lead text here</p>
</section>
<section itemprop="articleBody">
<p>The other text here</p>
</section>
<footer>
This article is published by
<span itemprop="author">
John Doe
</span>
at
<time datetime="2012-10-01T15:33:04+02:00" itemprop="datePublished">
1 October 2012 on 15:33
</time>
and listed in the category
<a href=""><span itemprop="articleSection">
My Category
</span></a>.
The article is licensed under the <a href="http://creativecommons.org/licenses/by-sa/3.0/" target="_blank">Creative Commons Attribution-ShareAlike 3.0</a>.
</footer>
</article>
<h1>Comments</h1>
<ul class="comments" itemscope itemtype="http://schema.org/UserComments">
<li itemprop="comment">
<span itemprop="creator">Jane Doe</span>
<time itemprop="commentTime" datetime="2011-05-08T19:30">May 8, 7:30pm</time>
<article itemprop="commentText">
<p>A very good comment here</p>
</article>
</li>
</ul>
</section>
</body>
- 複数の itemprop 属性を持つことはできますか? 著者の著作権所有者も作成していますが、それが可能かどうかはわかりません。
- コメントのリストはユーザー コメントのスコープであり、個々のアイテムはコメントの itemprop ですが、それが可能かどうかはわかりません。
- 記事の本文と本文を分けているので、ブログ記事の一覧が簡単に作れます。リードを「説明」、本文を(完全な?)記事本文として示しましたが、articleBody が全文(リードを含む)なのかリードなしのテキストなのかわかりません。
- 私が犯した他の間違いはありますか?
提案と修正は大歓迎です!