229 | | ||{{{GET api/annotations?source=<URI>&text=<text>&access=[read, write]&}}}[[BR]] {{{ns=<prefix>:<ns>&xpath=<xpath>&owner=<uid>&after=<datetime1>&before=<datetime2>}}}|| Returns the list of <aid>-s of the annotations of the annotated object located at <URI>, to which the inlogged <uid> has “read” (resp.”write”) access and the bodies of whom contain the text <text>. Moreover, these annotations are created between <datetime1> and <datetime2>. If the parameter “source” is omitted, then considers all annotated objects to which <uid> has “read”/”write” access. Parameter xpath allows to search over the parts of annotations body, e.g. <xpath> may be body[@type=’relation’]/relation=’contradiction’. For this one needs URI’ of namespaces <ns> represented by prefixes <prefix>. The default <xpath> is “empty” and implies no limitation. The default <datetime1> can be 01 Jan 1970, 00:00. The default <datetime2> is today.|| |
230 | | |
231 | | [[Image(https://trac.clarin.eu/raw-attachment/wiki/DASISH/SpecificationDocument/REST1.png)]] |
| 230 | ||{{{GET api/annotations?source=<URI>&text=<text>&access=[read, write]&ns=<prefix>:<ns>&xpath=<xpath>&owner=<uid>&after=<datetime1>&before=<datetime2>}}}||Returns the list of <aid>-s of the annotations of the annotated object located at <URI>, to which the inlogged <uid> has “read” (resp.”write”) access and the bodies of whom contain the text <text>. Moreover, these annotations are created between <datetime1> and <datetime2>. If the parameter “source” is omitted, then considers all annotated objects to which <uid> has “read”/”write” access. Parameter xpath allows to search over the parts of annotations body, e.g. <xpath> may be body[@type=’relation’]/relation=’contradiction’. For this one needs URI’ of namespaces <ns> represented by prefixes <prefix>. The default <xpath> is “empty” and implies no limitation. The default <datetime1> can be 01 Jan 1970, 00:00. The default <datetime2> is today.|| |