.oO SearXNG Developer Documentation Oo.
Loading...
Searching...
No Matches
searx.engines.wikidata.WDAttribute Class Reference
+ Inheritance diagram for searx.engines.wikidata.WDAttribute:

Public Member Functions

 __init__ (self, name)
 
 get_select (self)
 
 get_label (self, language)
 
 get_where (self)
 
 get_wikibase_label (self)
 
 get_group_by (self)
 
 get_str (self, result, language)
 
 __repr__ (self)
 

Public Attributes

 name = name
 

Static Private Attributes

tuple __slots__ = ('name',)
 

Detailed Description

Definition at line 494 of file wikidata.py.

Constructor & Destructor Documentation

◆ __init__()

searx.engines.wikidata.WDAttribute.__init__ ( self,
name )

Reimplemented in searx.engines.wikidata.WDArticle, searx.engines.wikidata.WDImageAttribute, and searx.engines.wikidata.WDURLAttribute.

Definition at line 497 of file wikidata.py.

497 def __init__(self, name):
498 self.name = name
499

Member Function Documentation

◆ __repr__()

searx.engines.wikidata.WDAttribute.__repr__ ( self)

◆ get_group_by()

searx.engines.wikidata.WDAttribute.get_group_by ( self)

◆ get_label()

searx.engines.wikidata.WDAttribute.get_label ( self,
language )

Reimplemented in searx.engines.wikidata.WDArticle, and searx.engines.wikidata.WDGeoAttribute.

Definition at line 503 of file wikidata.py.

503 def get_label(self, language):
504 return get_label_for_entity(self.name, language)
505

References searx.engines.wikidata.get_label_for_entity(), searx.engines.wikidata.WDAmountAttribute.name, searx.engines.wikidata.WDAttribute.name, searx.engines.wikidata.WDDateAttribute.name, searx.engines.wikidata.WDGeoAttribute.name, searx.engines.wikidata.WDLabelAttribute.name, searx.preferences.BooleanChoices.name, and searx.search.models.EngineRef.name.

+ Here is the call graph for this function:

◆ get_select()

◆ get_str()

◆ get_where()

◆ get_wikibase_label()

searx.engines.wikidata.WDAttribute.get_wikibase_label ( self)

Reimplemented in searx.engines.wikidata.WDLabelAttribute.

Definition at line 509 of file wikidata.py.

509 def get_wikibase_label(self):
510 return ""
511

Member Data Documentation

◆ __slots__

tuple searx.engines.wikidata.WDAttribute.__slots__ = ('name',)
staticprivate

Definition at line 495 of file wikidata.py.

◆ name


The documentation for this class was generated from the following file: