5月初,Digg 宣布在其新闻页面里,加入对 semantic markup [1] 的支持。目前支持 3 种:XFN,hCard,以及最重要的 RDFa [1]。
想看实际用法的,可以在 Digg 新闻页面的源代码里,搜索“property”。比如在这个页面里
http://digg.com/tech_news/In_Google_we_trust_but_should_we,你可以找到类似于这样的内容,
“<a href="http://www.guardian.co.uk/technology/2008/may/22/internet.google" rel="dc:source" property="dc:title">
In Google we trust – but should we?</a>”。
如果安装了 RDFa bookmarklets 的话,可以看到更形象的效果,类似下面。
- 使用 RDFa Highlight 标亮页面上的 N3 Triples。
- 使用 GetN3 extractor 抽取出来的 N3 Tripes 文本。
<http://digg.com/tech_news/In_Google_we_trust_but_should_we>
<http://purl.org/dc/elements/1.1/source>
<http://www.guardian.co.uk/technology/2008/may/22/internet.google>
<http://digg.com/tech_news/In_Google_we_trust_but_should_we>
<http://purl.org/dc/elements/1.1/title>
"In Google we trust – but should we?" <http://digg.com/tech_news/In_Google_we_trust_but_should_we>
<http://purl.org/dc/terms/abstract>
"Google is more vulnerable to competitors than people think." .
<http://digg.com/tech_news/In_Google_we_trust_but_should_we>
<http://purl.org/dc/elements/1.1/creator>
<http://digg.com/users/dagorret> .
<http://digg.com/tech_news/In_Google_we_trust_but_should_we>
<http://purl.org/dc/elements/1.1/date>
"2008-05-22 11:45:13" .
最早的 RDF [1] [2],由于其比较难于理解,并且操作复杂,导致其始终没有推广起来。W3C 组织受到轻量级规范如 Microformats 的启发,推出了新的经过简化的 RDFa [1] 规范。从其官方描述“Embedding Structured Data in Web Pages”,就可以看出来,它是一种嵌入到 HTML/XHTML 中的数据。要说 RDFa 的实现比 Microformats 还是要复杂一些,不过它的适用性更广,对于可以通过 RDF 表达的任何内容, 都能够使用 RDFa 添加到 XHTML 文档中,而且不再需要使用繁琐的 XML 语言进行描述。这使得基于现有 Web 内容实现 Semantic Web,成本低了不少,也更靠谱了。
希望可以有更多的 Applicaitons 向 Digg 看齐,让 RDFa 的队伍壮大起来。
这里需要谴责一下 Powerset,号称 Semantic Web 的 Killer App,居然都不支持 RDFa。
推荐阅读:







Leave a Reply