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

Public Member Functions

 get_select (self)
 
 get_where (self)
 
 get_wikibase_label (self)
 
 get_str (self, result, language)
 
- Public Member Functions inherited from searx.engines.wikidata.WDAttribute
 __init__ (self, name)
 
 get_label (self, language)
 
 get_group_by (self)
 
 __repr__ (self)
 

Public Attributes

 name
 
- Public Attributes inherited from searx.engines.wikidata.WDAttribute
 name = name
 

Detailed Description

Definition at line 577 of file wikidata.py.

Member Function Documentation

◆ get_select()

searx.engines.wikidata.WDLabelAttribute.get_select ( self)

Reimplemented from searx.engines.wikidata.WDAttribute.

Definition at line 578 of file wikidata.py.

578 def get_select(self):
579 return '(group_concat(distinct ?{name}Label;separator=", ") as ?{name}Labels)'.replace('{name}', self.name)
580

Referenced by searx.engines.wikidata.WDAmountAttribute.get_group_by(), searx.engines.wikidata.WDArticle.get_group_by(), searx.engines.wikidata.WDDateAttribute.get_group_by(), and searx.engines.wikidata.WDGeoAttribute.get_group_by().

+ Here is the caller graph for this function:

◆ get_str()

searx.engines.wikidata.WDLabelAttribute.get_str ( self,
result,
language )

◆ get_where()

searx.engines.wikidata.WDLabelAttribute.get_where ( self)

◆ get_wikibase_label()

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

Member Data Documentation

◆ name


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