close Warning: Can't synchronize with repository "(default)" (/usr/local/svn/deb2-client does not appear to be a Subversion repository.). Look in the Trac log for more information.

Changes between Version 26 and Version 27 of WordNetApi


Ignore:
Timestamp:
Jan 28, 2009, 3:23:50 PM (15 years ago)
Author:
Adam
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WordNetApi

    v26 v27  
    6767== Display entry ==
    6868
    69 '''Request:''' ''servername''/''dictionary_code''?action=runQuery&query=''entry_id''&outtype=''output_type''[&arg=''argument''][&nojson=1][&default=1]
     69'''Request:''' ''servername''/''dictionary_code''?action=runQuery&query=''entry_id''&outtype=''output_type''[&arg=''argument''][&nojson=1][&default=1][&expand_rels=1]
    7070
    7171 entry_id::
     
    8484 default::
    8585  optional argument for html output type - with default=1 HTML is displayed with default styles, otherwise style set in client is used
     86 expand_rels::
     87  optional argument for editor output type - with expand_rels=1 more details about ILR are included (definition, literals)
    8688
    8789'''Response:''' by default JSON encoded, depends on output type
     
    102104== Display subtree of an entry ==
    103105
    104 '''Request:''' ''servername''/''dictionary_code''?action=subtree&query=''entry_id''&arg=''argument''&rel_type=''relation_type''
     106'''Request:''' ''servername''/''dictionary_code''?action=subtree&query=''entry_id''&arg=''argument''[&rel_type=''relation_type''][&details=''details'']
    105107
    106108 entry_id::
     
    110112 rel_type::
    111113  optional parameter, used to limit response only to relations of specified type
     114 details::
     115  optional parameter, for details=1 add g_syn, definition, for details=2 add g_syn, definition, literal array
    112116
    113 '''Response:''' JSON encoded array with tree structure (same as for basic tree in display, plus relation type) - only direct descendants of entry are returned
     117'''Response:''' JSON encoded array with tree structure (same as for basic tree in display) - only direct descendants of entry are returned
    114118
    115119== Display full subtree of an entry ==
    116120
    117 '''Request:''' ''servername''/''dictionary_code''?action=fullsubtree&query=''entry_id''&arg=''argument''
     121'''Request:''' ''servername''/''dictionary_code''?action=fullsubtree&query=''entry_id''&arg=''argument''[&rel_type=''relation_type''][&details=''details'']
    118122
    119123 entry_id::
     
    121125 arg::
    122126  specifies tree direction - ILR for normal tree, RILR for reversed tree
     127 rel_type::
     128  optional parameter, used to limit response only to relations of specified type
     129 details::
     130  optional parameter, for details=1 add g_syn, definition, for details=2 add g_syn, definition, literal array
    123131
    124132'''Response:''' JSON encoded array with tree structure (same as for basic tree in display) - display all descendants of entry