class documentation

class RESTfulPacket:

View In Hierarchy

BabelNet RESTful request object.

Static Method res_properties Get the response properties
Method __init__ init method
Method to_json Get the json serialization for this object
Instance Variable call_type the type of the request
Instance Variable lemmas the lemmas to ask for
Instance Variable normalizer the normalizer to use
Instance Variable poses the POSes to ask for
Instance Variable resource_ids the resource ids to filter
Instance Variable rf_key teh restful key
Instance Variable search_languages the language to filter for the search
Instance Variable sense_sources the sources to filter for the senses
Instance Variable synest_ids the synset ids to ask for
Instance Variable synset_ids Undocumented
Instance Variable target_languages the language to use for the response
Instance Variable wordnet_id the id of wordnet
@staticmethod
def res_properties(res):

Get the response properties

Parameters
resthe response
Returns
a dict with all the properties of the response inside.
def __init__(self, call_type, rf_key):

init method

Parameters
call_type:RESTfulCallTypeThe type of the RESTful calls.
rf_keyThe restful key
def to_json(self):

Get the json serialization for this object

Returns
strthe json serialization
call_type =

the type of the request

lemmas =

the lemmas to ask for

normalizer =

the normalizer to use

poses =

the POSes to ask for

resource_ids =

the resource ids to filter

rf_key =

teh restful key

search_languages =

the language to filter for the search

sense_sources =

the sources to filter for the senses

synest_ids =

the synset ids to ask for

synset_ids =

Undocumented

target_languages =

the language to use for the response

wordnet_id =

the id of wordnet