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.
- Timestamp:
-
Jan 15, 2009, 2:36:53 PM (16 years ago)
- Author:
-
Adam
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v24
|
v25
|
|
45 | 45 | search_query:: |
46 | 46 | search query, must be URL encoded UTF-8 |
| 47 | add_def:: |
| 48 | optional parameter, if set to true, synset definition is part of response |
47 | 49 | |
48 | 50 | '''Response:''' JSON encoded array of hashes with following structure |
… |
… |
|
51 | 53 | { |
52 | 54 | "value" => ''entry ID'', |
53 | | "label" => ''information about an entry, depends on dictionary, usually contains PoS, literals'' |
| 55 | "label" => ''information about an entry, depends on dictionary, usually contains PoS, literals'', |
| 56 | "definition" => ''synset definition, only included if add_def=true'' |
54 | 57 | } |
55 | 58 | }}} |
… |
… |
|
99 | 102 | == Display subtree of an entry == |
100 | 103 | |
101 | | '''Request:''' ''servername''/''dictionary_code''?action=subtree&query=''entry_id''&arg=''argument'' |
| 104 | '''Request:''' ''servername''/''dictionary_code''?action=subtree&query=''entry_id''&arg=''argument''&rel_type=''relation_type'' |
102 | 105 | |
103 | 106 | entry_id:: |
… |
… |
|
105 | 108 | arg:: |
106 | 109 | specifies tree direction - ILR for normal tree, RILR for reversed tree |
| 110 | rel_type:: |
| 111 | optional parameter, used to limit response only to relations of specified type |
107 | 112 | |
108 | 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 |