nodeSolidServer / nodeSolidServer/node-solid-server
Fix conformance to SPARQL Update / Query's prefix declaration
未关闭
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 1.8k
- 派生
- 308
- PR 合并指标
- 30 天内没有已合并 PR
描述
Snippet of an example request:
PATCH https://example.org/test.ttl HTTP/1.1
Content-Type: application/sparql-update
PREFIX acl: <http://www.w3.org/ns/auth/acl#>
Snippet of an example response:
HTTP/1.1 400 Bad Request
X-Powered-By: solid-server/5.7.11
Accept-Patch: application/sparql-update
Content-Type: text/plain; charset=utf-8
Content-Length: 206
Patch document syntax error: Line 1 of <https://example.org/test.ttl>: Bad syntax:
Unknown syntax at start of statememt: 'PREFIX acl: <http://'/
at: "PREFIX acl: <http://www.w3.org/"
AFAICT, https://github.com/linkeddata/rdflib.js/issues/651 captures the issue in that NSS rejects SPARQL Update requests with valid payload using PREFIX (and accepts invalid payload containing @prefix).
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
未指定 repository 文件或测试。首先使用 Content-Type application/sparql-update 和 PREFIX 声明重现 PATCH 请求,然后将 parser 的行为与 rdflib.js issue 651 进行比较;完成标准是接受有效的 PREFIX payload,同时对无效 @prefix 的处理遵循预期的 SPARQL 兼容性。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript, node.js
- 领域
- api, backend
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100