Defining multiple URLs within a Person

风流意气都作罢 提交于 2019-12-19 10:34:11

问题


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

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.

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?


回答1:


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.

  • 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).

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


¹ There is no Schema.org property for linking to social media profiles (yet).



来源:https://stackoverflow.com/questions/35460009/defining-multiple-urls-within-a-person

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!