schema.org

How to do a new extension with Schema.org + Microdata?

旧城冷巷雨未停 提交于 2019-12-31 03:04:08
问题 I have seen in a post that the slash is no longer up to date for creating new extensions in Schema.org. I am using Microdata and would prefer to stick to it across my site. What is the new way to create a new extension? For example I want to create a new extension for MedicalTourism under the category Travel Agency. Before it would have been http://schema.org/TravelAgency/MedicalTourism What is the new way? And what would the code look like? 回答1: You may still use Schema.org’s "slash-based"

Proper way to use the 'publisher' property (“The attribute publisher.itemtype has an invalid value.”)

…衆ロ難τιáo~ 提交于 2019-12-31 02:42:15
问题 When I attempt to validate my structured data using Google's Structured Data Testing tool, I get an error: The attribute publisher.itemtype has an invalid value. I am getting that on this line: <meta itemprop="publisher" content="My Real Name Here" /> How do I provide a valid value for this property? 回答1: The expected value of the publisher property is another item (Organization or Person). While Schema.org always allows to provide a string value (like you do), Google might require a certain

Is it possible to use two names for a person in schema.org?

ε祈祈猫儿з 提交于 2019-12-29 09:39:06
问题 I'm using schema.org in my website. When I want to name a person there is no problem, but I have to give that two names (one in English global language and another in local language). Is it possible? If so, how? 回答1: Simply use the corresponding property several times for the same item. Example in Microdata: <div itemscope itemtype="http://schema.org/Person"> <div itemprop="name">John</div> <div itemprop="name">Johannes</div> </div> (Note that there is also the alternateName property.) You

Linking independent elements in Microdata

℡╲_俬逩灬. 提交于 2019-12-29 08:22:39
问题 I'm creating a site about an author. He is the main-topic. On this site his written books are shown, too. Unfortunately, I can't find a solution to link these books to the main person-element. I tried itemref , but it doesn't work when linking to such 'independent' element, which has no itemprop value (says the Google testing tool). Both following "book"-cases don't work. <div id="author" itemscope="" itemtype="http://schema.org/Person"> <span itemprop="name">Marvin</span> </div> <div

Linking independent elements in Microdata

佐手、 提交于 2019-12-29 08:22:16
问题 I'm creating a site about an author. He is the main-topic. On this site his written books are shown, too. Unfortunately, I can't find a solution to link these books to the main person-element. I tried itemref , but it doesn't work when linking to such 'independent' element, which has no itemprop value (says the Google testing tool). Both following "book"-cases don't work. <div id="author" itemscope="" itemtype="http://schema.org/Person"> <span itemprop="name">Marvin</span> </div> <div

Schema.org NewsArticle: invalid value for logo property

孤街浪徒 提交于 2019-12-28 02:18:30
问题 I try to markup a little section in my code as NewsArticle but I can't get it to validate. If I do this <div itemscope itemprop="publisher" itemtype="https://schema.org/Organization"> <span itemprop="name">My Company</span> </div> the validator complains that there is no logo . And if I add a logo like this <div itemscope itemprop="publisher" itemtype="https://schema.org/Organization"> <img itemprop="logo" src="https://www.mysite.de/resources/assets/71/small/my_logo_web.png" /> <span itemprop

Alternative method for using Microdata datetime in HTML5 for HTML4

柔情痞子 提交于 2019-12-25 08:33:31
问题 This code is for HTML5: <time itemprop="datePublished" datetime="2012-01-07T07:07:21+00:00">January 7, 2012</time> Can I use this code for HTML4? <div itemprop="datePublished"> <span dateCreated="2012-01-07T07:07:21+00:00">January 7, 2012</span> </div> Or something like this? 回答1: Note that Microdata is specified for HTML5, not for HTML 4.01 (related question). If you don’t care about that: HTML 4.01 doesn’t define a dateCreated attribute for the span element. There is also no time or data

Adding schema.org tags to a site's header: how and which schema?

自古美人都是妖i 提交于 2019-12-25 04:27:50
问题 I have a website that provides transportation services, not products (with this I mean that we don't sell widgets of this brand, this other model...; we just provide one kind of transportation service). I'm a bit unclear about how should I add schema.org microdata to my site, so I basically looked at what Ryanair was doing (since our product most resembles theirs) and copied their markup (changing it to our company's name, obviously). Their markup is as such: <meta content="IE=edge" http

Schema Markup: How to temporarily “escape” itemscope

谁都会走 提交于 2019-12-25 03:08:05
问题 I would like to markup some content using Schema but am running into an issue with my itemscopes. I have the following markup right now: <div itemscope itemtype="https://schema.org/medicalClinic"> <div itemprop="availableService" itemscope itemtype="https://schema.org/MedicalProcedure"> <span itemprop="name">First Service Name</span> <span itemprop="description">First Service Description</span> <div itemprop="availableService itemscope itemtype="https://schema.org/MedicalProcedure"> <span

Nestet Microdata structure with Schema.org

雨燕双飞 提交于 2019-12-25 02:08:54
问题 Can you please tell me if this structure is correct? <div itemscope="" itemtype="http://schema.org/WebPage"> <div itemprop="creator"> <div itemscope="" itemtype="http://schema.org/Article"> <a itemprop="URL" itemprop="name"><a/> </div> </div> </div> Is this structure correctly nested? Does itemprop="name" belong to itemtype="http://schema.org/Article" ? Can I use two or more itemprop in one element? 回答1: itemprop="creator" must be on the same element as the itemscope. itemprop="name" should