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 摘要。