问题描述
我目前的理解是,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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!