我试图在 Marmotta 上更新我的数据库中的查询值。我有很多这样的资源:
<rdf:Description rdf:about="http://desktop-pqb3a65:8080/marmotta/resource/7e31bb9e-5dee-4f44-b082-9f770d465ea0">
<hasContentPath xmlns="http://www.kiwi-project.eu/kiwi/core/">D:\Software\Marmotta\marmotta-home\resources\56\cc\73\56cc736b-f597-47e8-9ffc-f37c3dbf66be</hasContentPath>
<about xmlns="http://schema.org/">Fondamenti di Informatica</about>
<name xmlns="http://schema.org/">Hello World!</name>
<author xmlns="http://schema.org/">EduOpen</author>
<audience xmlns="http://schema.org/">Qualsiasi</audience>
<actor xmlns="http://schema.org/">Gianni Vercelli</actor>
<description xmlns="http://schema.org/">Accenni storici sulla nascita del calcolatore</description>
<width xmlns="http://schema.org/"></width>
<height xmlns="http://schema.org/"></height>
<duration xmlns="http://schema.org/"></duration>
</rdf:Description>
我想编辑该hasContentPath
字段,我有这样的值:
D:\Software\Marmotta\marmotta-home\resources\56\cc\73\56cc736b-f597-47e8-9ffc-f37c3dbf66be
我想编辑并插入一个值,如:
resources\56\cc\73\56cc736b-f597-47e8-9ffc-f37c3dbf66be
你能帮助我吗?我试过这个查询:
PREFIX schema: <http://schema.org/>
DELETE { ?resource <http://www.kiwi-project.eu/kiwi/core/> 'D:\Software\Marmotta\marmotta-home\resources\56\cc\73\56cc736b-f597-47e8-9ffc-f37c3dbf66be' }
INSERT { ?resource <http://www.kiwi-project.eu/kiwi/core/> 'resources\56\cc\73\56cc736b-f597-47e8-9ffc-f37c3dbf66be' }
WHERE
{ ?resource schema:name 'Hello World!'
}