title: "Localbusiness" post_status: publish comment_status: open taxonomy: category: - yoast-developer post_tag: - Pieces - Schema - Features


import YoastSchemaExample from '../../../../src/components/YoastSchemaExample';

描述一个允许公众访问的企业。通常用于表示网站“背后”的企业,或关于特定企业的页面。

如果满足所需条件,可以转换为更具体的类型(例如 library),或扩展现有的 Organization

触发器

必需属性

一个有效的 LocalBusiness 必须包含以下属性。

故障场景

若任何必填字段缺失或无效,节点应回退为常规 Organization(移除所有'本地' @type 值),同时保留下方所有可选属性。

可选属性

以下属性应在可用且有效时添加:

Examples

Minimum criteria

{{ "@context": "https://schema.org", "@graph": [ { "@type": [ "Organization", "Place", "Dentist" ], "@id": "https://www.example.com/#/schema/Organization/abc123", "name": "Example business name", "image": { "@id": "https://www.example.com/uploads/example-image.jpg" }, "address": { "@id": "https://www.example.com/#/schema/Address/abc123" } } ] }}

扩展标准

{{ "@context": "https://schema.org", "@graph": [ { "@type": [ "Organization", "Place", "Dentist" ], "@id": "https://www.example.com/#/schema/Organization/abc123", "url": "https://www.example.com/example-business-page/", "email": "example@example.com", "priceRange": "$$", "areaServed": [ "Bournemouth", "Poole", "Dorset" ], "telephone": "01234 56789", "faxNumber": "02345 67890", "name": "Example business name", "openingHoursSpecification": { "@type": "OpeningHoursSpecification", "dayOfWeek": [ "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" ], "opens": "09:00", "closes": "17:00" }, "geo": { "@type": "GeoCoordinates", "latitude": "51.8066986", "longitude": "5.7284488" }, "vatID": "abc123", "taxID": "def456", "image": { "@id": "https://www.example.com/uploads/example-image.jpg" }, "address": { "@id": "https://www.example.com/#/schema/Address/abc123" } } ] }}