schema.org

@id vs. URL for linking JSON-LD nodes

风格不统一 提交于 2019-11-26 14:49:44
问题 I have defined the publisher Organization on the WebSite node defined on the home page, and I now want to link to that publisher from articles on other pages. However, I also want to link to the WebSite as well, and they naturally share the same @id if I follow the advice of using the URL as the @id . { "@context": "http://schema.org", "@type": "WebSite", "@id": "http://www.example.com/", "url": "http://www.example.com/", ... "publisher": { "@type": "Organization", "@id": "http://www.example

Does Schema.org markup work if markup is dynamically built with JavaScript?

穿精又带淫゛_ 提交于 2019-11-26 13:50:33
I have a page where some events are dynamically loaded by reading some JSON with JavaScript. I build a div for every event with the Event Schema.org markup. Google's testing tool doesn't read this markup. Is it because of an error in the markup, or is it because of the dynamic loading? The HTML code of one Event is: <div class="evento well" itemscope itemtype="http://schema.org/Event"> <meta itemprop="startDate" content="2015-03-20T20:00:00.000Z"> <meta itemprop="endDate" content="2015-01-21T20:00:00.000Z"> <div class="dataEvento"> <div class="dayWeekEvento">venerdì</div> <div class=

Schema.org JSON-LD reference

徘徊边缘 提交于 2019-11-26 11:53:57
I have a question about referencing a JSON-LD schema.org markup in another JSON-LD schema.org markup. I have a page with a main event which is located at http://event.com/ and here's the JSON-LD markup for it. <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "Event", "name": "MainEvent", "startDate": "2016-04-21T12:00", "location": { ... } } </script> Main event has multiple sub events located at for example http://event.com/sub-event-1/ and here's the JSON-LD markup for that: <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "Event"

What is the correct use of schema.org SiteNavigationElement?

巧了我就是萌 提交于 2019-11-26 10:43:43
问题 In SEO terms... Is it best to put the scheme on the parent containing all the links? <nav itemscope=\"itemscope\" itemtype=\"http://www.schema.org/SiteNavigationElement\"> <a href=\"#\">Link 1</a> <a href=\"#\">Link 2</a> <a href=\"#\">Link 3</a> </nav> ...or should each link be considered as it\'s own element? <nav> <span itemscope=\"itemscope\" itemtype=\"http://www.schema.org/SiteNavigationElement\"> <a itemprop=\"url\" href=\"#\"> <span itemprop=\"name\">Link 1</span> </a> </span> <span

Is it possible to use the same meta tag for opengraph and schema.org

不想你离开。 提交于 2019-11-26 09:49:50
问题 I dont like the amount of tags in the head of my document. here is an example of some meta tags. <!--w3c--> <title>Page Title</title> <meta name=\"description\" content=\"great description\"> <!--schema.org--> <meta itemprop=\"name\" content=\"Page Title\"> <meta itemprop=\"description\" content=\"great description\"> <!-- opengraph--> <meta property=\"og:title\" content=\"Page Title\"> <meta property=\"og:description\" content=\"great description\"> Is it possible to combine the tags

Can I Use Multiple ItemProps in a Span Tag for schema.org Rich Snippets?

痴心易碎 提交于 2019-11-26 09:46:55
问题 Let\'s say I have the following sentence I want to add rich snippets to: I live and work in New York Since New York is both my residency and the city where I work in, I would theoretically want to tag the line like this using schema.org standards: <div itemscope itemtype = \'http://schema.org/Person\'>I live and work in <span itemprop = \'homeLocation\' itemprop = \'workLocation\'>New York</span></div> Is it valid to have 2 itemprops in one span tag? If not, will the below work? <div

JSON-LD Schema.org: Multiple video/image page

青春壹個敷衍的年華 提交于 2019-11-26 08:49:10
I can't figure out how you would define a bunch of videos on the same page. i.e. a search page. Let's say you've a site that returns 50 different videos. Then how are you supposed to define this with JSON-LD ? unor If you have multiple items as value of a property, you could use an array : <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "WebPage", "video": [ { "@type": "VideoObject" }, { "@type": "VideoObject" } ] } </script> If you have multiple items on the top-level (not as value of a property), you could use a (named) graph and an array: <script type=

Why use Schema.org microdata to mark up web page elements?

随声附和 提交于 2019-11-26 08:37:43
问题 I understand why and how to use Schema.org to add microdata to your site, this is not a question about that. The question is why Schema.org has support for certain things that can be marked up with simple HTML5 . Among these are Types WebPage and WebSite I can see why WebPage and WebSite would be needed, for example, to reference the page/site of a certain organization in a link, but there\'s no need to mark up your own page with this—the <html> tag does this. SiteNavigationElement Why not

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

穿精又带淫゛_ 提交于 2019-11-26 07:49:44
问题 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? 回答1: 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

How to implement “mainEntityOfPage” to this specific site?

ⅰ亾dé卋堺 提交于 2019-11-26 07:38:57
问题 Please take a look here: https://developers.google.com/structured-data/testing-tool?url=https%253A%252F%252Fglamourina.net%252Fen%252F How can I correctly add mainEntityOfPage to this site? In Google documentation example I see something like this: <div itemscope itemtype=\"http://schema.org/NewsArticle\"> <meta itemscope itemprop=\"mainEntityOfPage\" itemType=\"https://schema.org/WebPage\" itemid=\"https://google.com/article\"/> But this is a single author blog. And it features blogPosts.