<link rel="data" type="data/json" href="http://example.com/recipes/chicken.js" /> <link rel="data" type="data/xml" href="http://example.com/recipes/chicken.xml" />
Here is the html:
<div itemid="1234">Chicken marsala</div> <div itemid="1235">Fried chicken</div> <div itemid="1236">Chicken curry</div>
{ head:{ title:'', source:'', version:'' }, items:[ { id:'1234', type:'recipe', title:'Chicken marsala', ingredients:'here...' }, { id:'1235', type:'recipe', title:'Fried chicken', ingredients:'here...' } ] }
<data> <head> <title>here</title> <source></source> <version></version> </head> <items> <item id="1234" type="recipe"> <title>chicken marsala</title> <ingredients>here...</ingredients> </item> <item id="1235" type="recipe"> <title>fried chicken</title> <ingredients>here...</ingredients> </item> </items> </data>
<link rel="alternative" type="application/event+json" href="http://example.com/events/2010/06/03/schweet.json" />
http://dev.w3.org/html5/md/#application-microdata-json
So you'd have an alternative resource
<link rel="alternative" type="application/microdata+json" href="http://dev.w3.org/html5/md/#application-microdata-json" />
{ "items": [ { "id": "http://example.com/events/2010/06/03/schweet", "type": "http://schema.org/Event", "properties": { "startDate": ["2010-06-03"], "location": [{ "id": "http://example.com/places/my-crib", "type": "http://schmea.org/Place", "properties": { "url": ["http://example.com/places/my-crib"], "address": [{ "type": "http://schema.org/PostalAddress", "properites": { "addressLocality": "Knoxville", "addressRegion": "TN" } }] } }] } } ] }
Here is the html:
Here is the data island in json: Here is the data island in xml: