我想链接到内容作者的特定页面,但我的 RDFa 似乎被误解了。
在下面的示例中,我想Photograph
用一个author
属性定义 a,它本身就是Person
一个name
. 我希望它name
成为一个包含所有贡献者内容的页面的链接。
<div typeof="Photograph" resource="/photo/5" vocab="http://schema.org/">
<p property="author" typeof="Person">
Contributed by:
<a href="/contributor/5" title="Contributions from Weston">
<span property="name">Weston</span>
</a>
</p>
</div>
但试图验证我从W3C Validator得到以下 Turtle 格式结果
@prefix ns1: <http://www.w3.org/ns/rdfa#> .
@prefix ns2: <http://schema.org/> .
<> ns1:usesVocabulary ns2: .
</contributor/5> ns2:name "Weston" .
</photo/5> a ns2:Photograph;
ns2:author [ a ns2:Person ] .
在我看来,这与name
不相关Person
,但与资源相关/contributor/5
。