微数据与RDFa [英] Microdata vs RDFa

查看:95
本文介绍了微数据与RDFa的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我目前的理解是,RDFa是RDF实现成HTML的,但对像我这样的新开发者来说很复杂,Microdata似乎



这两种语义格式的其他优点和缺点是什么?

解决方案

您从任何语义格式获得的主要优点是消费者可以重复使用您的数据。例如,像Google这样的搜索引擎是重复使用您的数据来显示Rich Snippets的消费者,例如: $



为了决定哪种格式最好,你需要知道你想要的目标消费者。例如,Google在他们的常见问题解答中说,他们只会处理微数据(尽管测试工具现在可以与RDFa一起工作,所以他们可能会接受RDFa)。除非您知道您的目标消费者只接受RDFa,你可能最好用微数据。尽管许多RDFa消费服务(如语义搜索引擎Sindice)也接受微数据,但微数据消费服务不太可能接受RDFa。

I have a quick question about RDFa and Microdata.

My current understanding is that RDFa is RDF implemented into HTML but is complicated for new developers like myself, Microdata seems really easy and quick to implement.

What are the other advantages and disadvantages around these two semantic formats ?

解决方案

The main advantage you get from any semantic format is the ability for consumers to reuse your data.

For example, search engines like Google are consumers that reuse your data to display Rich Snippets, such as this one:

In order to decide which format is best, you need to know which consumers you want to target. For example, Google says in their FAQ that they will only process microdata (though the testing tool does now work with RDFa, so it is possible that they accept RDFa).

Unless you know that your target consumer only accepts RDFa, you are probably best going with microdata. While many RDFa-consuming services (such as the semantic search engine Sindice) also accept microdata, microdata-consuming services are less likely to accept RDFa.

这篇关于微数据与RDFa的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆