microdata

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=

'itemprop' and 'rel' attributes on same element

依然范特西╮ 提交于 2019-12-05 09:51:05
Is it valid to use the itemprop attribute and the rel attribute on the same element? The example from Google’s Site Name documentation contains <link rel="canonical" href="https://example.com/" itemprop="url"> which gives this error in https://validator.w3.org/nu/ : Attribute rel not allowed on element link at this point. It depends on the specification. Microdata, where the itemprop attribute is coming from, is defined by WHATWG’s HTML as well as by W3C’s HTML Microdata . The WHATWG version is a living standard without snapshots (so things might change; my quotes are from 2015-07-25), the W3C

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

Can we have multiple itemprop's on single element for microdata tagging

家住魔仙堡 提交于 2019-12-05 04:13:26
Can we tag a single html element with multiple "itemprop" properties? I'm working on something for micro data tagging.(schema.org) <asp:HyperLink ID="hlnk10" itemprop="url" itemprop ="manufacturer" runat="server"> </asp:HyperLink> The hyperlink Text contains both properties I want to tag Is this possible as per schema.org standards? Thanks in advance. My reading of the specification leads me to the conclusion that you can have just one itemprop attribute per element but it can have more than one value. "Every HTML element may have an itemprop attribute specified... The itemprop attribute, if

Schema.org for closed on a holiday / given date

天大地大妈咪最大 提交于 2019-12-04 19:34:09
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 pm</span> </li> What is the schema.org or Google preferred way to show closed on a holiday? Would this

Using Schema.org itemprop on Facebook OG meta tags

回眸只為那壹抹淺笑 提交于 2019-12-04 16:41:06
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:description" content="My description" /> <meta property="og:site_name" content="My Site"/> Is this

Schema.org setup for related products?

╄→尐↘猪︶ㄣ 提交于 2019-12-04 14:37:19
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 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 isAccessoryOrSparePartFor property. If it’s a "somehow related" product, use the isRelatedTo property. So for a related

Schema.org <head> HTML markup: can I just use the meta tags?

﹥>﹥吖頭↗ 提交于 2019-12-04 12:51:52
So I was looking at Schema.org. Do I need to change my <html> tag to this <html itemscope itemtype="http://schema.org/Article"> or can I just use only the meta tags within my <head></head> block? <meta itemprop="name" content="The Name or Title Here"> <meta itemprop="description" content="This is the page description"> <meta itemprop="image" content="http://www.example.com/image.jpg"> Properties need to belong to an item. You create an item with the itemscope attribute (and the itemtype attribute can give this item a type). Without itemscope , your markup example is invalid. It is possible to

Microdata extraction from HTML in Java

徘徊边缘 提交于 2019-12-04 11:39:32
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". I can't parse a HTML content to be a w3cDom. I have used JTidy as well as JSoup but the DOM objects