class documentation
class BabelImage:
An image in BabelNet.
Method | __init__ |
init method |
Method | add |
Add a new Language. |
Instance Variable | is |
True if bad or censored image. |
Instance Variable | languages |
The languages of the Wikipedia this image comes from. |
Instance Variable | license_ |
Image license. |
Instance Variable | name |
The short name / MediaWiki page name for the image, e.g. : |
Instance Variable | thumb |
The URL thumb to the actual image, e.g. : |
Instance Variable | url |
The URL to the actual image, e.g. : |
Instance Variable | url |
Source of the image URL. |
Method | __eq__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | __str__ |
Undocumented |
def add_language(self, language):
Add a new Language.
Parameters | |
language:Language | The language to add. |
name:
str
=
The short name / MediaWiki page name for the image, e.g. :
'Haile-newyork-cropforfocus.jpg'
thumb_url:
str
=
The URL thumb to the actual image, e.g. :
'http://upload.wikimedia.org/wikipedia/commons/9/94/Haile-newyork-cropforfocus.jpg/120px-Haile-newyork-cropforfocus.jpg'
url:
str
=
The URL to the actual image, e.g. :
'http://upload.wikimedia.org/wikipedia/commons/9/94/Haile-newyork-cropforfocus.jpg'