假设我有一个图像 /img/fox.svg
,它是基于 https://commons.wikimedia.org/wiki/Vulpes_vulpes#/media/File:Captive_red_foxes.JPG 的衍生作品。这是与作者 GDallimore ( https://commons.wikimedia.org/wiki/User:GDallimore ) 共享的 CC BY-SA 3.0。
我想使用 RDFa 正确归因此图像,但我才刚刚开始,细节无法理解。
我尝试像这样从都柏林核心开始:
<span prefix="dcterms: http://purl.org/dc/terms/ dctype: http://purl.org/dc/dcmitype/">
<span resource="/img/fox.svg" typeof="dctype:Image">
<a property="dcterms:source" href="https://commons.wikimedia.org/wiki/Vulpes_vulpes#/media/File:Captive_red_foxes.JPG">
</a>
</span>
</span>
也许可以扩展到
<span prefix="dcterms: http://purl.org/dc/terms/ dctype: http://purl.org/dc/dcmitype/ rdfa: http://www.w3.org/ns/rdfa#">
<span resource="/img/fox.svg" typeof="dctype:Image">
<a property="dcterms:source" href="https://commons.wikimedia.org/wiki/Vulpes_vulpes#/media/File:Captive_red_foxes.JPG">
</a>
<a property="http://creativecommons.org/ns#license" href="https://creativecommons.org/licenses/by-sa/3.0/">CC BY-SA 3.0</a>
</span>
<a about="https://commons.wikimedia.org/wiki/Vulpes_vulpes#/media/File:Captive_red_foxes.JPG"
property="http://creativecommons.org/ns#license" href="https://creativecommons.org/licenses/by-sa/3.0/">CC BY-SA 3.0</a>
<a about="https://commons.wikimedia.org/wiki/Vulpes_vulpes#/media/File:Captive_red_foxes.JPG" property="dcterms:creator"
href="https://commons.wikimedia.org/wiki/User:GDallimore">GDallimore</a>
</span>
结果
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix dctype: <http://purl.org/dc/dcmitype/> .
@prefix rdfa: <http://www.w3.org/ns/rdfa#> .
@prefix cc: <http://creativecommons.org/ns#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema: <http://schema.org/> .
@prefix xml: <http://www.w3.org/XML/1998/namespace> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
</img/fox.svg> a dctype:Image ;
dcterms:source <https://commons.wikimedia.org/wiki/Vulpes_vulpes#/media/File:Captive_red_foxes.JPG> .
<https://commons.wikimedia.org/wiki/Vulpes_vulpes#/media/File:Captive_red_foxes.JPG> cc:license <https://creativecommons.org/licenses/by-sa/3.0/> ;
dcterms: <https://commons.wikimedia.org/wiki/User:GDallimore> ;
schema:creator <https://commons.wikimedia.org/wiki/User:GDallimore> .
但超出了这一点,就陷入了困境——感觉非常重复,我真的不能说它是否有意义。
最佳答案
不,这完全没有道理!像这样的三元组是错误的:
<https://commons.wikimedia.org/wiki/Vulpes_vulpes#/media/File:Captive_red_foxes.JPG>
dcterms: <https://commons.wikimedia.org/wiki/User:GDallimore> ;
我认为您在使用 dcterms:
时缺少一个特定属性。
但是,除此之外,你做得很好。就这样怎么样:
</img/fox.svg> a dctype:Image ;
dcterms:source <https://commons.wikimedia.org/wiki/Vulpes_vulpes#/media/File:Captive_red_foxes.JPG> .
<https://commons.wikimedia.org/wiki/Vulpes_vulpes#/media/File:Captive_red_foxes.JPG>
cc:license <https://creativecommons.org/licenses/by-sa/3.0/> ;
dcterms:creator <https://commons.wikimedia.org/wiki/User:GDallimore> .
您不需要同时使用 schema.org 和 Dublin Core 属性来描述此处发生的情况。只需选择您认为最合适的套餐即可。它们有重叠。
关于rdf - 如何使用 RDFa 描述 CC BY-SA 3.0 上的衍生作品,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70207511/