Lyn*_*ite 5 rdf ontology schema.org
好像他们是一样的?
此内容或评级的作者。请注意,author 的特殊性在于 HTML 5 提供了一种通过 rel 标签指示作者身份的特殊机制。这等效于 this 并且可以互换使用。
此 CreativeWork 的创建者/作者。这与 CreativeWork 的 Author 属性相同。
我在 Datasets useauthor
和其他人中看到了一些在野外的用途creator
。
从版本 3.3 开始,这两个属性在 RDF 中\xe2\x80\x99t 相关/等效。以下是它们的定义(在 Turtle RDF 中):
\n\nschema:author a rdf:Property ;\n rdfs:label "author" ;\n schema:domainIncludes schema:CreativeWork,\n schema:Rating ;\n schema:rangeIncludes schema:Organization,\n schema:Person ;\n rdfs:comment "The author of this content or rating. Please note that author is special in that HTML 5 provides a special mechanism for indicating authorship via the rel tag. That is equivalent to this and may be used interchangeably." .\n
Run Code Online (Sandbox Code Playgroud)\n\nschema:creator a rdf:Property ;\n rdfs:label "creator" ;\n schema:domainIncludes schema:CreativeWork,\n schema:UserComments ;\n schema:rangeIncludes schema:Organization,\n schema:Person ;\n rdfs:comment "The creator/author of this CreativeWork. This is the same as the Author property for CreativeWork." .\n
Run Code Online (Sandbox Code Playgroud)\n\n可以看出,它们在 RDF 级别上不互相引用。的人类可读定义中的句子(“这与 CreativeWork 的 Author 属性相同。”)creator
是唯一表明这两个属性等效的地方。
虽然这两个属性都可以用于CreativeWork
项目,但只能author
用于Rating
项目,并且只能creator
用于UserComments
项目。
由于UserComments
不应再使用\xe2\x80\x99,因此author
如果您只想使用这两个属性之一,则该属性将更有用。
然而,由于该CreativeWork
类型不仅适用于自然语言意义上具有作者的作品(文档等),而且还适用于具有创作者的作品(例如,有Sculpture
类型的雕塑),因此在这些情况下,结构化数据可能更喜欢该creator
属性。
无论如何,在 Microdata 和 RDFa 中,\xe2\x80\x99 都很容易使用:
\n\n<span itemprop="author creator"></span>\n
Run Code Online (Sandbox Code Playgroud)\n\n<span property="author creator"></span>\n
Run Code Online (Sandbox Code Playgroud)\n\n(当然,您也可以在 JSON-LD 中使用两者,但它\xe2\x80\x99s 没那么简单。)
\n\n因此,如果您关心 RDF,并且在 Schema.org 使这两个属性在 RDF 级别上等效(如果有的话)之前,如果您认为感兴趣的消费者仅支持这两个属性之一,那么您可能会想采用这种方式。
\n 归档时间: |
|
查看次数: |
1029 次 |
最近记录: |