More Related Content Similar to 構造化マークアップについて個人的まとめ(82slides) (20) 構造化マークアップについて個人的まとめ(82slides)26. 26https://coding-salon.pro/articles/
ざっくりと例示するとこんな感じです
<!doctype html>
<html lang="ja">
<head><meta charset="UTF-8"><title>コーディングサロンパソコンの商品詳細</title></head>
<body>
<header>【略】</header>
<main>【略】</main>
<footer>【略】</footer>
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "Product",
"name": "コーディングサロンパソコン",
"image": [
"https://coding-salon.pro/photos/1x1.jpg",
"https://coding-salon.pro/photos/4x3.jpg",
"https://coding-salon.pro/photos/16x9.jpg"
],
"description": "コーディングサロンパソコンは、コーディングが便利になるツールがプリインストールされたPCです",
"releaseDate":" 2019-01-01T00:00:00+09:00 "
}
</script>
</body>
</html>
32. 32https://coding-salon.pro/articles/
もう一度、 JSON-LD の箇所だけに注目してみます
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "Product",
"name": "コーディングサロンパソコン",
"image": [
"https://coding-salon.pro/photos/1x1.jpg",
"https://coding-salon.pro/photos/4x3.jpg",
"https://coding-salon.pro/photos/16x9.jpg"
],
"description": "コーディングサロンパソコンは、コーディングが便利になるツール
がプリインストールされたPCです",
"releaseDate":" 2019-01-01T00:00:00+09:00 "
}
</script>
41. 41https://coding-salon.pro/articles/
Creative works: CreativeWork, Book, Movie, MusicRecording, Recipe, TVSeries ...
Embedded non-text objects: AudioObject, ImageObject, VideoObject
Event
Health and medical types: notes on the health and medical types under MedicalEntity.
Organization
Person
Place, LocalBusiness, Restaurant ...
Product, Offer, AggregateOffer
Review, AggregateRating
Action
55. 55https://coding-salon.pro/articles/
この Text には HTML も含められるのかについては
明確な記述が見つけられませんでしたが
https://developers.google.com/search/docs/data-types/job-posting#JobPosting-definition
こちらのGoogleのドキュメントでは
JobPosting の description の値は Text の指定となっていますが
HTML形式での指定が求められていました
57. 57https://coding-salon.pro/articles/
ざっくりと書くとこんな感じで「 Review 」が入れ子になります
<script type="application/ld+json">
{
"@context": "http://schema.org/",
"@type": "Product",
"name": "コーディングサロンパソコン",
"description": "コーディングサロンパソコンは、コーディングが便利になるツールがプリインストー
ルされたPCです",
"review": {
"@type": "Review",
"author": "竹内直人",
"name": "コーディング初心者の自分にはベストマッチでした!",
"description": "コーディングを習い始めてもう少しスペックの高い・・・",
}
}
</script>
82. 82
Thank you for watching!
This slide was written by Naoto Takeuchi belonging to CapybaraDesign on 2019-01-11T17:00:00+09:00
HOME:https://capybara-design.com/
BLOG:https://coding-salon.pro/articles/