schema.org

How to implement schema.org markup for a breadcrumb?

非 Y 不嫁゛ 提交于 2019-11-27 09:33:04
问题 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"

Schema.org - How can you define an object across multiple pages?

孤人 提交于 2019-11-27 08:48:29
问题 Using schema.org markup, if I define many items with the same name across multiple pages, but with different sets of properties defined on each page, is each item only relevant within the scope of the page it is defined on, or is there a way to tie all of them items together to create a single, complete definition? 回答1: Syntax: itemid Microdata defines an itemid attribute: […] to give a global identifier for the item, so that it can be related to other items on pages elsewhere on the Web. The

Parsing schema.org ttl/owl file using Jena

僤鯓⒐⒋嵵緔 提交于 2019-11-27 08:31:59
问题 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

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

我与影子孤独终老i 提交于 2019-11-27 08:13:53
问题 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> 回答1: To represent subscription costs (for an Offer ), you could use the UnitPriceSpecification type and its unitCode property. The unitCode ’s

How is Value determined for an Anchor Tag with Microdata?

被刻印的时光 ゝ 提交于 2019-11-27 07:51:06
问题 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! 回答1:

Concepts for RDFa DRY references

自古美人都是妖i 提交于 2019-11-27 07:31:29
问题 I started digging into RDFa recently and try to spice my website with semantic information. The site offers services, events, a blog and may offer products in future. Happily schema.org has coarse but adequate categories for it all. But now it comes to practical questions. All the examples have all information on a single page, which seems pretty academic to me. E.g. on my landing page is a list with upcoming events. Events have a location property. My events run at 2 different locations. I

Proper use of Schema.org “WebSite” type: apply it to all pages or just the home page?

依然范特西╮ 提交于 2019-11-27 07:30:22
问题 Should the "WebSite" and "Organization" types and their properties be applied to all pages of a website or just the homepage? I have valid JSON-LD code defining the the necessary items for Google mobile search results, but I am not sure if it should be included on all pages or just the root/home page. 回答1: It would make sense to provide it on any page where it’s relevant. For example, if this is an organization’s website, each page is about/from the organization, so provide metadata about

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

非 Y 不嫁゛ 提交于 2019-11-27 07:24:05
问题 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>

Microdata markup with 'mainEntityOfPage' for Google Article Rich Snippet

Deadly 提交于 2019-11-27 06:18:26
问题 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? 回答1: The Nu Html Checker is correct, Google’s

Can Schema.org Expected Types be collections, too?

时光毁灭记忆、已成空白 提交于 2019-11-27 04:52:41
问题 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? 回答1: Every Schema.org property can have multiple values. It doesn’t necessarily make sense for some