相当于微格式的 DTD?
是否有定义微格式结构的标准?
(我正在考虑编写一个工具,用于在所见即所得编辑器中编辑微格式,使用动态生成的表单 - 因此需要一个抽象语法来描述各个微格式)。
我在 MDN 上看到了这篇文章,它似乎描述了我正在寻找的内容 - 但有定义吗常用的微格式是否可以采用这种格式?
TIA
Is there any standard for defining the structure of microformats?
(I'm thinking about writing a tool for editing microformats within a WYSIWYG editor, using forms generated on the fly - so need an abstract grammar for describing individual migroformats).
I saw this article on MDN which seems to describe what I'm looking for - but are there definitions available in this format for the commonly used microformats?
TIA
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
简短的回答:不。
长答案:最常见的微格式都有 XMDP 配置文件,但这些只能由软件读取“这段文字说明了这意味着什么”级别,而不是“这意味着什么”级别。为了获得更全面的机器可读性,您可能需要 GRDDL 配置文件,它将微格式直接映射到 RDF。具有这些功能的微格式较少,并且存在的微格式已经存在多年,因此不涵盖微格式的新变化。
Short answer: no.
Long answer: The most common microformats all have XMDP profiles, but those are only readable by software at the "this text says what this means" level, not the "this means that" level. For fuller machine-readability, you probably want GRDDL profiles, which map microformats directly to RDF. Fewer microformats have those, and the ones that do exist are years old, so don't cover newer changes to microformats.
微格式是由社区开发的,因此没有严格的标准化。现有的微格式大多是在 microformats.org 创建的,您可以在那里找到规范。其他一些(unAPI 或 COinS 例如)是在其他地方开发的。
作为辅助节点,我建议考虑 Microdata 和 RDFa 因为它们越来越受欢迎。
Microformats are developed by community, so there is no strict standardization. Existing microformats mostly were created at the microformats.org, there you can find specifications. Some others (unAPI or COinS for example) were developed elsewhere.
As a side node, I recommend to consider Microdata and RDFa because of their growing popularity.