如何标记(使用 JSON-LD)服务以在 Schema.org 的 LocalBusiness 中显示价格?
How to markup (using JSON-LD) a Service to show price within a LocalBusiness in Schema.org?
当我在 validator 中测试此代码时,我收到 属性 价格 和 属性 [=17= 的警告]价格货币。我该如何解决?
谢谢。
The property price is not recognized by the schema (e.g. schema.org) for an object of type Service.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "LocalBusiness",
"name" : "Charlotte Property Management",
"hasOfferCatalog": {
"@type": "OfferCatalog",
"name": "Charlotte Property Management Plans",
"itemListElement": [
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Silver Plan",
"description": " Our Silver Plan is developed for early-stage investors seeking to learn the intricacies of investment property management but with an added protection layer of professional oversight by our experienced team. This plan is perfect for DIY investment enthusiasts.",
"price": "49",
"priceCurrency": "USD"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Gold Plan",
"description": "The Gold Plan is designed for investors who value their time, treating their investment property as a business. If you are looking to delegate all aspects of property management and maintenance to our experienced team, while you focus on what matters in your life, this program is for you. Our Investment property acquisition, sale, and consulting services are included in this program.",
"price": "99",
"priceCurrency": "USD"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Platinum Plan",
"description": "The Platinum Plan is designed for the avid investor who is actively looking to build wealth by growing their Real Estate investment portfolio. The program includes full professional management services backed by our Uninterrupted Rent and Eviction Guarantees. Our Investment property acquisition, sale, and consulting services are included in this program.",
"price": "249",
"priceCurrency": "USD"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Guaranteed Income Plan",
"description": "On the other hand, our Guaranteed Income Plan is a non-property management plan designed to free up your schedule, avoid rental income fluctuations, and make your rental property a continuously profitable investment.",
"price": "Custom",
"priceCurrency": "USD"
}
}
]
}
}
</script>
在标记中,属性 price
和 priceCurrency
是 located/belong 到 Service
object/type,不包含此类属性。这些属性属于 Offer
,因此应相应移动它们。
所以只需将它们向上移动一层,在 Service
之外,这样它们就属于 Offer
object/type:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "LocalBusiness",
"name" : "Charlotte Property Management",
"hasOfferCatalog": {
"@type": "OfferCatalog",
"name": "Charlotte Property Management Plans",
"itemListElement": [
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Silver Plan",
"description": " Our Silver Plan is developed for early-stage investors seeking to learn the intricacies of investment property management but with an added protection layer of professional oversight by our experienced team. This plan is perfect for DIY investment enthusiasts."
},
"price": "49",
"priceCurrency": "USD"
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Gold Plan",
"description": "The Gold Plan is designed for investors who value their time, treating their investment property as a business. If you are looking to delegate all aspects of property management and maintenance to our experienced team, while you focus on what matters in your life, this program is for you. Our Investment property acquisition, sale, and consulting services are included in this program."
},
"price": "99",
"priceCurrency": "USD"
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Platinum Plan",
"description": "The Platinum Plan is designed for the avid investor who is actively looking to build wealth by growing their Real Estate investment portfolio. The program includes full professional management services backed by our Uninterrupted Rent and Eviction Guarantees. Our Investment property acquisition, sale, and consulting services are included in this program."
},
"price": "249",
"priceCurrency": "USD"
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Guaranteed Income Plan",
"description": "On the other hand, our Guaranteed Income Plan is a non-property management plan designed to free up your schedule, avoid rental income fluctuations, and make your rental property a continuously profitable investment."
},
"price": "Custom",
"priceCurrency": "USD"
}
]
}
}
</script>
当我在 validator 中测试此代码时,我收到 属性 价格 和 属性 [=17= 的警告]价格货币。我该如何解决? 谢谢。
The property price is not recognized by the schema (e.g. schema.org) for an object of type Service.
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "LocalBusiness",
"name" : "Charlotte Property Management",
"hasOfferCatalog": {
"@type": "OfferCatalog",
"name": "Charlotte Property Management Plans",
"itemListElement": [
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Silver Plan",
"description": " Our Silver Plan is developed for early-stage investors seeking to learn the intricacies of investment property management but with an added protection layer of professional oversight by our experienced team. This plan is perfect for DIY investment enthusiasts.",
"price": "49",
"priceCurrency": "USD"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Gold Plan",
"description": "The Gold Plan is designed for investors who value their time, treating their investment property as a business. If you are looking to delegate all aspects of property management and maintenance to our experienced team, while you focus on what matters in your life, this program is for you. Our Investment property acquisition, sale, and consulting services are included in this program.",
"price": "99",
"priceCurrency": "USD"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Platinum Plan",
"description": "The Platinum Plan is designed for the avid investor who is actively looking to build wealth by growing their Real Estate investment portfolio. The program includes full professional management services backed by our Uninterrupted Rent and Eviction Guarantees. Our Investment property acquisition, sale, and consulting services are included in this program.",
"price": "249",
"priceCurrency": "USD"
}
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Guaranteed Income Plan",
"description": "On the other hand, our Guaranteed Income Plan is a non-property management plan designed to free up your schedule, avoid rental income fluctuations, and make your rental property a continuously profitable investment.",
"price": "Custom",
"priceCurrency": "USD"
}
}
]
}
}
</script>
在标记中,属性 price
和 priceCurrency
是 located/belong 到 Service
object/type,不包含此类属性。这些属性属于 Offer
,因此应相应移动它们。
所以只需将它们向上移动一层,在 Service
之外,这样它们就属于 Offer
object/type:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "LocalBusiness",
"name" : "Charlotte Property Management",
"hasOfferCatalog": {
"@type": "OfferCatalog",
"name": "Charlotte Property Management Plans",
"itemListElement": [
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Silver Plan",
"description": " Our Silver Plan is developed for early-stage investors seeking to learn the intricacies of investment property management but with an added protection layer of professional oversight by our experienced team. This plan is perfect for DIY investment enthusiasts."
},
"price": "49",
"priceCurrency": "USD"
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Gold Plan",
"description": "The Gold Plan is designed for investors who value their time, treating their investment property as a business. If you are looking to delegate all aspects of property management and maintenance to our experienced team, while you focus on what matters in your life, this program is for you. Our Investment property acquisition, sale, and consulting services are included in this program."
},
"price": "99",
"priceCurrency": "USD"
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Platinum Plan",
"description": "The Platinum Plan is designed for the avid investor who is actively looking to build wealth by growing their Real Estate investment portfolio. The program includes full professional management services backed by our Uninterrupted Rent and Eviction Guarantees. Our Investment property acquisition, sale, and consulting services are included in this program."
},
"price": "249",
"priceCurrency": "USD"
},
{
"@type": "Offer",
"itemOffered": {
"@type": "Service",
"name": "Guaranteed Income Plan",
"description": "On the other hand, our Guaranteed Income Plan is a non-property management plan designed to free up your schedule, avoid rental income fluctuations, and make your rental property a continuously profitable investment."
},
"price": "Custom",
"priceCurrency": "USD"
}
]
}
}
</script>