mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
fix: Use base IRI when parsing SPARQL update queries
Accept relative references in SPARQL updates
This commit is contained in:
committed by
Joachim Van Herwegen
parent
76def28a68
commit
775aaa79cd
@@ -75,7 +75,7 @@ describe('An integrated AuthenticatedLdpHandler', (): void => {
|
||||
'POST',
|
||||
{ 'content-type': 'text/turtle', 'transfer-encoding': 'chunked' },
|
||||
[ '<http://test.com/s1> <http://test.com/p1> <http://test.com/o1>.',
|
||||
'<http://test.com/s2> <http://test.com/p2> <http://test.com/o2>.' ],
|
||||
'<s2> <http://test.com/p2> <http://test.com/o2>.' ],
|
||||
);
|
||||
expect(response.statusCode).toBe(201);
|
||||
expect(response._getData()).toHaveLength(0);
|
||||
@@ -89,8 +89,8 @@ describe('An integrated AuthenticatedLdpHandler', (): void => {
|
||||
requestUrl,
|
||||
'PATCH',
|
||||
{ 'content-type': 'application/sparql-update', 'transfer-encoding': 'chunked' },
|
||||
[ 'DELETE { <http://test.com/s1> <http://test.com/p1> <http://test.com/o1> }',
|
||||
'INSERT {<http://test.com/s3> <http://test.com/p3> <http://test.com/o3>}',
|
||||
[ 'DELETE { <s1> <http://test.com/p1> <http://test.com/o1> }',
|
||||
'INSERT {<s3> <http://test.com/p3> <http://test.com/o3>}',
|
||||
'WHERE {}',
|
||||
],
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user