Schema 类型:ProfilePage 适用页面:论坛用户主页、社交媒体式个人页、作者聚合页、个人介绍页等
ProfilePage 属性:
| 属性 | 类型 | 必需/推荐 | 说明 |
|---|---|---|---|
| mainEntity | Person 或 Organization | 必需 | 被描述的主体 |
| dateCreated | DateTime | 推荐 | 资料创建时间 |
| dateModified | DateTime | 推荐 | 资料更新时间 |
| hasPart | CreativeWork 等 | 可选 | 关联该主体创作的内容条目 |
mainEntity(Person)上常用属性:
| 属性 | 类型 | 必需/推荐 | 说明 |
|---|---|---|---|
| name | Text | 必需 | 显示名 |
| alternateName | Text | 推荐 | 用户名、昵称 |
| identifier | Text | 推荐 | 站内稳定 ID |
| description | Text | 推荐 | 简介 |
| image | URL | 推荐 | 头像 |
| sameAs | URL 数组 | 推荐 | 其他官方或个人资料链接 |
| interactionStatistic | InteractionCounter 数组 | 推荐 | 他人对该主体的互动(关注、点赞) |
| agentInteractionStatistic | InteractionCounter | 推荐 | 该主体主动产生的行为量(发帖数) |
完整 JSON-LD 示例(论坛用户):
{
"@context": "https://schema.org",
"@type": "ProfilePage",
"dateCreated": "2024-12-23T12:34:00-05:00",
"dateModified": "2024-12-26T14:53:00-05:00",
"mainEntity": {
"@type": "Person",
"name": "Angelo Huff",
"alternateName": "ahuff23",
"identifier": "123475623",
"interactionStatistic": [
{
"@type": "InteractionCounter",
"interactionType": "https://schema.org/FollowAction",
"userInteractionCount": 1
},
{
"@type": "InteractionCounter",
"interactionType": "https://schema.org/LikeAction",
"userInteractionCount": 5
}
],
"agentInteractionStatistic": {
"@type": "InteractionCounter",
"interactionType": "https://schema.org/WriteAction",
"userInteractionCount": 2346
},
"description": "Defender of Truth",
"image": "https://example.com/avatars/ahuff23.jpg",
"sameAs": [
"https://www.example.com/real-angelo",
"https://example.com/profile/therealangelohuff"
]
}
}
hasPart 关联文章示例:
{
"@context": "https://schema.org",
"@type": "ProfilePage",
"mainEntity": {
"@id": "#main-author",
"@type": "Person",
"name": "Marlo Smith"
},
"hasPart": [
{
"@type": "Article",
"headline": "Things to see in NJ",
"url": "https://example.com/things-to-see-nj",
"datePublished": "2024-02-23T18:34:00Z",
"author": { "@id": "#main-author" }
}
]
}
说明:Google 将此类标记用于讨论与论坛等相关功能。interactionStatistic 表示「他人对该主体的互动统计」,agentInteractionStatistic 表示「该主体自身行为统计」。
来源
- Profile page (ProfilePage) structured data,https://developers.google.com/search/docs/appearance/structured-data/profile-page(2026-10-05 核对)
