schema.org

Schema.org: How to extend a Class or Type

人盡茶涼 提交于 2019-11-26 22:08:18
问题 I have to model a product, which has properties that aren't listed in the Schema.org Product type. After seeking in many places, I didn't find anything that fits to my need. How can I extend the Schema.org Product type? 回答1: You could always use other vocabularies (that offer the properties you need) in addition to Schema.org. But if you want to use only the vocabulary Schema.org, you have two options in general: Propose new properties (or classes). You can do this on Schema.org W3C Community

JSON-LD and Microdata on the same page?

流过昼夜 提交于 2019-11-26 21:38:33
问题 I have both Micro Data and JSON-LD on my e-commerce product pages, describing the same thing (products in my case). For reasons beyond the scope of this question, I cannot remove either of the two formats. I am wondering: Is this a problem for Google? The structured data testing tool does display two items (products) instead of one. If one property, let's say the name of the product, is slightly different between the two formats, would any of the two formats, for example, JSON-LD take

Is there a microdata tag to designate whether a value is a number, string, or bool?

对着背影说爱祢 提交于 2019-11-26 21:07:15
There is an HTML5 attribute called datetime that indicates that a value type is a datetime. But I see no way to indicate whether a itemprop value in span tag is a string, bool, or number. Am I right that there is no way to include this kind of information in microdata? If so, is there some reason why this capability should be omitted? The Microdata specification only differs between these types of values , which get derived from the HTML5 markup: item (if an element has an itemprop and an itemscope attribute) absolute URL (if the itemprop is specified on an URL property element like a , video

OpenGraph or Schema.org?

▼魔方 西西 提交于 2019-11-26 19:35:30
Just wondering whether you guys out there are favouring the OpenGraph protocol following markup like: <meta property="og:title" content="The Rock" /> <meta property="og:type" content="movie" /> <meta property="og:url" content="http://www.imdb.com/title/tt0117500/" /> Or the Schema.org protocol with <div itemscope itemtype="http://schema.org/Product"> <span itemprop="name">Kenmore White 17" Microwave</span> <img src="kenmore-microwave-17in.jpg" alt='Kenmore 17" Microwave' /> <div itemprop="aggregateRating" itemscope itemprop="http://schema.org/AggregateRating"> Which one should I integrate as I

HTML 5 Page without main <header>?

♀尐吖头ヾ 提交于 2019-11-26 18:36:40
问题 Is it bad to nave no <header> ? I have this basic structure but I am thinking about wrapping a header arround everything between the body start and the content because the header has also this nice shema.org markup attached. Good Idea? Just because sometimes the header is not there but the navbars actually contain the brandname and are sort of headers themseves. if I do this how should I markup whats the <header> right now? A section inside a header is not valid right? Just a normal <div> I

Using schema.org branchOf with itemref

谁说我不能喝 提交于 2019-11-26 18:00:52
I have a company page that has all the local branches listed on it. On the page header, I have an itemType of Organization defined. Each LocalBusiness (Hotel) is further down the page. For each Hotel, I'm trying to add the branchOf property using a meta tag, but both Yandex and Google Snippets comes up blank for this attribute. Is it possible to do this way? <div itemscope itemtype="http://schema.org/Organization" id="schema-organization"> <meta itemprop="description" content="blah blah blah" /> <a href="/" itemprop="url"> <h1 itemprop="name">The Hotel Chain</h1> </a> <div itemprop="address"

Schema.org/Microdata markup for list of recent posts without providing “author” / “publisher”?

僤鯓⒐⒋嵵緔 提交于 2019-11-26 17:52:33
问题 The following code shows a list of links to recent posts on an experimental blog site I am playing with. The problem is that this fails Google's Structured Data Testing Tool because it is missing required items such as author and publisher . But I don't want to show these for recent posts and I don't want to show them for every blog post either. What should I do? Get rid of the structured data? Put the required stuff in and hide it with CSS? Or leave as is? <section> <header> <h4 class="h4

Why does Google Testing Tool use the “id” attribute to generate a URL for the Microdata item?

☆樱花仙子☆ 提交于 2019-11-26 17:52:04
问题 I'm using some Microdata to describe a blog post, and I'm surprised by the value return for Schema.org’s BlogPosting by the Google Developers Testing Tool. I would have expected it to be the itemprop url , not a merge of the website URL and the item id . Am I doing something wrong, or is it only a Google display issue? <div itemscope="itemscope" itemprop="blogPost" itemtype="http://schema.org/BlogPosting" id="foobar"> <a itemprop="url" href="/realone">real</a> </div> Value returned by https:/

Schema.org - JSON-LD - Where to Place?

為{幸葍}努か 提交于 2019-11-26 17:33:36
I am looking to use JSON-LD for schema on a website. (Schema meaning schema.org data.) I know how to write the data but my question is is there a prefered location in my code to insert this data? In other words, should the JSON-LD always be in the head , body , etc.? From the perspectives of Schema.org, JSON-LD, and the possibly extracted RDF, it should not matter. The data is the same, no matter from where in the document it got extracted. From the perspective of HTML5: If it’s data about your page (or what this page is about), you could place the script element in the head , as the head

Hide Microdata property value in &#39;content&#39; attribute?

萝らか妹 提交于 2019-11-26 14:56:40
问题 I work on a website that recently had Schema.org markup added to it, but I think it is being used wrong. Schema.org gives the example of <span itemprop="name">Generic Name Here</span> Our website implemented it in the following way <span itemprop="name" content="Generic Name Here"></span> Is the second way, our way, considered cloaking? We display the data to the user but at a different point and it is not marked up with itemprop . 回答1: In HTML5, the content attribute is only allowed on the