<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="/main.xsl"?>
<b:blog xmlns="http://www.w3.org/1999/xhtml" xmlns:b="http://blog.othree.net"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://blog.othree.net http://blog.othree.net/blooog.xsd">
	<b:blogTitle>O3noBLOG</b:blogTitle>
	<b:blogDescription></b:blogDescription>
	<b:entries>
		<b:entriesMeta>
			<b:listType>s</b:listType>
			<b:listData listID="000250" baseName="microformats">語意網與microformats</b:listData>

			<b:previous>
				<b:mTitle>搶救Oui-Blog義賣募款活動</b:mTitle>
				<b:mDate>2005/08/23</b:mDate>
				<b:mBase>save-oui-blog</b:mBase>
			</b:previous>


			<b:next>
				<b:mTitle>又一張有Fox子的桌布</b:mTitle>
				<b:mDate>2005/08/23</b:mDate>
				<b:mBase>fox-ko-desktop</b:mBase>
			</b:next>

		</b:entriesMeta>
		<b:entry entryID="000250" baseName="microformats">
			<b:author>
				<b:authorName>othree</b:authorName>
				<b:authorEmail>othree@gmail.com</b:authorEmail>
				<b:authorUrl></b:authorUrl>
			</b:author>
			<b:datetime>
				<b:date>2005-08-23</b:date>
				<b:time>21:25:58</b:time>
			</b:datetime>
			<b:category>css-html</b:category>

			<b:CommentsAccepted>1</b:CommentsAccepted>



			<b:PingsAccepted>1</b:PingsAccepted>


			<b:title>語意網與microformats</b:title>
			<b:content>
				<b:summary> hlb大大的新文章中，提到了語意網（Semantic Web）與microformats（現翻為微格），這些東西以前都有所耳聞，不過一直沒搞清楚是作什麼用的，趁著這個機會把microformats搞清楚了（語意網還沒全部瞭解，不過差不多了）。...</b:summary>
				<b:mainContent><p><img src="/log/2005/08/23/microformats/microformats.png" alt="microformats" height="127" width="120" class="right" /></p>

<p><a href="http://hlb.yichi.org/">hlb大大</a>的<a href="http://hlb.yichi.org/blog/2005/08/19/8">新文章</a>中，提到了<a href="http://www.w3.org/2001/sw/">語意網</a>（Semantic Web）與<a href="http://microformats.org/">microformats</a>（現翻為<strong>微格</strong>），這些東西以前都有所耳聞，不過一直沒搞清楚是作什麼用的，趁著這個機會把microformats搞清楚了（語意網還沒全部瞭解，不過差不多了）。</p></b:mainContent>
				<b:extendContent><p>簡單說的話，microformats裡面包含很多種format，每個format都是利用現有的XHTML原件組成一個有特定意義的文件，例如<a href="http://microformats.org/wiki/hreview">hReview</a>是用來發表評論的格式，我要介紹書時就可以用，複製一段範例過來如下：</p>



<pre><code>&lt;div class=&quot;hreview&quot;&gt;
 &lt;span&gt;&lt;span class=&quot;rating&quot;&gt;5&lt;/span&gt; out of 5 stars&lt;/span&gt;
 &lt;h4 class=&quot;summary&quot;&gt;&lt;span class=&quot;item fn&quot;&gt;Crepes on Cole&lt;/span&gt; is awesome&lt;/h4&gt;
 &lt;span&gt;Reviewer: &lt;span class=&quot;reviewer fn&quot;&gt;Tantek&lt;/span&gt; - 
 &lt;abbr class=&quot;dtreviewed&quot; title=&quot;20050418T2300-0700&quot;&gt;April 18, 2005&lt;/abbr&gt;&lt;/span&gt;
 &lt;blockquote class=&quot;description&quot;&gt;&lt;p&gt;
  Crepes on Cole is one of the best little creperies in San Francisco.
  Excellent food and service. Plenty of tables in a variety of sizes 
  for parties large and small.  Window seating makes for excellent 
  people watching to/from the N-Judah which stops right outside.  
  I've had many fun social gatherings here, as well as gotten 
  plenty of work done thanks to neighborhood WiFi.
 &lt;/p&gt;&lt;/blockquote&gt;
 &lt;p&gt;Visit date: &lt;span&gt;April 2005&lt;/span&gt;&lt;/p&gt;
 &lt;p&gt;Food eaten: &lt;span&gt;Florentine crepe&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;</code></pre>



<p>其實說穿了只是照順序排，填入該欄位的內容而已。那用上microformats有什麼好處呢？因為microformats是公開的文件格式，所以其他人可以透過程式簡單的讀取你的文件內容，看是要自訂顯示方式（user script）、自動收集資訊都是可行的，不過最重要的還是資訊間的交流，這樣可以讓文件的被利用度提升不少（當然現在還沒有）。</p>

<p>好像很有發展性，當然就想來試試看，從現有的格式當中挑出來的就是<a href="http://microformats.org/wiki/hreview">hReview</a>、<a href="http://microformats.org/wiki/reltag">relTag</a>這兩個，先放進更新的TODO-List裡:P。</p></b:extendContent>
			</b:content>
			<b:comments commentCount="7">

				<b:comment commentID="000818" entryID="000250">
					<b:author>
						<b:authorName>光</b:authorName>
						<b:authorEmail>leon0824@gmail.com</b:authorEmail>
						<b:authorUrl>http://mail.tainan.com.tw/~leon/</b:authorUrl>
					</b:author>
					<b:datetime>
						<b:date>2005-08-24</b:date>
						<b:time>00:12:53</b:time>
					</b:datetime>
					<b:content>
						<b:mainContent><p>那麼目的是不是跟XML有點像呢？還是我的理解有錯？</p></b:mainContent>
					</b:content>
				</b:comment>

				<b:comment commentID="000819" entryID="000250">
					<b:author>
						<b:authorName>OOO</b:authorName>
						<b:authorEmail></b:authorEmail>
						<b:authorUrl>http://blog.othree.net</b:authorUrl>
					</b:author>
					<b:datetime>
						<b:date>2005-08-24</b:date>
						<b:time>01:31:47</b:time>
					</b:datetime>
					<b:content>
						<b:mainContent><p>是的，語意網用到的確實就是XML（現在的web service應該就是了），microformats則是用XHTML達到類似目的，要說為什麼要用XHMTL的話，就是可以直接在web上閱讀吧，XML基本上是不方便閱讀的，這是我目前的瞭解，或許過幾天會有新的想法吧:P。</p></b:mainContent>
					</b:content>
				</b:comment>

				<b:comment commentID="000820" entryID="000250">
					<b:author>
						<b:authorName>EvenWu</b:authorName>
						<b:authorEmail>evendesign@gmail.com</b:authorEmail>
						<b:authorUrl>http://1pxcare.com</b:authorUrl>
					</b:author>
					<b:datetime>
						<b:date>2005-08-24</b:date>
						<b:time>03:56:30</b:time>
					</b:datetime>
					<b:content>
						<b:mainContent><p>我記得有一間汽車旅館叫薇格</p></b:mainContent>
					</b:content>
				</b:comment>

				<b:comment commentID="000823" entryID="000250">
					<b:author>
						<b:authorName>hlb</b:authorName>
						<b:authorEmail>hlbyichi@gmail.com</b:authorEmail>
						<b:authorUrl>http://hlb.yichi.org/blog/</b:authorUrl>
					</b:author>
					<b:datetime>
						<b:date>2005-08-24</b:date>
						<b:time>13:20:43</b:time>
					</b:datetime>
					<b:content>
						<b:mainContent><p>EvenWu 太厲害，一下就發現這個翻譯的典故......XD</p>

<p>因為 RDF+OWL 的支援遙遙無期，所以大家只好另謀他路。<br />
至於為什麼是 XHTML，因為一般人也能讀得懂，也能寫。<br />
RDF 或 OWL 的話...... 還是交給編輯器或程式處理吧。<br />
人類優先，機器次之，網站上不是這樣說嗎？ :)<br />
而且 XHTML 也是 XML，要轉換過去也很簡單的喔。</p>

<p>另外就是，這些格式全部都可以應用在部落格上啊，<br />
自然就會有人去做 plugin 之類的 XD</p></b:mainContent>
					</b:content>
				</b:comment>

				<b:comment commentID="000826" entryID="000250">
					<b:author>
						<b:authorName>OOO</b:authorName>
						<b:authorEmail></b:authorEmail>
						<b:authorUrl>http://blog.othree.net</b:authorUrl>
					</b:author>
					<b:datetime>
						<b:date>2005-08-24</b:date>
						<b:time>21:17:36</b:time>
					</b:datetime>
					<b:content>
						<b:mainContent><p>我是想到某學校:P。</p></b:mainContent>
					</b:content>
				</b:comment>

				<b:comment commentID="012010" entryID="000250">
					<b:author>
						<b:authorName>Drake</b:authorName>
						<b:authorEmail>drake.guan@gmail.com</b:authorEmail>
						<b:authorUrl>http://drakeguan.org/</b:authorUrl>
					</b:author>
					<b:datetime>
						<b:date>2007-02-24</b:date>
						<b:time>14:10:13</b:time>
					</b:datetime>
					<b:content>
						<b:mainContent><p>好奇問一下，那這個微格（或說是微格們?）的標準推得如何了? 因為按這一篇的說法，目前有 hCard, hReview 其它還有哪些呢? 相關支援的軟體都如火如洋的進行，還是只是資訊愛好者自己在推?</p></b:mainContent>
					</b:content>
				</b:comment>

				<b:comment commentID="012015" entryID="000250">
					<b:author>
						<b:authorName>OOO</b:authorName>
						<b:authorEmail></b:authorEmail>
						<b:authorUrl>http://blog.othree.net</b:authorUrl>
					</b:author>
					<b:datetime>
						<b:date>2007-02-24</b:date>
						<b:time>18:57:33</b:time>
					</b:datetime>
					<b:content>
						<b:mainContent><p>其實目前主要還是資訊愛好者在推動吧，不過Firefox 3或許就會支援相關格式，之後會變成怎樣就難說了。不過我是認為這種東西應該由資訊工作者來處理，就和blog把製作與設計網頁和提供內容兩件事分開一樣。</p></b:mainContent>
					</b:content>
				</b:comment>

			</b:comments>
			<b:trackbacks trackbackCount="0" trackbackURL="http://othree.net/mt/mt-tb.cgi/249">

			</b:trackbacks>
		</b:entry>
	</b:entries>
</b:blog>