Skip to content

Instantly share code, notes, and snippets.

@daarom
daarom / the-semantic-travelagency.html
Last active August 29, 2015 14:11
Max out the semantic density of an online travelagency website I did. Declaring the complete offering of an online travel agency, with the hotel as top level entity, ensuring the rich snippet is presented in SERPs. Comments are very welcome :)
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>My amazing online travelagency chained entities</title>
</head>
<body>
<!-- Cool ontology: http://ontologies.sti-innsbruck.at/acco/ns.html -->
@daarom
daarom / Travelagency-markup-Microdata-schema.html
Last active April 30, 2016 10:06
Hotel (TLE) reservation schema Travel agency & LeaseOut
<!-- http://ontologies.sti-innsbruck.at/acco/ns.html -->
<!-- whether the "a" property comes before the "b" property or not is not important: -->
<!-- http://www.w3.org/TR/microdata/ -->
<!-- Usually the header of the website holds the website publishers logo and url to the homepage -->
<div><span id="daaromlogo">
<img itemprop="logo" src="http://www.example.com/daarom-logo.png" />
<a itemprop="url" href="http://www.example.com/">Homepage</a>
</span></div>
<!-- end of the header properties -->
<!-- https://www.w3.org/wiki/File:ProviderSellerVocabularyRe-DesignProposal.pdf -->
<div><span id="company-logo">
<img itemprop="logo" src="http://www.example.com/logo.png" />
<a itemprop="url" href="http://www.example.com/">Homepage</a>
</span></div>
<!-- top level entity: hotel > offer > seller > travelagency -->
@daarom
daarom / LodgingReservation markup
Last active August 29, 2015 14:09
LodgingReservation markup
<!-- header logo, usually elsewhere, island via itemref & id -->
<!-- whether the "a" property comes before the "b" property or not is not important: -->
<!-- http://www.w3.org/TR/microdata/ -->
<div><span id="vincentlogo">
<img itemprop="logo" src="http://www.example.com/logo.png" />
<a itemprop="url" href="http://www.example.com/">Homepage</a>
</span></div>
@daarom
daarom / sponsor property
Last active August 29, 2015 14:09
sponsor property between organizations
<!-- sponsor is currently only applicable to MedicalStudy? -->
<!-- https://schema.org/sponsor -->
<div itemid="#sponsor" itemscope itemtype="http://schema.org/Organization">
<span itemprop="name">Name of the Sponsor</span>
<div itemid="#recipient" itemscope itemtype="http://schema.org/Organization">
<span itemprop="name">Name of the Recipient</span>
<link itemprop="sponsor" href="#sponsor">
</div>
</div>