在一个人中定义多个 URL [英] Defining multiple URLs within a Person

查看:18
本文介绍了在一个人中定义多个 URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用微数据在我的网站上定义一个 Schema.org Person 项目.大部分都是不言自明的.

I'm defining a Schema.org Person item on my website using Microdata. Most of it is self-explanatory.

但是,摘要页面上的每个迷你个人资料都有三个 URL - 一个链接到个人的完整ProfilePage,另外两个链接到 LinkedIn 和 Twitter.

However, each mini profile on a summary page has three URLs - one which links to the Person's full ProfilePage, and two more for LinkedIn and Twitter.

我是将所有三个都定义为 URL,还是忽略社交媒体帐户 URL,因为只有阅读更多"样式的链接才是该人的 URL?

Do I define all three as URLs, or do I ignore the social media account URLs, because only the "read more" style link is actually the URL for that person?

推荐答案

对于指向您网站上此人的个人资料页面的链接,您绝对应该使用 url 属性.

For the link to the person’s profile page on your site, you should ‎definitely use the url property.

对于指向其他网站上此人个人资料的链接,答案不是很清楚¹:

For the links to the person’s profiles on other sites, the answer isn’t that clear¹:

  • Using the url property wouldn’t be wrong, but I think it makes sense to use url only for your own "canonical" page of the item.

使用 contactPoint 属性如果应该使用个人资料联系此人,则可能是合适的.但是,它期望 ContactPoint 项作为值,这可能有点过于表达对于纯链接的情况(但您不必遵循预期,因此您可以只提供 URL 而不是 ContactPoint 项目).

Using the contactPoint property can be appropriate if the profile should be used to contact the person. However, it expects a ContactPoint item as value, which might be a bit too expressive for the case of a mere link (but you don’t have to follow the expectation, so you could just provide a URL instead of a ContactPoint item).

使用 sameAs 属性如果外部配置文件标识/代表完全相同的人(除此之外没有其他任何内容),则似乎是合适的.

Using the sameAs property seems to be appropriate if the external profile identifies/represents exactly the same person (and nothing else in addition).

¹ 尚无 Schema.org 属性用于链接到社交媒体个人资料.

这篇关于在一个人中定义多个 URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆