我最近在我的“关于我”页面上添加了几个参考文献,主要是数字副本(.jpg)。如何将它们集成到此页面的Schema.org标记及其顶级项目Person
中?哪些属性能够在我的代码中创建与DigitalDocument
的“连接”,以便确认我的引用的数字副本在页面上?
参考文献是:
“关于我”页面的基本标记很明确:
{
"@context": "https://schema.org",
"@type": "Person",
"mainEntityOfPage": {
"@type": "AboutPage",
"@id": "http://www.example.com/aboutme-page"
"author": ...,
"publisher": ...,
"datePublished": "",
"dateModified": "",
}
"name": "my name",
"jobTitle": "alternative healer",
"alumniOf": {
"@type:": "EducationalOrganization",
"name": "", ...
所以我知道,有一个属性alumniOf
→EducationalOrganization
,并且在Schema.org中有DigitalDocument
。但是如何获得Person
链接给我,谁获得了那里的课程认证,另外在页面上作为.jpg?
它与其他参考文献类似。我可以使用DigitalDocument
(或更具体的东西)作为替代治疗师的法律许可,但我可以将这个属性与Person
联系起来?
或者我写的那本书。我知道有一个属性author
(以及待定属性hasProfession
),但这需要一个CreativeWork
作为项目,而不是Person
。
或者在线和印刷文章:在这里,我当然知道有一个Article
项目和author
属性,但如何获得Person
顶级项目和我的数字副本的“链接”?
我想要一些不可能的事吗?可能是这里的一些专家至少可以给我一些提示(我不希望得到一个完整的代码,虽然我甚至会付钱)。
对于大多数Schema.org属性,没有定义inverse property。但语法通常也允许在“其他方向”使用属性。
在JSON-LD中,您可以使用@reverse
:
{
"@context": "https://schema.org",
"@type": "Person",
"@reverse": {
"author": {
"@type": "Book"
}
}
}
所以,你只需要找到一个合适的属性,无论它有Person
作为域还是作为范围。当然,Schema.org没有所有内容的属性,您也可以使用其他词汇表中的属性(see how)。
有关您主题的相关Schema.org问题: Educational and Occupational Credentials should be in schema.org