structured-data

Duplicate JSON-LD scripts in head

爷,独闯天下 提交于 2019-12-02 07:57:07
I have to inject multiple script elements for JSON-LD data into the head of my application, all pertaining to the same @type . This is due to pulling in different fields from different data source. Will this duplication cause any problems? <script type="application/ld+json"> { "@type": "Organisation", "name": "John Smith" } </script> <script type="application/ld+json"> { "@type": "Organisation", "city": "London" } </script> I'm hoping this will be translated by Google as simply: <script type="application/ld+json"> { "@type": "Organisation", "name": "John Smith", "city": "London" } </script> Is

AMP error: Missing supported structured data element

試著忘記壹切 提交于 2019-12-01 07:38:08
I have an aggregator site for books. I created dedicated AMP (Accelerated Mobile Page) for each book. Example AMP URL: http://konyvar.hu/amp/nicholas-sparks/az-utolso-dal Example canonical URL: http://konyvar.hu/nicholas-sparks/az-utolso-dal In Google Webmaster Tools, I see the following error for this page: Missing supported structured data element Google offers me to Open Test Tool , but it says: All good Please help me, I have no idea, what I'm doing wrong. Am looking at http://konyvar.hu/amp/nicholas-sparks/az-utolso-dal . I think you'll need to declare the AMP page as a NewsArticle or

AMP error: Missing supported structured data element

一笑奈何 提交于 2019-12-01 04:12:55
问题 I have an aggregator site for books. I created dedicated AMP (Accelerated Mobile Page) for each book. Example AMP URL: http://konyvar.hu/amp/nicholas-sparks/az-utolso-dal Example canonical URL: http://konyvar.hu/nicholas-sparks/az-utolso-dal In Google Webmaster Tools, I see the following error for this page: Missing supported structured data element Google offers me to Open Test Tool, but it says: All good Please help me, I have no idea, what I'm doing wrong. 回答1: Am looking at http://konyvar

What is the relation between Schema.org, Goodrelations-vocabulary.org and Productontology.org?

依然范特西╮ 提交于 2019-11-30 19:55:34
问题 What is the relation between Schema.org, Goodrelations-vocabulary.org and Productontology.org? Schema.org informs, "W3C schema.org Community Group is the main forum for the project". Google, Microsoft, Yahoo and Yandex are founding companies. Are Google, Microsoft, Yahoo and Yandex accepting Goodrelations-vocabulary.org and Productontology.org standard as well? If not, is it good idea to use them for future? Although Google did not mention, I read that there are some differences regarding

Can Schema.org Expected Types be collections, too?

家住魔仙堡 提交于 2019-11-29 16:56:39
A Schema.org object of type Person can have a sameAs property of type URL . According to Google's structured data site , the sameAs property can be a single item or an array. The docs on Schema.org do not mention whether sameAs can be a single item or an array. Is this just Google deviating from Schema.org? Or is it the case that all properties in Schema.org can be single items or arrays? Every Schema.org property can have multiple values. It doesn’t necessarily make sense for some properties (e.g., birthDate ), but it’s still allowed. In JSON-LD: "sameAs": ["/foo", "/bar"], In Microdata:

Can you use plain text for addresses in schema.org markup?

 ̄綄美尐妖づ 提交于 2019-11-29 15:25:54
I have a CMS that has a single text field for an Organization address. The data is stored very inconsistently and, in many cases, I'm dealing with city/state only. I'm fairly new to schema.org and would like to know if I can simply do something like the following to handle the markup: <p itemprop="address">Some city, WY</p> As I said, I'm new to all this, but I guess I'm using the "Microdata" format. Yes, you may use text as value for address . While its expected value is another item (namely PostalAddress ) instead of text, Schema.org does not require this (bold emphasis mine): While we would

Google does not correctly merge microdata and json+ld in the same page using same URI id

微笑、不失礼 提交于 2019-11-28 14:30:54
I have a product page with "microdata" and "json+ld" codes. Both of the codes refers to the same @id URI object ( http://www.example.org/product#this ) so I would expect to "mix/merge" both properties, but instead structured data testing tool shows 2 "individual" products so.... 1- Does Google support using two syntax in the same page? 2- Is this well implemented? Can I refer two codes to the same object using itemId for microdata and @id for json+ld? 3- Can this damage my page in terms of structure data indexing? thanks You can check it out using this code in test tool : <div itemscope

The difference between isPartOf and hasPart in Schema.org?

冷暖自知 提交于 2019-11-28 02:18:58
What is the difference between the Schema.org properties isPartOf and hasPart and when to use the one instead of the other? As noted on their pages, they are inverse properties . As an example, let’s take a webpage that is part of a website. You could then state one of these: WebSite hasPart WebPage WebPage isPartOf WebSite It doesn’t matter which one you choose. (But there might of course be consumers that only recognize one of these properties.) Note: Most of the time, Schema.org doesn’t define an inverse equivalent for a property. For example, there is author , but no authorOf . This is

JSON-LD and Microdata on the same page?

北城余情 提交于 2019-11-28 00:04:29
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 priority? unor The problem is that a consumer would think that different things are described (or more

Schema.org NewsArticle: invalid value for logo property

这一生的挚爱 提交于 2019-11-27 16:14:00
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="name">My Company</span> </div> the validator complains that the attribute contains an invalid value.