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 24 and Version 25 of WordNetApi


Ignore:
Timestamp:
Jan 15, 2009, 2:36:53 PM (16 years ago)
Author:
Adam
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WordNetApi

    v24 v25  
    4545 search_query::
    4646  search query, must be URL encoded UTF-8
     47 add_def::
     48  optional parameter, if set to true, synset definition is part of response
    4749
    4850'''Response:''' JSON encoded array of hashes with following structure
     
    5153 {
    5254   "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''
    5457 }
    5558}}}
     
    99102== Display subtree of an entry ==
    100103
    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''
    102105
    103106 entry_id::
     
    105108 arg::
    106109  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
    107112
    108113'''Response:''' JSON encoded array with tree structure (same as for basic tree in display, plus relation type) - only direct descendants of entry are returned