schema.org

Can I add custom properties to a given @type in JSON-LD?

拜拜、爱过 提交于 2019-12-04 06:44:16
问题 I'm developing a website that allows users to explore a massive discography. All the data is currently stored in a JSON file, which I'm converting to JSON-LD in order to make it semantic and crawlable by search engines. Schema.org has a standard type for Music Albums, which doesn't have properties for some of the data I store (and present to users) for each album. These properties are marked as errors by Google's structured data validator. My question is: does Google just ignore the custom

Right way to set microdata for Q&A HTML

好久不见. 提交于 2019-12-04 06:37:28
Say one has a simple question and answer HTML and would like to add microdata, how should one proceed? <h2>My Question</h2> <p>My Answer</p> I am aware of the schema.org example, but I don't find it very clear. It looks like overkill. I need a simple solution. Can I proceed this way? <h2 itemscope itemtype="http://schema.org/Question">My Question</h2> <p itemscope itemtype="http://schema.org/Answer">My Answer</p> I just want to tell what the question is and what the answer is. Is this enough for search engines? Or should I have something more sophisticated like: <div itemscope itemtype="http:/

Google requiring certain properties for certain types when adding Schema.org markup?

吃可爱长大的小学妹 提交于 2019-12-04 04:58:17
问题 I tried to add Schema.org markup on my site, with the type Article , then adding some properties on it, when checked on Google Structured Data Testing Tool, it said required certain properties, like dataPublished , author etc. I can add some properties to meet the requirement, but not all of them. Is this requirement real? I mean really required by the rule? Or just Google rule? I came across this page https://developers.google.com/search/docs/data-types/articles It said for non-AMP, those

How does Google treat webpages with multiple JSON-LD Schema.org blocks?

前提是你 提交于 2019-12-04 04:47:47
问题 How do search engines like Google treat webpages with multiple JSON-LD (Schema.org) blocks? For example, what would happen if a page has both non-conflicting script blocks below? <script type="application/ld+json"> { "@context":"http://schema.org", "@type":"WebPage", "@id": "#123", "author": { "@type": "Person", "name": "Foo Bar" } } </script> <script type="application/ld+json"> { "@context":"http://schema.org", "@type":"WebPage", "@id": "#123", "text": "blah blah blah", "url":"pageurl" } <

Schema.org setup for multiple events on one page

浪子不回头ぞ 提交于 2019-12-04 04:16:27
问题 Is there a proper way to show multiple events on one page in Schema.org? Ideally, we don't want a page for each event. Here is a sample structure of what we want: <div itemscope itemtype="http://schema.org/Event"> <div itemprop="name"><h2>Chili Cookoff</h2></div> <div itemprop="location" itemscope itemtype="http://schema.org/PostalAddress"> <h3><span itemprop="addressLocality">Manhatten</span>, <span itemprop="addressRegion">New York</span> - <span itemprop="addressCountry">US</span></h3> <

Is it OK to have multiple items of the same Schema.org type on a page?

这一生的挚爱 提交于 2019-12-04 04:07:12
问题 I have a site which has three places where I would use Schema.org’s Organization ( itemtype="http://schema.org/Organization" ): the contact information with the affiliation for the contact person the site logo a profile for another organization How will search engines tell these three apart? The first two point to the same organization, but in different contexts. The last one does not represent our site at all but is a detailed profile for another organization. Will search engines know which

Error in Google SDTT: “All values provided for url must point to the same page.”

拥有回忆 提交于 2019-12-04 02:58:28
I am trying to create some JSON-LD structured data for a list of products on an ecom-site but I am getting an error when using Google's Structured Data Testing Tool. So far, I have this: { "@context": "http://schema.org", "@type": "OfferCatalog", "name": "Fresh Fruit", "itemListElement": [ { "@type": "ListItem", "position": 1, "item": { "@type": "Offer", "price": "1.20", "priceCurrency": "GBP", "availability": "http://schema.org/InStock", "url": "http://example.com/green-apples/", "itemOffered": { "@type": "Product", "name": "Green Apples", "url": "http://example.com/green-apples/" } } } ] }

Sitelinks Search Box JSON-LD giving error on Google Structured Data Testing Tool

ε祈祈猫儿з 提交于 2019-12-04 01:59:03
I implemented Google’s Sitelinks Search Box to my site. It was working very well. But today I cheked again on Google Structured Data Testing Tool and something was wrong. Now I’m getting below error: And my implementation is: <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "WebSite", "url": "https://www.saatler.com/", "potentialAction": { "@type": "SearchAction", "target": "https://www.saatler.com/arama?ara={search_term_string}", "query-input":"required name=search_term_string" } } </script> When I check the JSON on the JSON-LD playground everything is looking

Testing Gmail Schemas Fails

≯℡__Kan透↙ 提交于 2019-12-03 17:11:05
I'm trying to test Gmail Schemas where the sender and the recipient are the same(mine) account following the Self Testing Notes You can easily test if your markup is working correctly end-to-end by sending emails with schemas to your Gmail account. All emails where the sender and the recipient are the same account ignore the registration requirements and can be used for self-testing. but without the expected result, the "Action" button is not displayed. I have tried using both the JSON-LD and Microdata without results. Here the "Show original" of the email from my Gmail Account: Return-Path:

Can I use multiple itemtypes in one itemscope for Schema.org? [duplicate]

主宰稳场 提交于 2019-12-03 12:27:39
This question already has an answer here: Correct way to use multiple itemtypes in Microdata 2 answers I am wondering if I can use multiple itemtypes inside one item scope. For example I have this at the moment: <body id="home" itemscope itemtype="http://schema.org/WebPage"> <div class="wrapper" itemscope itemtype="http://schema.org/ProfessionalService"> <p itemprop from professional service></p> <p itemprop from web page></p> </div> </body> When I do a structured data test within Google's Web developer tools it only picks up items within the professional service schema and every itemprop that