<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>gavin.carothers.name &#187; html5</title>
	<atom:link href="http://gavin.carothers.name/category/html5/feed/" rel="self" type="application/rss+xml" />
	<link>http://gavin.carothers.name</link>
	<description>Collecting the internet&#039;s garbage in O(n)</description>
	<lastBuildDate>Thu, 02 Sep 2010 20:51:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Understanding Microdata, now with more understanding</title>
		<link>http://gavin.carothers.name/2009/08/18/understanding-microdata-now-with-more-understanding/</link>
		<comments>http://gavin.carothers.name/2009/08/18/understanding-microdata-now-with-more-understanding/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 16:44:11 +0000</pubDate>
		<dc:creator>gavin</dc:creator>
				<category><![CDATA[html5]]></category>

		<guid isPermaLink="false">http://gavin.carothers.name/?p=36</guid>
		<description><![CDATA[Okay, I&#8217;m giving this whole HTML5 microdata a shot for real. 4475 HTML pages of it in fact. After reading what Hixie wrote, tried creating a new sample. Didn&#8217;t feel any stranger then the markup for RDFa. From a typing perspective, it is annoying to have to type the whole URI, from a reading perspective [...]]]></description>
			<content:encoded><![CDATA[<p>Okay, I&#8217;m giving this whole HTML5 microdata a shot for real. 4475 HTML pages of it in fact.</p>
<p>After reading what <a href="http://ln.hixie.ch/">Hixie</a> wrote, tried creating a <a href="http://gavin.carothers.name/microdata/geek-microdata-better.html">new sample</a>. Didn&#8217;t feel any stranger then the markup for RDFa. From a typing perspective, it is annoying to have to type the whole URI, from a reading perspective it&#8217;s much clearer what&#8217;s going on, at least to me. I also won&#8217;t be typing these every time, template systems are neat like that. Now as far as I can tell the XHTMLy solution to this using XML entities is not supported in HTML5.</p>
<p>Should have known better then to jump right from the sample into doing template markup. Having spent the morning making sure that I was producing valid HTML5, the addition of microdata caused errors at Validator.nu. It seems the method of using <code>&lt;link&gt;</code> elements is not currently supported by the validator. In fact even our sample <a href="http://validator.nu/?doc=http%3A%2F%2Fgavin.carothers.name%2Fmicrodata%2Fgeek-microdata-better.html&amp;showsource=yes">fails to validate</a>. Ugh.</p>
<p>Philip&#8217;s parser works nicely for testing to see if what I have is working, given that I can&#8217;t use the validator.</p>
<p>At this point I have markup for the relationships of Manifestations of an edition (Expression). Adding the markup for the publication dates was much more unpleasant. It seems that I have to repeat the whole:</p>
<pre>&lt;some_tag
     itemprop="http://vocab.org/frbr/core#embodiment"
     item="http://purl.org/vocab/frbr/core#Manifestation"&gt;
     &lt;link itemprop="about" href="${product.subject}"&gt;</pre>
<p>every time I need to talk about ${product.subject}. And the microdata parser happily adds the relationship all over again.</p>
<pre>  &lt;http://vocab.org/frbr/core#embodiment&gt; &lt;urn:x-domain:oreilly.com:product:9780596007683.BOOK&gt; ;
  &lt;http://vocab.org/frbr/core#embodiment&gt; &lt;urn:x-domain:oreilly.com:product:9780596806316.BOOK&gt; ;
  &lt;http://vocab.org/frbr/core#embodiment&gt; &lt;urn:x-domain:oreilly.com:product:9780596802189.EBOOK&gt; ;
  &lt;http://vocab.org/frbr/core#embodiment&gt; &lt;urn:x-domain:oreilly.com:product:9780596802028.SAF&gt; ;
  &lt;http://vocab.org/frbr/core#embodiment&gt; &lt;urn:x-domain:oreilly.com:product:9780596007683.BOOK&gt; ;
  &lt;http://vocab.org/frbr/core#embodiment&gt; &lt;urn:x-domain:oreilly.com:product:9780596806316.BOOK&gt; ;
  &lt;http://vocab.org/frbr/core#embodiment&gt; &lt;urn:x-domain:oreilly.com:product:9780596802189.EBOOK&gt; .
    .</pre>
<p>There is a great deal of markup smell coming <a href="http://gavin.carothers.name/microdata/geek-real-microdata.html">from this page now</a>. I think from here I&#8217;m going to try this as XHTML (5?) and go back to RDFa and see how that goes.</p>
<p>Will send this and earlier post to WhatWG mailing list as soon as my subscription to the WhatWG mailing list is approved.</p>
]]></content:encoded>
			<wfw:commentRss>http://gavin.carothers.name/2009/08/18/understanding-microdata-now-with-more-understanding/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Trying to understand Microdata? RDFa?</title>
		<link>http://gavin.carothers.name/2009/08/13/trying-to-understand-microdata-rdfa/</link>
		<comments>http://gavin.carothers.name/2009/08/13/trying-to-understand-microdata-rdfa/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 04:36:43 +0000</pubDate>
		<dc:creator>gavin</dc:creator>
				<category><![CDATA[html5]]></category>
		<category><![CDATA[wtf]]></category>

		<guid isPermaLink="false">http://gavin.carothers.name/?p=26</guid>
		<description><![CDATA[Been trying to follow the RDFa, microdata messwork. This isn&#8217;t academic. I have a nice open ticket that says &#8220;Insert inline metadata into O&#8217;Reilly Catalog pages&#8221; which is due in a large release at the end of September. Do I expect Google to index my page a whole lot better? Nah. (That&#8217;s why we&#8217;re doing [...]]]></description>
			<content:encoded><![CDATA[<p>Been trying to follow the RDFa, microdata <del datetime="2009-08-14T03:31:03+00:00">mess</del>work. This isn&#8217;t academic. I have a nice open ticket that says &#8220;Insert inline metadata into O&#8217;Reilly Catalog pages&#8221; which is due in a large release at the end of September.</p>
<p>Do I expect Google to index my page a whole lot better? Nah. (That&#8217;s why we&#8217;re doing complete HTML chapters of our books, and full HTML Table of Contents). Do I expect our internal tools to index it better? Maybe, if I pray to the right search gods. Can I think of some some crazy shit to do in jQuery with the few attributes I have in there? Oh yes. What exactly is going to come of us putting micodata in our pages? No clue, but then we didn&#8217;t really know what Web 2.0 was in 2004, or this strangeWorld Wide Web ( <a href="http://www.archive.org/details/wholeinternet00krolmiss">Online Whole Internet Catalog</a>, in which we uh, printed the internet) thing was in 1992.</p>
<p>Lets get started. I know what metadata I need to express. Here is a short version of it expressed in Turtle. There are a number of other fields, but this will give you the gist.</p>
<pre>@prefix dc: &lt;http://purl.org/dc/terms/&gt; .
@prefix frbr: &lt;http://purl.org/vocab/frbr/core#&gt; .

&lt;http://purl.oreilly.com/works/45U8QJGZSQKDH8N&gt; a frbr:Work ;
     dc:creator "Wil Wheaton"@en ;
     dc:title "Just a Geek"@en ;
     frbr:realization &lt;http://purl.oreilly.com/products/9780596007683.BOOK&gt;,
         &lt;http://purl.oreilly.com/products/9780596802189.EBOOK&gt; . 

&lt;http://purl.oreilly.com/products/9780596007683.BOOK&gt; a frbr:Expression ;
     dc:type &lt;http://purl.oreilly.com/product-types/BOOK&gt; . 

&lt;http://purl.oreilly.com/products/9780596802189.EBOOK&gt; a frbr:Expression ;
     dc:type &lt;http://purl.oreilly.com/product-types/EBOOK&gt; .</pre>
<p>This sample uses two vocabularies that exist in the wild. <a href="http://dublincore.org/documents/dcmi-terms/">Dublin Core</a>, which is a very mature standard developed by a reasonably heavy weight process with many serializations, and uses. FRBR too is a standard developed by a rather austere body the <a title="International Federation of Library Associations and Institutions" href="http://en.wikipedia.org/wiki/International_Federation_of_Library_Associations_and_Institutions">International Federation of Library Associations and Institutions</a> the <a href="http://vocab.org/frbr/core">RDF realization</a> of it however isn&#8217;t from them but rather a few guys who needed to represent it. Reasonably smart few guys, but no giant standards body here.</p>
<p>Took about 15 minutes to whip up a <a href="http://gavin.carothers.name/microdata/geek-rdfa.html">simple RDFa based representation</a>. Now, I know RDF reasonably well, XML very well, and have decent HTML skills. So I admit my experience is not going to be the norm, but it didn&#8217;t feel a whole lot harder then the first time I was trying to use hCard. I screwed up a few times, mixing up where to use rel= vs. property=. I also forgot that I can&#8217;t just stick a &lt;UL&gt; in another &lt;UL&gt;, need the picky &lt;LI&gt;, also left off at least one close tag. Made all those mistakes  in just 32 lines of HTML. But a few quick iterations with validation and it was all green check boxes. I screwed up my late night hand written HTML at about the same rate I screwed up RDFa attributes. I had read the RDFa primer two months ago, but didn&#8217;t remember much other then there were some attributes and they went on some tags. Didn&#8217;t use the primer, just looked at the example content from <a href="http://www.ebusiness-unibw.org/wiki/Rdfa4google">RDFa4Google</a>. Used <a href="http://torrez.us/rdfa/">Elias Torres RDFa parser</a> to test my results and <a href="http://validator.w3.org/">validator.w3.org</a> for my HTML.</p>
<p>Felt reasonably happy with my RDFa result. Worked as expected. Microdata time!</p>
<p>Okay, got my Microdata spec. Finding a validator or parser however did not go well. 5 minutes in Google and Bing, turned up the expected HTML5 validator.nu but nothing in the way of a microdata validator or parser. I&#8217;ll be honest I was very tempted to stop here. Given the mistakes I made with RDFa, I&#8217;m very skeptical of my ability to write Microdata without the help of a parser. But I imagine there is one, and once I post this someone will tweet about it 5 minutes later.</p>
<p>Huh, okay, I have my outer item for the Work:</p>
<pre>&lt;div id="http://purl.oreilly.com/works/45U8QJGZSQKDH8N"
                item="http://purl.org/vocab/frbr/core#Work"&gt;
    &lt;ul&gt;
        &lt;li&gt;&lt;label&gt;Title:&lt;/label&gt;
          &lt;span itemprop="http://purl.org/dc/terms/title"&gt;
            Just a Geek&lt;/span&gt;&lt;/li&gt;
        &lt;li&gt;&lt;label&gt;By&lt;/label&gt;
          &lt;span itemprop="http://purl.org/dc/terms/creator"&gt;
            Wil Wheaton&lt;/span&gt;&lt;/li&gt;</pre>
<p>That wasn&#8217;t very hard at all. I&#8217;m completely lost at how to relate that work to the two expressions however. It looks like I&#8217;m limited to my microdata being in an &lt;a&gt; tag link to the expressions. And I really don&#8217;t understand the idea behind:</p>
<blockquote><p><a>The value is the element&#8217;s textContent.</a></p></blockquote>
<p><a>Does this mean I can&#8217;t use any data that isn&#8217;t displayed directly on the page? If the data would be better expressed in a machine readable form? In my case product type </a><a href="http://purl.oreilly.com/product-types/EBOOK">http://purl.oreilly.com/product-types/EBOOK</a> really isn&#8217;t very human friendly. Ideas on how to express the same metadata or equivalent in microdata are very welcome. <a href="http://gavin.carothers.name/microdata/geek-microdata.html">This is the best I could do</a>.</p>
<p>I was expecting more tooling and examples from Microdata given it&#8217;s inclusion in HTML5. I was very surprised by the lack of tooling and almost complete lack real world examples.</p>
]]></content:encoded>
			<wfw:commentRss>http://gavin.carothers.name/2009/08/13/trying-to-understand-microdata-rdfa/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
