Created
November 14, 2010 04:51
-
-
Save corani/675918 to your computer and use it in GitHub Desktop.
Code example of embedding the GoodRelations vocabulary in a product offer page using RDFa
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div | |
xmlns:gr="http://purl.org/goodrelations/v1#" | |
xmlns:xsd="http://www.w3.org/2001/XMLSchema#" | |
typeof="gr:Offering" about="#product_data"> | |
<span property="gr:name">Protective Sleeve for HyperPhone</span> | |
<span rel="gr:hasPriceSpecification"> | |
<span typeof="gr:UnitPriceSpecification"> | |
Price: $<span property="gr:hasCurrencyValue" datatype="xsd:float">19.99</span> | |
<span property="gr:hasCurrency" content="USD" datatype="xsd:string"></span> | |
</span> | |
</span> | |
<span property="gr:description">Our protective HyperPhone sleeve not only protects your phone from scratches, but is also waterproof and will ensure your favorite phone will survive a one feet drop.</span> | |
<span property="gr:hasStockKeepingUnit" content="123-456" datatype="xsd:string"></span> | |
<span rel="gr:hasInventoryLevel"> | |
<span typeof="gr:QuantitativeValue"> | |
<span property="gr:hasValue" content="129" datatype="xsd:float">In-stock! Order now!</span> | |
</span> | |
</span> | |
<div property="gr:hasEAN_UCC-13" content="01234567890128" datatype="xsd:string"></div> | |
<div rev="gr:offers" resource="http://www.example.com/#company"></div> | |
<div property="gr:includes"> | |
<div property="gr:ProductOrService"> | |
This sleeve only fits the <a property="gr:isAccessaryOrSparePartFor" href="http://www.phone.com/hyperphone/#product_data">HyperPhone</a> and is only available in <span property="gr:color" content="pink" datatype="xsd:string">pink</span>. | |
</div> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment