Changes between Version 20 and Version 21 of DASISH/SpecificationDocument


Ignore:
Timestamp:
04/11/13 09:20:40 (11 years ago)
Author:
olhsha
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DASISH/SpecificationDocument

    v20 v21  
    226226=== api/annotations
    227227
     228
    228229||= '''Resource'''   =||= '''Description''' =||
    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.||
    232231
    233232=== api/annotations/<aid>