rdf - 如何使用 RDFa 描述 CC BY-SA 3.0 上的衍生作品

标签 rdf semantic-web rdfa dublin-core

假设我有一个图像 /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/

相关文章:

semantic-web - 如何在 Virtuoso Triplestore 中设置多个数据库?

php - 用于 PHP 的 OWL 解析器?

schema.org - 一页上有多个 Schema.org ItemList 元素

schema.org - RDFa 与 schema.org 博客架构

sparql - SPARQL查询中空白节点和变量的区别

sparql - 将空白节点从 stardog 映射到 pubby

java - 从 DBpedia 资源中获取 Sesame 2.7.1 的数据类型错误

semantics - 查询以显示 DBpedia 的所有类和所有谓词

rdf - rdf :resource 上的 SPARQL 查询

jsp - 从 JSP 读取 RDF(FOAF)