나는 schema.org/Product 정의와 몇 가지 맞춤 요소를 결합한 좋은 json-ld를 얻으려고합니다.json-ld : 맞춤 값을 모델링하는 좋은 방법
저는 xsd 배경에서 왔고 json-ld의 확장 성은 달성하기가 매우 어려워 보입니다.
구글 (https://developers.google.com/search/docs/guides/search-gallery)에서 찾은 제품의 템플릿 마크 업에서 시작하여 확장하려고했지만 (mydomain : tags와 같은 것을 추가하고 싶습니다.) 어떻게해야할지 모르겠습니다.
<script type="application/ld+json">
{
"@context": ["http://schema.org/",
{"mydomain": "http://mystuff.com/"}],
"@type": "Product",
"name": "Executive Anvil",
"image": "http://www.example.com/anvil_executive.jpg",
"description": "Sleeker than ACME's Classic Anvil, the Executive Anvil is perfect for the business traveler looking for something to drop from a height.",
"mpn": "925872",
"brand": {
"@type": "Thing",
"name": "ACME"
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.4",
"reviewCount": "89"
},
"offers": {
"@type": "Offer",
"priceCurrency": "USD",
"price": "119.99",
"priceValidUntil": "2020-11-05",
"itemCondition": "http://schema.org/UsedCondition",
"availability": "http://schema.org/InStock",
"seller": {
"@type": "Organization",
"name": "Executive Objects"
}
},
"mydomain:tags" : {}
}
</script>
여기에서 내가 잘못하고있는 것에 대한 단서는 크게 감사하겠습니다. 아마 ... 바보 같아요.
http://json-ld.org/playground/에서 제품 예제를 복사하여 Google의 구조화 된 데이터 테스트 도구 (https://search.google.com/structured-data/testing- 도구 /) 그것은 4 개의 오류를 제공합니까? – DubNoBassWithMyHeadMan
질문의 예가 무엇입니까? – unor
구조화 된 데이터 테스트 도구는 "Product"유형의 개체에 대해 http://mystuff.com/tags 속성을 인식하지 못한다고 말합니다. – DubNoBassWithMyHeadMan