schema.org

How to implement schema.org markup for a breadcrumb?

痴心易碎 提交于 2019-11-28 16:06:41
There isn't much info about implementing a breadcrumb using schema.org markup. So far, I could get two official documents -- one showing this: <div itemscope itemtype="http://schema.org/Property" itemid="http://schema.org/breadcrumb"> <link itemprop="domain" href="http://schema.org/WebPage"/> <link itemprop="range" href="http://schema.org/Text"/> </div> And another showing this: <body itemscope itemtype="http://schema.org/WebPage"> <div itemprop="breadcrumb"> <a href="category/books.html">Books</a> > <a href="category/books-literature.html">Literature & Fiction</a> > <a href="category/books

Schema.org Organizational markup Issue

余生颓废 提交于 2019-11-28 14:34:30
I was trying to implement this for my website: http://googlewebmastercentral.blogspot.in/2013/05/using-schemaorg-markup-for-organization.html I have a quick doubt on this: Is it compulsory to tag existing visible on page elements on homepage?? say if we don't have a visible logo image on homepage, Can we add a separate logo image in a piece of code in body section as mentioned like : <div itemscope itemtype="http://schema.org/Organization" style="display:none;"> <a itemprop="url" href="http://myDomain.com/"></a> <img itemprop="logo" src="http://myDomain.com/logo.png" /> </div> So, if i add CSS

Schema for an actor/actress Person

丶灬走出姿态 提交于 2019-11-28 14:34:26
How could I represent the Movie , TVSeries or any other CreativeWork items a Person acted or participated in? I mean, something like: { "@context": "http://schema.org/", "@type": "http://schema.org/Person", "name": "John Doe", "performerIn" : [ { "@type": "http://schema.org/Movie", "name": "A Movie" }, { "@type": "http://schema.org/Movie", "name": "Another Movie" } ] } Unfortunately, performerIn works only for Event items. For an actor in a Movie / TVSeries /etc., you can use the actor property . As Schema.org defines no inverse property for actor , you can use JSON-LD’s @reverse : { "@context

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

Parsing schema.org ttl/owl file using Jena

末鹿安然 提交于 2019-11-28 14:30:42
I'm writing a code generator that generate entities (POJO's in Java language) from the schema defined here http://schema.rdfs.org/all.ttl . I'm using Jena to parse the ttl file and retrieve the meta data that I need to generate them. Jena parses the file successfully, however, for some reason it does not list all the attributes of a given entity, e.g., Person. I'm not sure whether I'm doing something wrong, using the wrong API, etc. Here's the code sample that recreates the scenario: public class PersonParser { public static void main(String[] args) { OntModel model = ModelFactory

How do I implement Rich Snippets on a product/service that has monthly fee?

狂风中的少年 提交于 2019-11-28 14:16:06
Using these but it's not validating: <div itemscope itemtype="http://schema.org/Product"> <h1 itemprop="name">Product</h1> <span itemprop="description">Product <div itemprop="offers" itemscope itemtype="http://schema.org/Offer"> Prices start at <meta itemprop="priceCurrency" content="PHP" />Php <span itemprop="price">1799.00 (monthly) </div> </div> To represent subscription costs (for an Offer ), you could use the UnitPriceSpecification type and its unitCode property . The unitCode ’s value can be a UN/CEFACT Common Code, where MON is the code for month. In Microdata, this could look like:

How is Value determined for an Anchor Tag with Microdata?

纵然是瞬间 提交于 2019-11-28 13:44:09
How do Google and others determine the value of an itemprop on an Anchor tag? <a href="foo.html" itemprop="barprop">Name Of Link</a> In the example above, is the itemprop's value the href attribute, much like how the link tag is parsed? Or is the value the innerHTML , as a standard block element is parsed? I've searched quite a bit and cannot find the answer. I'm open to all answers, but I'd very much like a source for the answers given so I can further investigate. Thanks in advance! The Microdata spec (which is now merely W3C Note ) defines : If the element is an a , area , or link element

How do I have an itemprop nested in one itemscope actually be applied to a different itemscope?

落花浮王杯 提交于 2019-11-28 12:50:17
TL;DR --> I want an itemprop nested in one itemscope to actually be applied to a different itemscope. How do I do that? Here's a a gist of the code I have (I've removed classes and other extraneous elements on the page to focus on what's important): <!-- CODE I HAD --> <div itemscope itemtype="http://schema.org/Product"> <div itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating"> <span itemprop="ratingValue">79</span> <h1 itemprop="name">Someproductsoandso</h1> <span itemprop="reviewCount">830</span> </div> </div> <!-- CODE I NOW HAVE --> <div itemscope itemtype=

Microdata markup with 'mainEntityOfPage' for Google Article Rich Snippet

一世执手 提交于 2019-11-28 11:39:24
The Microdata example of Google’s Article Rich Snippet contains this meta element with Schema.org’s mainEntityOfPage property: <meta itemscope itemprop="mainEntityOfPage" itemType="https://schema.org/WebPage" itemid="https://google.com/article"/> When checking it with the Nu Html Checker , I get this error: Element meta is missing required attribute content . Adding an empty content attribute seems to solve this error. Is it correct to do this? unor The Nu Html Checker is correct, Google’s example is invalid. The content attribute is required if the meta element has an itemprop attribute. From

Is there any schema.org type for teasers of a blog?

白昼怎懂夜的黑 提交于 2019-11-28 10:51:12
问题 Teasers on the front page of a blog surely are not the targets for us to add itemtype="http://schema.org/BlogPosting" to because each of them is not a full blog posting and is just one or two paragraphs with a "Continue reading" link instead. But since they are part of a blog, is there any blog-related Microdata for them or not? 回答1: A person is still a person, even if you don’t provide the name. A place is still a place, even if you don’t provide the address. A blog posting is still a blog