schema.org

Schema.org usage of WPHeader (or how to add structured data to ‘Hero’ images

霸气de小男生 提交于 2019-12-07 18:01:46
问题 This question is related to this question: Uniform way to add multiple descriptive properties in Schema.org Recently I found this code on HTML5 & Schema.org - Structured Microdata for SEO, along with the statement that the Schema.org WPHeader type is a WebPageElement that can include markup from CreativeWork as well as Thing : <header role="banner" itemscope itemtype="http://schema.org/WPHeader"> <meta itemprop="name" content="A name"> <meta itemprop="description" content="A description text"

Why is SO using schema.org Article instead of AskAction?

泄露秘密 提交于 2019-12-07 15:05:00
问题 Actually I do a research on schema.org implementation for a web portal that has something like questions and answers. But now I see that stackoverflow is using http://schema.org/Article for questions instead of http://schema.org/AskAction and http://schema.org/ReplyAction . I think ask and reply is a much better format for a Q&A platform than an article. Or is there a SEO reason why we should avoid AskAction and ReplyAction ? Edit: Or are AskAction and ReplyAction just for communication in

What markup should I use to describe social media links using schema.org?

时光怂恿深爱的人放手 提交于 2019-12-07 12:19:46
问题 I have a Place/Local Business that has various fields that map quite nicely to schema.org entries. There is one field I'm not sure how to mark up though. We have links to social media accounts for the business such as their Twitter account, Facebook Page and Pinterest account. How should these be marked up in schema.org? 回答1: There is a proposal for a socialAccount property (and another one), and an older discussion about an account property. The relevant issue on Schema.org’s GitHub is

How to create SiteNavigationElement using JSON-LD?

廉价感情. 提交于 2019-12-07 10:56:56
问题 I'm trying to use the SiteNavigationElement type from Schema.org. The HTML is generated dynamically so I can't edit it. So JSON-LD is my only option. I want all navigation elements under a single SiteNavigationElement object. I have attached the desired output as screenshot: 回答1: Here's how to do it: <script type="application/ld+json"> { "@context": "https://schema.org", "@graph": [ { "@context": "https://schema.org", "@type":"SiteNavigationElement", "@id":"#table-of-contents", "name":

url vs sameAs (schema.org)

我与影子孤独终老i 提交于 2019-12-07 10:33:10
问题 What's the practical difference between using url vs sameAs properties in schema.org? I'm adding microdata information to the big Internet website, contains millions of pages. Using a correct tag is very important. The context may be, for example, the link to the official page on the page describing the County, State or a public Park. It may be also the link to external page with more details about the topic (which may be basically anything in a range from drugs prescriptions to an English

schema.org / microdata - Product or Offer?

戏子无情 提交于 2019-12-07 06:47:53
问题 I am having trouble using MicroFormats and working out which itemtype to use, either Product or Offer. I have used Offer to add data to the various products that we sell (1 per page). Although this validates properly in the Google Structured Data testing tool it will not show the Price/Rating/InStock in the results. If I use a mixture of Product and Offer then it will although I am not sure this is the correct way to do this ? Thanks, Rick <title>My Tent</title> <div itemscope itemtype="http:

Mixing JSON-LD and Microdata Schema.org

一世执手 提交于 2019-12-07 03:24:17
问题 If I have the following markup: <body itemscope="" itemtype="http://schema.org/WebPage"> <h1 itemprop="name">Lecture 12: Graphs, networks, incidence matrices</h1> <p itemprop="description">These video lectures of Professor Gilbert Strang teaching 18.06 were recorded in Fall 1999 and do not correspond precisely to the current edition of the textbook.</p> <div itemprop="publisher" itemscope="" itemtype="http://schema.org/CollegeOrUniversity"> <h4 class="footer">About <span itemprop="name">MIT

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".