-
Notifications
You must be signed in to change notification settings - Fork 6
/
patch
43 lines (30 loc) · 979 Bytes
/
patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
verbosity 0
put /test/good.ttl <#A> a <#foo>.
put /test/bad.ttl <#A> junk junk.
verbosity 1
#!Delete non-existent triple
patch /test/good.ttl DELETE DATA { <#X> a <#Baz> }
#!Patch on Container
patch /test/ INSERT DATA { <#X> a <#Baz> }
# END
#!Syntax error in patch [400 in all implementations]
patch /test/good.ttl INSERT DATA { <#X> junk <#Baz> }
#!Syntax error in file to be patched [400 in all implementations]
patch /test/bad.ttl INSERT DATA <#A> a <#foo>.
patch /test/x.ttl INSERT DATA { <#A> a <#Foo> }
patch /test/x.ttl INSERT DATA { <#B> a <#Foo> }
patch /test/x.ttl INSERT DATA { <#C> a <#Bar> }
patch /test/x.ttl DELETE DATA { <#B> a <#Foo> }
!Syntax error in patch
400 - all
!Syntax error in file to be patched
400 CSS
500 NSS & SRF
201 ESS
!Patch on non-rdf resource
!Delete non-existent triple
!Patch on Container
CSS 400 205 400 501 205 409
SRF 400 200 500 409 409 409
ESS 400 201 201 405 201 204
NSS 400 200 500 500 409 500