microdata

How do I use Schema.org to identify filters on our hotel search site?

戏子无情 提交于 2019-12-07 00:30:00
I'm working on a site designed to help a user find a hotel. We've got lots of widgets for filtering the hotels we show (e.g. price filters) or else ordering the hotels we show (e.g. by distance). I can see how to markup our hotels as being a list . And also how to communicate the sort order of the list. And we're already marking up the hotel's themselves: <div itemscope itemtype="http://schema.org/Hotel"> <div itemprop="image" style="background-image: url('{{{ imageUrl }}}');"></div> <h2 class="title" itemprop="name">{{ name }}</h2> <div itemscope itemtype="http://schema.org/Offer"> <div

Is it possible to change Microdata itemprop with jQuery?

岁酱吖の 提交于 2019-12-07 00:14:27
Here is the code that shows success in console log but fails when tested with Google's Structured Data Testing Tool or with G+ share button. The original values remain. In this case "jack" never updates to "jill". var newName= "jill" $("h1").attr('itemprop','name').html(newName); Here is the Microdata: <body itemscope itemtype="http://schema.org/Blog"> <div style="display:none;"> <h1 itemprop="name">jack</h1> <img itemprop="image" src="http://somehewhere.com/something.png" /> <p itemprop="description">some text</p> </div> As you can see, just trying to change the value of "jack" to "jill". The

Linking superEvent property in Microdata with itemref

馋奶兔 提交于 2019-12-06 16:18:54
I'm adding Microdata to a page and I'm trying to associate a list of events to a superEvent, but I don't manage to make it work when checking at: http://www.google.com/webmasters/tools/richsnippets?q= Here the concept code: <div id="main" itemscope="main" itemtype="http://schema.org/Event"> <span itemprop="name">Main </div> <div itemscope="event" itemtype="http://schema.org/Event"> <span itemprop="name">Event <span itemprop="superEvent" itemref="main"> </div> Any idea? unor Problems with your Microdata: itemscope is a boolean attribute, so you should not give it values like "main" or "event".

Correct 'warranty' itemprop syntax

江枫思渺然 提交于 2019-12-06 16:07:08
What syntax is correct for warranty itemprop in https://schema.org/Offer ? This one <meta itemprop="warranty" content="2ANN" /> or … <meta itemprop="warranty" content="2 ANN" /> or with hierarchy … <span itemprop="warranty" itemscope itemtype="https://schema.org/WarrantyPromise"> <span itemprop="durationOfWarranty" itemscope itemtype="https://schema.org/QuantitativeValue"> <span itemprop="value">2</span> years <meta itemprop="unitCode" content="ANN" /> </span> </span> The warranty property expects a WarrantyPromise as value: Values expected to be one of these types WarrantyPromise So your last

How to correctly reference Microdata item from meta tag in header?

天涯浪子 提交于 2019-12-06 15:25:13
问题 <!DOCTYPE html> <html itemscope itemtype="http://schema.org/WebSite"> <head> <meta itemprop="creator" itemscope itemref="mdFoo"> </head> <body> <div id="mdFoo" itemscope itemtype="http://schema.org/LocalBusiness"> <meta itemprop="name" content="Foo comp"> <meta itemprop="telephone" content="0"> <meta itemprop="legalName" content="Foo comp Ltd"> <meta itemprop="url" content="http://www.foo.com"> <meta itemprop="email" content="info@foo.com"> <div itemprop="address" itemscope itemtype="http:/

Schema.org for closed on a holiday / given date

落爺英雄遲暮 提交于 2019-12-06 13:01:07
问题 How do I properly markup holiday hours when a business is closed on the holiday? Normal holiday hours markup example: <li itemprop="openingHoursSpecification" itemscope="" itemtype="http://schema.org/OpeningHoursSpecification" class="holidayHours"> <span itemprop="validFrom" content="2014-05-26">Memorial Day Hours, Monday, May 26th: </span> <span itemprop="validThrough" content="2014-05-26"></span> <span itemprop="opens" content="09:00">9 am</span> - <span itemprop="closes" content="15:00">3

Using Schema.org itemprop on Facebook OG meta tags

走远了吗. 提交于 2019-12-06 11:43:56
问题 Right now I'm using itemprop COMBINED with Facebook Open Graph <meta> tags like the following: <html class="no-js" itemscope="itemscope" itemtype="http://schema.org/WebPage"> // ... <meta property="og:type" content="website" /> <meta itemprop="name" property="og:title" content="My Title" /> <meta itemprop="image" property="og:image" content="http://example.com/socialimage.jpg" /> <meta itemprop="url" property="og:url" content="http://example.com" /> <meta itemprop="description" property="og

Microdata extraction from HTML in Java

我的未来我决定 提交于 2019-12-06 08:30:08
问题 I really need help to extract Mircodata which is embedded in HTML5. My purpose is to get structured data from a webpage just like this tool of google: http://www.google.com/webmasters/tools/richsnippets. I have searched a lot but there is no possible solution. Currently, I use the any23 library but I can’t find any documentation, just only javadocs which dont provide enough information for me. I use any23's Microdata Extractor but getting stuck at the third parameter: "org.w3c.dom.Document in

Schema.org setup for related products?

戏子无情 提交于 2019-12-06 07:20:08
问题 I would like to setup Schema.org markup for related products. I have tried this code but I have doubt in my mind: itemprop="isRelatedTo" itemscope itemtype="http://schema.org/Product" My product page is https://www.amigotrekking.com/everest-base-camp-trek.html 回答1: If it’s a "functionally similar" product, use the isSimilarTo property. If it’s a "consumable" for another product, use the isConsumableFor property. If it’s an "accessory or spare part" for another product, use the

Right way to set microdata for Q&A HTML

倖福魔咒の 提交于 2019-12-06 01:54:09
问题 Say one has a simple question and answer HTML and would like to add microdata, how should one proceed? <h2>My Question</h2> <p>My Answer</p> I am aware of the schema.org example, but I don't find it very clear. It looks like overkill. I need a simple solution. Can I proceed this way? <h2 itemscope itemtype="http://schema.org/Question">My Question</h2> <p itemscope itemtype="http://schema.org/Answer">My Answer</p> I just want to tell what the question is and what the answer is. Is this enough