文書の表示以前のリビジョンバックリンク文書の先頭へ この文書は読取専用です。文書のソースを閲覧することは可能ですが、変更はできません。もし変更したい場合は管理者に連絡してください。 ====== 動画の構造化データ ====== サイトに MP4 コンテナの動画を埋め込むと、**Google Search Console** がキレる💢😡😱😅\\ <WRAP color_term> <WRAP color_mincode><code> ページ上で視認性の高い動画は検出されませんでした🤔 これらのページに埋め込まれている動画は、インデックスに 登録されることも、Google の動画検索結果に表示されることも ありません </code></WRAP> </WRAP> ===== DokuWiki の Semantic Plugin で JSON-LD を出力する🤤 ===== [[https://www.dokuwiki.org/ja:plugin:semantic|Semantic Plugin - DokuWiki]] をインストールすると、デフォルトで <html><code>useJSONLD: 1</code></html> (JSON-LD を追加する) であるため、動画の構造化データ(ビデオなし)を生成してくれるようになる🥰\\ \\ DokuWiki のサイト設定で Semantic Plugin の設定項目を確認しておく🤔\\ {{:html_css:dokuwiki_semantic_plugin_settings.png?800|Semantic Plugin}}\\ ===== JSON-LD の出力例🤤 ===== 実際に出力される JSON-LD の例は以下の内容です🤔\\ <WRAP color_term> <WRAP color_mincode_long><code> <script type="application/ld+json">/*<![CDATA[*/[ { "@context": "http:\/\/schema.org\/", "@type": "Article", "headline": "HandBrake (Linux) - \u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30d3\u30c7\u30aa\u30c8\u30e9\u30f3\u30b9\u30b3\u30fc\u30c0\u30fc", "name": "HandBrake (Linux) - \u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30d3\u30c7\u30aa\u30c8\u30e9\u30f3\u30b9\u30b3\u30fc\u30c0\u30fc", "datePublished": "2023-03-05T17:29:34+09:00", "dateCreated": "2023-03-05T17:29:34+09:00", "dateModified": "2023-03-09T15:39:19+09:00", "description": "HandBrake (Linux) - \u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30d3\u30c7\u30aa\u30c8\u30e9\u30f3\u30b9\u30b3\u30fc\u30c0\u30fc [HandBrake Logo] The open source video transcoder \u672c\u5bb6: HandBrake: Open Source Video Transcoder \u30bd\u30fc\u30b9\u30b3\u30fc\u30c9: <https:\/\/github.com\/HandBrake\/HandBrake> [HandBrake (Linux) 001] HandBrake (Windows) - \u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u30d3\u30c7\u30aa\u30c8\u30e9\u30f3\u30b9\u30b3\u30fc\u30c0\u30fc \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb RPM Fusion \u3092\u5229\u7528\u3059\u308b\u306e\u3067\u3001\u4ee5\u4e0b\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u8a2d\u5b9a\u3092\u4e88\u3081\u884c\u3046\u5fc5\u8981\u304c\u3042\u308b\ud83e\udd14", "license": "https:\/\/creativecommons.org\/licenses\/by-sa\/4.0\/deed.ja", "url": "https:\/\/www.tomoyan.net\/linux\/handbrake", "mainEntityOfPage": { "@type": "WebPage", "@id": "https:\/\/www.tomoyan.net\/linux\/handbrake" }, "publisher": { "@type": "Organization", "name": "\u3068\u3082\u3084\u3093\u30fb\u3069\u3063\u3068\u30fb\u306d\u3063\u3068", "logo": { "@type": "ImageObject", "url": "https:\/\/www.tomoyan.net\/lib\/tpl\/bs3tomoyannet\/images\/logo.png" } }, "image": { "@type": "ImageObject", "url": "https:\/\/www.tomoyan.net\/_media\/windows\/handbrake_logo.png", "width": 250, "height": 250 }, "author": { "@context": "http:\/\/schema.org\/", "@type": "Person", "name": "\u3068\u3082\u3084\u3093", "email": "sample@tomoyan.net" }, "contributor": [ { "@context": "http:\/\/schema.org\/", "@type": "Person", "name": "\u3068\u3082\u3084\u3093", "email": "sample@tomoyan.net" } ] }, { "@context": "http:\/\/schema.org\/", "@type": "WebPage", "relatedLink": [ "https:\/\/www.tomoyan.net\/linux", "https:\/\/www.tomoyan.net\/windows\/handbrake" ] } ] /*!]]>*/</script> </code></WRAP> </WRAP> ===== 参考文献 ===== [[https://developers.google.com/search/docs/appearance/structured-data/video?hl=ja|スキーマ マークアップを使用して Google に動画を表示させる | Google 検索セントラル | ドキュメント | Google Developers]]\\ ==== 付録 ==== [[tw>tomoyan596sp/status/1635401449332178946|何か朝から Google Search Console がお怒り💢です😱🤣DokuWikiのPHP8にするときに、プラグインがトラブルから、片っ端からオフにしてて、MP4コンテナの動画を載せたらキレられた😅ページ上で視認性の高い動画は検出されませんでし🤔JSON-LD吐いてないから🤔]]\\ [[tw>tomoyan596sp/status/1635408526024806402|状況検出型AIエラーメッセージとかに期待😅また、むちゃくちゃなこと言ってねぇ🤣]]\\ html_css/video_structured_data.txt 最終更新: 2023/03/14 07:55by ともやん