Google 리치 스 니펫의 경우 제공된 제품에 대한 명시적인 세부 정보없이 분류 된 광고를 모델링하는 가장 좋은 방법은 RDFa 구문에 GoodRelations 어휘 인 http://purl.org/goodrelations/을 사용하는 것입니다.
은 간단히 아래와 같이 gr:Offering
클래스를 사용
당신이
here을 볼 수 있듯이 이것은, 구글 리치 스 니펫 테스트 도구에 대한 유효성을 검사
<div xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:gr="http://purl.org/goodrelations/v1#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xml:lang="en" >
<!-- The Classified Ad content -->
<div about="#offering" typeof="gr:Offering">
<div rev="gr:offers" resource="#user1234"></div>
<strong property="gr:name" >Classified ad - headline (e.g. the text in bold)</strong>
<div property="gr:description">Here comes the full text of the classified ad ....
blablabla</div>
<!-- if you have an image, use this pattern -->
<img rel="foaf:depiction" src="http://www.heppnetz.de/rdfa4google/image.jpg" />
<!-- if you know the type of business function (Sell, LeaseOut, Dispose, ProvideService,
attach it like this -->
<div rel="gr:hasBusinessFunction"
resource="http://purl.org/goodrelations/v1#Sell"></div>
<!-- if you can provide the price in a structured form, use this pattern
(needed for Rich Snippets) -->
<div rel="gr:hasPriceSpecification">
<div typeof="gr:UnitPriceSpecification">
<div property="gr:hasCurrency" content="USD" datatype="xsd:string"></div>
<div property="gr:hasCurrencyValue" content="89" datatype="xsd:float"></div>
</div>
</div>
<!-- provide the URI of a deep link to the page -->
<div rel="foaf:page" resource="http://www.heppnetz.de/rdfa4google/tc16.html"></div>
</div>
.
희망하는 데 도움이 : 여러분의 편의를 위해
, 나는 그냥 GoodRelations의 요리 책에서 각각의 레시피를 만들어!
마틴, 아주 좋습니다! 이 질문을하기 전에 이미 마이크로 데이터를 사용하여 목록 페이지를 마크 업하려고했습니다. 즉, 마이크로 데이터 형식에 대해서만 알고 있습니다. 그러나 좋은 소식은 [GoodRelation] (http://goodrelations-vocabulary.org)에 RDF 변환기 도구에 대한 링크가 있다는 것입니다. 오, 위대 .. –