schema.org

2 itemprops for 2 colors of the same product?

久未见 提交于 2019-12-02 07:02:56
In a product with two colors, is it better to use two itemprop items or just one? <meta itemprop="color" content="red" /> <meta itemprop="color" content="black" /> Or <meta itemprop="color" content="red and black" /> I am using https://schema.org/ vocabulary. unor From the Microdata perspective, both ways are possible. The difference is that you are adding two values in the first case, and one value in the second case. From the Schema.org perspective, we’d have to understand how this property was meant to be used. The description of color says: The color of the product. It uses singular here,

Should Schema.org dateModified have some default value if not available?

时光怂恿深爱的人放手 提交于 2019-12-02 06:56:32
For Schema.org Article I get an error in https://developers.google.com/structured-data/testing-tool/ for dateModified : The dateModified field is recommended. Please provide a value if available. Do I have to write something that I don't have modified date? Because a lot of posts weren't updated. I am unsure if Google is telling me only that it is recommended since there is bright red sign telling me I have an error and this doesn't look promising for my boss who will be checking after me :) unor The SDTT is not a general Schema.org validator. It primarily checks the Schema.org-based

itemtype with http or better https?

馋奶兔 提交于 2019-12-02 06:30:10
I use like: itemtype="http://schema.org/ImageObject" but the request http://schema.org/ImageObject will be forwarded to https://schema.org/ImageObject . If I change to itemtype="https://schema.org/ImageObject" , the Google SDTT shows no problem, but nearly all examples about structured data from Google are with http. What is best or recommended to use http://schema.org or https://schema.org for itemtype ? From Schema.org’s FAQs : Q: Should we write https://schema.org or http://schema.org in our markup? There is a general trend towards using https more widely, and you can already write https:/

Schema.org 'Organization' only on contact page or on every page?

别等时光非礼了梦想. 提交于 2019-12-02 05:17:14
问题 I'd like to place a Schema.org Organization item on my website. Should I place the JSON-LD only on the contact page or can I add it to every page of the website? What is the best solution? 回答1: With Schema.org, you would typically provide structured data about what is relevant to the current page. Assuming that it’s the website of the organization, you could specify your Organization as value for these properties: publisher (for WebSite , for every WebPage ) about and mainEntity (for WebSite

How to send structured email markup using Gmail API and Javascript?

不羁的心 提交于 2019-12-02 04:58:23
I'm trying to build a Javascript app that uses Gmail's API to send emails (to myself) including the structured data needed for Gmail's Inbox to recognise a hotel reservation. The goal is to be able to enter details about the reservation in an HTML form and have the app send me an email than Inbox then recognises as a hotel reservation and adds a Trip bundle to my inbox. I followed a worked example, here , that uses Google Apps Scripts to send emails from my account to myself. The script pulls the body from a file as html, including the necessary structured data in JSON format. This works fine,

Duplicate or link to WebSite JSON-LD?

只谈情不闲聊 提交于 2019-12-02 04:26:27
I'm replacing the microdata ( itemscope et al) on our sites with JSON-LD. Do I need to declare the WebSite on every page, or can I place it once on the home page? If the latter, will processors (by which I mean Google) tie each page to it automatically via the domain name, or is there some way to link to it? Given that "Linked Data" is right there in the name, I've found no examples that make use of it. They all replicate or embed the data directly in the thing that's linking. For example, I want to link to our YouTube videos that we embed in articles, but Google doesn't understand a URL for

RDFa OfferCatalog Syntax

荒凉一梦 提交于 2019-12-02 04:22:39
I have been trying to find the best way to link two items together using RDFa, specifically linking a Person to multiple SoftwareApplication entries. The way I currently do this on the author page is: <div class="container text-center" vocab="http://schema.org/" typeof="Person"> ... <span property="hasOfferCatalog" typeof="OfferCatalog"> <meta property="numberOfItems" content="10" /> <span property="itemListElement" typeof="CreativeWork"> <meta property="name" content="Project Name" /> <meta property="url" content="https://www.my-domain.tld/ProjectName/" /> </span> ... As above the project is

Errors in Microdata for image/logo as part of a BlogPosting

こ雲淡風輕ζ 提交于 2019-12-02 03:53:12
I am having an issue getting a publisher logo and blog post image to validate using Google's Structured Data Testing Tool. Some sample markup of what I currently have is: <article class="post" itemscope itemprop="blogPost" itemtype="http://schema.org/BlogPosting"> <div class="preview"> <h2 itemprop="mainEntityOfPage headline"><a href="/blog/improving-the-patient-experience-through-the-revenue-cycle-part-1">Improving the Patient Experience through the Revenue Cycle Part 1</a></h2> <div class="meta"> <span itemprop="datePublished" class="published-date">Friday, February 19, 2016</span> <span

Why is my http://schema.org/BreadcrumbList not validating?

送分小仙女□ 提交于 2019-12-02 03:03:07
问题 I'm using schema.org microdata on my web site but I'm struggling with the BreadcrumbList as Google's structured data testing tool will not validate it. It looks correct and I can't see what's wrong. You can click the above link to see the errors, but to summarise, Google says that the itemtype attribute has an invalid value for each of the items and also complains that the mainEntityOfPage attribute is missing from the list. I did try adding mainEntityOfPage in a meta tag but it still

Am I allowed to use properties from Thing/CreativeWork/WebPage for an AboutPage item?

两盒软妹~` 提交于 2019-12-02 02:53:06
I'm trying to learn how Microdata works and I was looking at the Schema.org website and I kinda get how the basics works because you can find some outlined examples online of the Navigations, Headers, Sidebars and Footers - but I don't understand what properties you can use with more complex item types. Let's say I have an About page on my site. Nothing fancy, you just talk about your business but there is a item type http://schema.org/AboutPage you can use. So I visit that link but to be honest everything you see at that page isn't really written down for beginners I think. Am I allowed to