W3C plans to add the GoodRelations to the RDFa 1.1 default profile

Dear all:

Good news for GoodRelations: The W3C plans to add the GoodRelations prefix "gr:" to the (pretty restrictive) list of predefined prefixes in the RDFa 1.1 default profile [1, 2].

This means that a RDFa 1.1 processor will understand GoodRelations markup (and other popular vocabularies) without the need to define the respective prefixes. This simplifies the respective markup a lot.

For GoodRelations scenarios, the following are the most important prefixes included in the default profile:

dcterms	http://purl.org/dc/terms/
foaf	http://xmlns.com/foaf/0.1/
gr	http://purl.org/goodrelations/v1#
rev	http://purl.org/stuff/rev#
v	http://rdf.data-vocabulary.org/#
vcard	http://www.w3.org/2006/vc

<div
 xmlns:foaf="http://xmlns.com/foaf/0.1/"
 xmlns:gr="http://purl.org/goodrelations/v1#"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
 xmlns:v="http://rdf.data-vocabulary.org/#"
 typeof="gr:Offering" about="#product_data">  
  <span property="gr:name">Hepp Personal SCSI Controller Card</span>
  <span rel="foaf:depiction">
     <img src="pscsi.jpg" alt="Product image" />
  </span>
  <span rel="v:hasReview">
     <span typeof="v:Review-aggregate" about="#review_data"> Average rating: 
        <span property="v:rating" datatype="xsd:string">4.9</span>, based on 
        <span property="v:count" datatype="xsd:string">99</span> reviews
     </span>
  </span>
  <div rel="foaf:page" resource=""></div>
</div>

can be simplified to 

<div typeof="gr:Offering" about="#product_data">  
  <span property="gr:name">Hepp Personal SCSI Controller Card</span>
  <span rel="foaf:depiction">
     <img src="pscsi.jpg" alt="Product image" />
  </span>
  <span rel="v:hasReview">
     <span typeof="v:Review-aggregate" about="#review_data"> Average rating: 
        <span property="v:rating" datatype="xsd:string">4.9</span>, based on 
        <span property="v:count" datatype="xsd:string">99</span> reviews
     </span>
  </span>
  <div rel="foaf:page" resource=""></div>
</div>

That is great news!

Best wishes

Martin Hepp


Links:
[1] http://www.w3.org/profile/rdfa-1.1#crawl
[2] http://www.w3.org/blog/SW/2011/06/09/what_are_the_most_widely_used_vocabulari

Received on Thursday, 9 June 2011 20:24:58 UTC