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:
-
Oct 22, 2009, 2:44:04 PM (15 years ago)
- Author:
-
Adam
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v31
|
v32
|
|
69 | 69 | == Query entry information == |
70 | 70 | |
71 | | '''Request:''' ''servername''/''dictionary_code''?action=runQuery&query=''entry_id''&outtype=''output_type''[&arg=''argument''][&nojson=1][&default=1][&expand_rels=1] |
| 71 | '''Request:''' ''servername''/''dictionary_code''?action=runQuery&query=''entry_id''&outtype=''output_type''[&arg=''argument''][&nojson=1][&default=1][&expand_rels=1][&reldics=''wordnet_list''] |
72 | 72 | |
73 | 73 | entry_id:: |
… |
… |
|
81 | 81 | * tree - array representation of tree, ''arg'' specifies tree direction - ILR for normal tree, RILR for reversed tree |
82 | 82 | * editor - hash representation of XML for editor tab |
| 83 | * rels - searches in ''wordnet_list'' for all synsets that have ELR link to ''entry_id'' and link type 'EQ_Synonym', 'EQ_Near_Synonym', 'EQ_Has_Hyperonym', 'EQ_Has_Hyponym'. Returns array of hash representation. |
| 84 | |
83 | 85 | arg:: |
84 | 86 | depends on output_type. For ''html'' optionally specifies other than default template. For ''tree'' specifies tree direction. |
… |
… |
|
89 | 91 | expand_rels:: |
90 | 92 | optional argument for editor output type - with expand_rels=1 more details about ILR are included (definition, literals) |
| 93 | wordnet_list:: |
| 94 | mandatory argument for rels output type - comma separated list of wordnet codes, define in which wordnets to search for synsets |
91 | 95 | |
92 | 96 | '''Response:''' by default JSON encoded, depends on output type |
… |
… |
|
176 | 180 | |
177 | 181 | '''Response:''' (JSON encoded) arrays "original" and "translated" with the list of synsets in source and target language (same structure as for "Querying dictionary") |
| 182 | |