Re: How to add Schema in my Hotel Booking Website

This is great hans ! thank you very much !

My question is now about solving the age old  question : how did they know
what to do ?

Regards

Malcolm

Radienced Tours <http://www.Radienced.com>




On Fri, May 13, 2016 at 11:19 AM, Hans Polak <info@polak.es> wrote:

> Found inside the Booking code:
>
> booking.com
>
> <script type="application/ld+json">
> {
> "@context": "http://schema.org" <http://schema.org>,
> "@type": "Organization",
> "url": "http://www.booking.com" <http://www.booking.com>,
> "logo":
> "http://q-ec.bstatic.com/static/img/booking_logo_knowledge_graph/247454a990efac1952e44dddbf30c58677aa0fd8.png"
> <http://q-ec.bstatic.com/static/img/booking_logo_knowledge_graph/247454a990efac1952e44dddbf30c58677aa0fd8.png>
> }
> </script>
>
> <script type="application/ld+json">
> {
> "@context": "http://schema.org" <http://schema.org>,
> "@type": "WebSite",
> "url": "http://www.booking.com/" <http://www.booking.com/>,
> "potentialAction": {
> "@type": "SearchAction",
> "target":
> "http://www.booking.com/searchresults.html?aid=800210&si=ai,ci,co,di,la,re&ss={search_term_string}"
> <http://www.booking.com/searchresults.html?aid=800210&si=ai,ci,co,di,la,re&ss=%7Bsearch_term_string%7D>
> ,
> "query-input": "required name=search_term_string"
> }
> }
> </script>
>
> Inside a hotel page:
>
> <http://www.booking.com/hotel/es/hostal-cordoba.en-gb.html?aid=304142;label=gen173nr-1FCAEoggJCAlhYSDNiBW5vcmVmaEaIAQGYAS64AQ_IAQ_YAQHoAQH4AQuoAgM;sid=39ce132f8b30f9342166716f12891bde;dcid=1;dist=0&sb_price_type=total&src=asip&type=total&>
> http://www.booking.com/hotel/es/hostal-cordoba.en-gb.html
>
> <div id="breadcrumb"
> vocab="http://schema.org/" <http://schema.org/> typeof="BreadcrumbList"
> class="tracked breadcrumb breadcrumbs-capitalize"
> >
> <div property="itemListElement" typeof="ListItem"
> data-google-track="Click/Breadcrumb/hotel -> home/1" style="float:left;
> display: block;">
> <a property="item" typeof="WebPage"
> href="/index.en-gb.html?aid=304142;label=gen173nr-1FCAEoggJCAlhYSDNiBW5vcmVmaEaIAQGYAS64AQ_IAQ_YAQHoAQH4AQuoAgM;sid=39ce132f8b30f9342166716f12891bde;dcid=1"
>  target="_blank"
> title="Booking.com">
> Home
> </a>
> ....
> </div>
>
> <div id="right" class="rlt-right" role="main" itemscope itemtype=
> "http://schema.org/Hotel" <http://schema.org/Hotel>>
> ...
> <span class="hp_address_subtitle jq_tooltip" rel="14" itemprop="address"
> data-source="top_link" data-coords=","
> data-node_tt_id="location_score_tooltip"
> data-bbox="-3.7065701186657,40.3992627422236,-3.68311420083046,40.4119463459421"
> data-width="350" title="">
> Paseo de Santa MarĂ­a de la Cabeza, 21, Arganzuela, 28045 Madrid, Spain
> </span>
> ...
>
>
> As you can see, Booking combines all three formats; JSON-LD, Microformat
> and RDFa.
>
> I hope that helps. At any rate, your programmers should be able to use my
> generator tool, combined with the validator tool to create valid pages.
>
> Cheers,
> Hans
>
>

Received on Friday, 13 May 2016 09:37:35 UTC