schema.org

OpenGraph or Schema.org?

余生长醉 提交于 2019-11-26 07:19:57
问题 Just wondering whether you guys out there are favouring the OpenGraph protocol following markup like: <meta property=\"og:title\" content=\"The Rock\" /> <meta property=\"og:type\" content=\"movie\" /> <meta property=\"og:url\" content=\"http://www.imdb.com/title/tt0117500/\" /> Or the Schema.org protocol with <div itemscope itemtype=\"http://schema.org/Product\"> <span itemprop=\"name\">Kenmore White 17\" Microwave</span> <img src=\"kenmore-microwave-17in.jpg\" alt=\'Kenmore 17\" Microwave\'

Using schema.org branchOf with itemref

北城余情 提交于 2019-11-26 06:03:26
问题 I have a company page that has all the local branches listed on it. On the page header, I have an itemType of Organization defined. Each LocalBusiness (Hotel) is further down the page. For each Hotel, I\'m trying to add the branchOf property using a meta tag, but both Yandex and Google Snippets comes up blank for this attribute. Is it possible to do this way? <div itemscope itemtype=\"http://schema.org/Organization\" id=\"schema-organization\"> <meta itemprop=\"description\" content=\"blah

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

社会主义新天地 提交于 2019-11-26 05:50:04
问题 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 ? 回答1: 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

Schema.org - JSON-LD - Where to Place?

自作多情 提交于 2019-11-26 05:29:31
问题 I am looking to use JSON-LD for schema on a website. (Schema meaning schema.org data.) I know how to write the data but my question is is there a prefered location in my code to insert this data? In other words, should the JSON-LD always be in the head , body , etc.? 回答1: From the perspectives of Schema.org, JSON-LD, and the possibly extracted RDF, it should not matter. The data is the same, no matter from where in the document it got extracted. From the perspective of HTML5: If it’s data

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

北慕城南 提交于 2019-11-26 03:44:30
问题 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=

Schema.org JSON-LD reference

瘦欲@ 提交于 2019-11-26 02:24:49
问题 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

Do you put Schema Microdata meta tags in the html body?

天涯浪子 提交于 2019-11-26 00:28:43
问题 I have searched for a long time across the internet and stackoverflow for an answer to this question, and I have found links that say that you should not put meta tags in the body: Using HTML5+Microdata's <meta> tag in the <body> passing meta data in body part Meta Tags In Body while the schema.org website clearly shows the meta tags being nested directly in the body http://schema.org/AggregateRating Just look at the example that is posted there Customer reviews: <div itemprop=\"reviews\"