schema.org

How do I correctly markup a Product within an Offer within a Product?

萝らか妹 提交于 2019-12-06 03:54:27
I am getting Google Search console errors on the Product pages for a website I maintain, and I'm not sure how to resolve the errors. The error I'm getting is: One of offers or review or aggregateRating should be provided. This is simple enough to fix normally, however my confusion is that I am already providing the offers data in a different portion of the json ld. The structure of my Product json ld is Product{ Offers{ Product {} Product {} } } Where the nested products are the different variants of the same product. I don't have reviews or ratings available on the site, so that leaves me

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

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

喜欢而已 提交于 2019-12-05 22:21:58
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? 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 Social account proposal (no comments yet). But these properties are not there yet (if they’ll come at all). Of

Do I have to create new visible elements to abide by Google's Microdata Schema.org requirements?

一曲冷凌霜 提交于 2019-12-05 21:59:24
I have added Schema.org/Microdata properties to a list component on my site: // This is one item in my list: <div itemscope itemtype = "http://schema.org/WebApplication" > <span itemprop = "name"> The Awesome Web App 01 </span> <span itemprop = "locationCreated" itemscope itemtype = "http://schema.org/City" > <span itemprop = "name"> Chicago </span> </span> </div> When I run that through the google Structured Data Testing Tool I get error: Two of operatingSystem, aggregateRating, applicationCategory, offers are required. So I have a few questions: 1 - Does it matter that I have this error ?

Schema.org for the FAQ page

怎甘沉沦 提交于 2019-12-05 21:43:59
I have a FAQ page and I want to do it with better html-schema. <main role="main" itemscope itemtype="http://schema.org/WebPage"> <article itemprop="mainContentOfPage"> <header> <h1>Frequently Asked Questions</h1> </header> <section itemscope itemtype="http://schema.org/Question"> <h2 itemprop="name">Some question #1</h2> <p itemprop="suggestedAnswer acceptedAnswer" itemscope itemtype="http://schema.org/Answer"> <span itemprop="text">This is an answer #1</span> </p> </section> <section itemscope itemtype="http://schema.org/Question"> <h2 itemprop="name">Some question #2</h2> <p itemprop=

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

一世执手 提交于 2019-12-05 21:22:26
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"> <h1 itemprop="headline">A headline text</h1> <img itemprop="image" src="image.jpg"> </header> If the

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

試著忘記壹切 提交于 2019-12-05 18:39:35
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 JSON format and not for any HTML context like Stackoverflow? I don’t think Schema.org’s Actions would be

How to create SiteNavigationElement using JSON-LD?

佐手、 提交于 2019-12-05 14:19:36
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: 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": "Section 1", "url": "https://www.example.com/page#toc-1" }, { "@context": "https://schema.org", "@type":

Schema.org openingHours w/ multiple times & days that are closed

我只是一个虾纸丫 提交于 2019-12-05 08:14:51
I've looked at the Schema.org spec for opening hours, but it seems to fail to address two key items: 1) Localbusinesses that have multiple hours (ie 8-12, 1-5 with the hole in the middle being closed for lunch) 2) Days where the business is closed altogether. I can't find any examples of anyone else doing it on google, this is my code for just normal hours (9-5) and my GUESS for how to handle days that are closed. Can someone chime in on multiple hours and confirm my handling of closed days is correct? <time itemprop="openingHours" datetime="Mo 08:30-12:00"> <div style="font-weight:bold;width

Mixing JSON-LD and Microdata Schema.org

守給你的承諾、 提交于 2019-12-05 07:25:20
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 OpenCourseWare</span></h4> </div> <a itemprop="license" rel="license" href="http://creativecommons.org