RDF 可以替代 Microformat 的 hCalendar 格式吗?

发布于 2024-08-23 00:58:40 字数 563 浏览 8 评论 0 原文

我一直在努力应用 hCalendar 微格式 到我网站上显示的事件。然而,从我的研究来看,我的印象是微格式不被推荐(或者至少被一些人看不起)。相反,RDF 似乎是表示丰富语义信息的首选方式。

然而,我对 RDF 感到困惑。我什至不知道从哪里开始。微格式为使用 hCalendar 格式提供了易于理解的指南。另一方面,RDF 是使用月球人语言编写的。

有 RDF 替代 hCalendar 吗?是否有一些资源描述如何实现它?我应该继续使用 hCalendar 因为它很容易实现吗?

I've been working to apply the hCalendar microformat to the events displayed on my web site. However, from my research, I get the impression that microformats are not recommended (or at least looked down upon by some). Instead, RDF seems to be the preferred way for representing semantic-rich information.

However, I'm confounded by RDF. I don't even know where to start. Microformats provide an easy to understand guide for using the hCalendar format. RDF, on the other hand, is written using moon people language.

Is there an RDF alternative to hCalendar? Is there some resource that describes how to implement it? Should I just continue with hCalendar since it's easy to implement?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

丿*梦醉红颜 2024-08-30 00:58:40

简单的 Google 搜索就显示了用该 MoonLanguage 编写的规范,其中包括从 hCalendar 到 RDF 日历的草稿 XSL。其中的月光语言对于该月光语言来说似乎实际上相当合理,所以我建议你熟练掌握它。

大多数人面临的主要问题是 RDF 实在是太奇怪了。所以,这是一个三规则入门。

  1. RDF 文档描述了一个图,它描述了东西。
  2. 所有的箭头/节点都是用“三元组”来描述的,即“主语、谓语、宾语”(例如“球”、“HasColor”、“红色”)。
  3. 一切都是用 URI 来描述的。 (例如 <http://d8uv.org/about/id> <http://xmlns.com/foaf/spec/mbox> [email protected]>

有了这个,那么提取应该会容易得多请注意,我并不是说“简单”,因为 RDF 实在太奇怪了,

我个人的建议是忘记整个概念,坚持使用微格式。语义足够,不会让你陷入疯狂(导致人们做出 RDF/XML 之类的东西的疯狂类型)。

Simple google search brought up a spec written in that moonlanguage, which includes a draft XSL from hCalendar to RDF calendar. The moonlanguage therein seems actually pretty reasonable for that moonlanguage, so I suggest that you become fluent in it.

The major problem that most people have, is that RDF is just so damn weird. So, here's a three rule primer.

  1. RDF documents describe a graph, which describe stuff.
  2. All the arrows/nodes are described in terms of "triples", which are "subject, predicate, object", (e.g. "Ball" "HasColor" "Red")
  3. Everything is described in terms of URIs. (e.g. <http://d8uv.org/about/id> <http://xmlns.com/foaf/spec/mbox> <mailto:[email protected]>

With that in your arsenal, then it should be much easier to pull sense from the moonlanguage. Note that I'm not saying "easy", because, again, RDF is damn weird.

My personal advise is to just forget the whole notion, and stick with microformats. They're semantic enough, and won't drive you to insanity. (The type of insanity that leads people to make things like RDF/XML)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文