用语义注释 HTML IMG
我有一个 HTML5 网站,其中包含一些图片和一些有关图片的数据。我想增强它们的描述,以便机器也能够阅读它们。
比如说,有一张列奥纳多·达·芬奇的《蒙娜丽莎》的照片,于 1503 - 1519 年左右完成(注意“周围”和“范围”)
我应该使用什么格式? 2012年的最佳实践是什么? RDF? RDFa?微格式?都柏林核心? Schema.org?
将此类元数据集成到 HTML5 页面的最佳方法是什么?
如何表达一个不太精确已知的日期?
I have a HTML5 website with some pictures and some data about the pictures. I would like to enhance their description so machines would be able to read them as well.
Say, there is a picture of Mona Lisa by Leonardo da Vinci, completed around 1503 - 1519 (n.b. "around" and "range")
What format should I use? What are the best practices in 2012? RDF? RDFa? Microformats? Dublin core? Schema.org?
What is the best way to integrate such metadata into a HTML5 page?
How to express a date which is not very precisely known?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
RDFa 是将 RDF 嵌入 HTML 页面的最佳选择,这就是它的设计目的。除此之外,您没有任何可以使用的模式。像 DC 这样的标准是有意义的,但我怀疑还有一些特定于图像的模式存在,如果你想注释图像的特定细节,宽度,高度,分辨率等,你可以使用它们。
我不知道对于处理不精确的日期没有好的建议。最糟糕的是,您可以用开始日期和结束日期对其进行注释,然后就到此为止了。取决于您想用这些信息做什么。如果你想用它来推理,或者期望其他人这样做,你会想要寻找一个关于时间的本体论。否则,你不需要太花哨。您始终可以创造新的 URI,并且当您在 RDF 中抓取时,当您看到这些新属性时,请执行一些明智的操作。
RDFa is your best bet for embedded the RDF in an HTML page, that's what it's designed for. Beyond that, there's no schema you have to use. Something standard like DC makes sense, but I suspect there are also some image-specific schema lying around out there that you could make use of if you want to annotate specific details of the image, width, height, resolution, etc.
I don't have a good suggestions for dealing with an imprecise date. At worse you could annotate it w/ the start and end dates and call it a day. Depends on what you want done with that information. If you're going to reason with it, or expect someone else to, you'll want to look for an ontology about time. Otherwise, you don't need to get too fancy. You could always coin new URI's and when you scrape in the RDF do something sensible when you see those new properties.