PATCH does not work on turtle
daraujo-liberson opened this issue · 0 comments
daraujo-liberson commented
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?