nodeSolidServer / nodeSolidServer/node-solid-server

PATCH does not work on turtle

未关闭
#1,696 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
JavaScript
星标
1.8k
派生
308
PR 合并指标
30 天内没有已合并 PR

描述

Hi all,
I was unsuccessfully trying to HTTP PATCH a turtle file. If I don't prefix the 'xsd' namespace the patch works.

Original resource:

@prefix : <#>.
@prefix as: <https://www.w3.org/ns/activitystreams#>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
@prefix p: <./>.
@prefix notes: <../>.

p:546851bd-1db4-4b8d-bea2-1a33e982c73b
    a as:OrderedCollectionPage;
    as:partOf notes:mynotes;
    as:startIndex "0"^^<xsd:nonNegativeInteger>.

PATCH:

DELETE DATA { <https://diegoalbuquerque.localhost:8443/tests/collections/notes/pages/546851bd-1db4-4b8d-bea2-1a33e982c73b> <https://www.w3.org/ns/activitystreams#startIndex> "0"^^<http://www.w3.org/2001/XMLSchema#nonNegativeInteger>. }

RESULT:

The patch could not be applied. Could not find to delete: <https://diegoalbuquerque.localhost:8443/tests/collections/notes/pages/546851bd-1db4-4b8d-bea2-1a33e982c73b> <https://www.w3.org/ns/activitystreams#startIndex> "0"^^<http://www.w3.org/2001/XMLSchema#nonNegativeInteger> .

This works:

@prefix : <#>.
@prefix as: <https://www.w3.org/ns/activitystreams#>.
@prefix p: <./>.
@prefix notes: <../>.

p:546851bd-1db4-4b8d-bea2-1a33e982c73b
    a as:OrderedCollectionPage;
    as:partOf notes:mynotes;
    as:startIndex "0"^^<http://www.w3.org/2001/XMLSchema#nonNegativeInteger>.

Am I doing something wrong?

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

针对原始 Turtle 资源重现所提供的 PATCH,比较带有前缀的 xsd:nonNegativeInteger 形式与完整的数据类型 IRI。跟踪 PATCH 处理以及 Turtle/RDF 解析路径;当资源使用 xsd prefix 时 DELETE DATA 请求能够成功,并且有一个覆盖两种形式的回归测试,即表示完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
javascript
领域
api, backend
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
42/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。