web-dev-qa-db-ja.com

「属性publisher.itemtypeに無効な値があります」

私はコードが初めてです。私の連絡先ページにGoogleレビューの構造化データコードを追加しようとしています。

http://www.catnips.co.uk/in-home-mobile-cat-groomer-feline-behaviourist.html

Googleマップのクライアントレビューからのレビューを使用しています。

Google構造化データテストツールでテストすると、

属性publisher.itemtypeに無効な値があります。

私が間違っていることを理解することはできません。

<div itemprop="review" itemscope itemtype="http://schema.org/Review">
    <meta itemprop="author" content="Anita Kelsey">

    <strong itemprop="itemreviewed">Mobile Cat Grooming</strong> by <a href="https://www.google.co.uk/maps/place/The+Notting+Hill+Cat+Sitting+and+Cat+Grooming+Company/@51.5254631,-0.2526499,12z/data=!4m10!1m2!2m1!1smobile+cat+grooming!3m6!1s0x4876101c4f92036d:0x8514584f53249c41!8m2!3d51.5180716!4d-0.2036502!9m1!1b1/">Jen Crothers</a><br />

    <strong>My Rating:</strong> <span itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating"><img src="http://www.catnips.co.uk/wp-content/uploads/2014/09/5-stars-356x73.png" alt="5 stars" width="356" height="73" class="alignnone size-medium wp-image-4614" /><meta itemprop="ratingValue" content="5" /><meta itemprop="bestRating" content="5" /></span>
</div>

<span itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating">

Anita was absolutely brilliant with my Persian cat Ernie, who was a wriggly customer at times. She skillfully and gently removed the mats on his coat and gave him a very thorough groom. Brilliant, professional and easily a five star service provided from start to finish.
<meta itemprop="ratingValue" content="5" /><meta itemprop="bestRating" content="5" />
7
Anita

エラーは、質問の本文で指定したコードではなく、JSON-LDにあります。構造化データテストツールでは、エラーをクリックして、エラーの原因となったコードの行に移動できます。これは、問題の原因を特定するのに役立ちます。

このエラーは、パブリッシャープロパティに指定したitemtypeが無効であることを通知しています。 schema.orgは Articlepublisher プロパティのタイプ Person をサポートしていますが、Googleはサポートしていません。 Googleは 組織 (-==のみをサポートします。 記事構造化データ Google Developersのページ。

17
grg

設定のエラーを修正できます:Yoast SEO>外観の検索>ナレッジグラフ>会社または個人の選択。

enter image description here

2
Flash
"baseSalary": {
 "@type": "MonetaryAmount",
 "currency": "EUR",
 "value": {
  "@type": "QuantitativeValue",
  "value": 850,
  "unitText": "MONTH"
 }
}
0
HarryBert

もちろんそうです!あなたはまだそれを知らないだけです。 ;)次の行を使用してみてください:

"publisher":{"id":"http://www.catnips.co.uk/#organization"},
0
J.H.