Closed (works as designed)
Project:
Schema.org
Version:
7.x-1.0-beta3
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 May 2012 at 22:19 UTC
Updated:
30 May 2012 at 07:01 UTC
I am pretty new to the use of Shema.org, but I was under the impression from their website and from what I had read on Google that the HTML markup format was different to what this module puts out.
The examples on http://schema.org/Person use:
<div itemscope itemtype="http://schema.org/Person">
<span itemprop="name">Jane Doe</span>
<img src="janedoe.jpg" itemprop="image" />
</div>using this module it would be:
<div typeof="schema:Person sioc:Item foaf:Document">
<span property="schema:name">Jane Doe</span>
<span rel="schema:image"><img src="janedoe.jpg" /></span>
</div>Should the module not move towards the shema.org notation?
Comments
Comment #1
scor commentedThis is by design. This module relies on the RDFa syntax in Drupal 7. The examples on schema.org are using the microdata syntax (@itemscope, etc.). They've also announced their support for the new RDFa Lite syntax (which is very similar to what this module outputs) but they haven't updated their examples. Schema.org is a a vocbulary which syntax agnostic (though their examples are in microdata). The topic of syntax is explained on the project description at http://drupal.org/project/schemaorg (see syntax section). There is also a microdata module for Drupal.
Comment #2
duncan.moo commentedAs I said I am new to this, so thanks for spelling it out for me. I had read the project page but references to RDFa syntax formats had me lost.
From what I have read however it appears that microdata is the future, but for now given Drupal's native handling of RDFa in core, and your module which works great, this is the way to go.
Thanks