我对产品信息的RDFa实施的噩梦深陷其中,我很好奇如果有人能提供一些见解。产品的RDFa内容实施
为了向机器提供数据,谷歌不再隐瞒信息,除非它是针对机器的信息。为了提供这些数据,我找不到有关空白元素的任何信息。
如果你看看商业GoodRelations RDFa生成器,你会得到一个嵌套的div的混乱,你被告知放在你的项目页面的底部。我会用我最喜爱的网站之一。例如:
<div xmlns="http://www.w3.org/1999/xhtml"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:gr="http://purl.org/goodrelations/v1#"
xmlns:foaf="http://xmlns.com/foaf/0.1/">
<div typeof="gr:Offering" about="#offering">
<div rev="gr:offers" resource="#company"></div>
<div property="rdfs:label" content="Alpinestars S-MX Plus Racing Boots" xml:lang="en"></div>
<div property="rdfs:comment" content="Alpinestars’ S-MX Plus racing boot raises performance and safety to new and unmatched levels with its innovative design, structural protection and comfort." xml:lang="en"></div>
<div property="gr:hasEAN_UCC-13" content="0000000000000" datatype="xsd:string"></div>
<div rel="foaf:depiction" resource="http://www.motorcycle-superstore.com/ProductImages/300/g17268.jpg"></div>
<div rel="gr:hasBusinessFunction" resource="http://purl.org/goodrelations/v1#Sell"></div>
<div rel="gr:hasPriceSpecification">
<div typeof="gr:UnitPriceSpecification">
<div property="gr:hasCurrency" content="USD" datatype="xsd:string"></div>
<div property="gr:hasCurrencyValue" content="349.95" datatype="xsd:float"></div>
<div property="gr:hasUnitOfMeasurement" content="C62" datatype="xsd:string"></div>
</div>
</div>
<div rel="gr:acceptedPaymentMethods" resource="http://purl.org/goodrelations/v1#PayPal"></div>
<div rel="gr:acceptedPaymentMethods" resource="http://purl.org/goodrelations/v1#AmericanExpress"></div>
<div rel="gr:acceptedPaymentMethods" resource="http://purl.org/goodrelations/v1#Discover"></div>
<div rel="gr:acceptedPaymentMethods" resource="http://purl.org/goodrelations/v1#MasterCard"></div>
<div rel="gr:acceptedPaymentMethods" resource="http://purl.org/goodrelations/v1#VISA"></div>
<div rel="foaf:page" resource="http://www.motorcycle-superstore.com/1/1/36/77/ITEM/Alpinestars-S-MX-Plus-Racing-Boots.aspx"></div>
</div>
</div>
我发现了什么在执行有趣 - 这百思买已经取得了巨大成功使用的 - 就是没有在标签没有实际内容在这里,而有只是一个内容属性。
我的问题是,有没有人有任何洞察到这种类型的实现,是否有利用内容属性通过添加RDFa结构到现有标记的空div结构罚款?
谢谢马丁, 我的下一个问题然后就是: 我们怎么能告诉谷歌寻找的RDFa标记我们的页面上,如果我们使用HTML5? – S16 2010-07-02 15:42:23