.oO SearXNG Developer Documentation Oo.
|
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',) |
Definition at line 494 of file wikidata.py.
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.
searx.engines.wikidata.WDAttribute.__repr__ | ( | self | ) |
Definition at line 518 of file wikidata.py.
References 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.
searx.engines.wikidata.WDAttribute.get_group_by | ( | self | ) |
Reimplemented in searx.engines.wikidata.WDAmountAttribute, searx.engines.wikidata.WDArticle, searx.engines.wikidata.WDDateAttribute, and searx.engines.wikidata.WDGeoAttribute.
Definition at line 512 of file wikidata.py.
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.
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.
searx.engines.wikidata.WDAttribute.get_select | ( | self | ) |
Reimplemented in searx.engines.wikidata.WDAmountAttribute, searx.engines.wikidata.WDArticle, searx.engines.wikidata.WDDateAttribute, searx.engines.wikidata.WDGeoAttribute, and searx.engines.wikidata.WDLabelAttribute.
Definition at line 500 of file wikidata.py.
References 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.
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().
searx.engines.wikidata.WDAttribute.get_str | ( | self, | |
result, | |||
language ) |
Reimplemented in searx.engines.wikidata.WDAmountAttribute, searx.engines.wikidata.WDArticle, searx.engines.wikidata.WDDateAttribute, searx.engines.wikidata.WDGeoAttribute, searx.engines.wikidata.WDLabelAttribute, and searx.engines.wikidata.WDURLAttribute.
Definition at line 515 of file wikidata.py.
References 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.
searx.engines.wikidata.WDAttribute.get_where | ( | self | ) |
Reimplemented in searx.engines.wikidata.WDAmountAttribute, searx.engines.wikidata.WDArticle, searx.engines.wikidata.WDDateAttribute, searx.engines.wikidata.WDGeoAttribute, and searx.engines.wikidata.WDLabelAttribute.
Definition at line 506 of file wikidata.py.
References 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.
searx.engines.wikidata.WDAttribute.get_wikibase_label | ( | self | ) |
Reimplemented in searx.engines.wikidata.WDLabelAttribute.
Definition at line 509 of file wikidata.py.
|
staticprivate |
Definition at line 495 of file wikidata.py.
searx.engines.wikidata.WDAttribute.name = name |
Definition at line 498 of file wikidata.py.
Referenced by searx.search.models.EngineRef.__eq__(), searx.search.models.EngineRef.__hash__(), searx.engines.wikidata.WDAttribute.__repr__(), searx.search.models.EngineRef.__repr__(), searx.engines.wikidata.WDGeoAttribute.get_geo_url(), searx.engines.wikidata.WDAttribute.get_label(), searx.engines.wikidata.WDAttribute.get_select(), searx.engines.wikidata.WDAmountAttribute.get_str(), searx.engines.wikidata.WDAttribute.get_str(), searx.engines.wikidata.WDDateAttribute.get_str(), searx.engines.wikidata.WDGeoAttribute.get_str(), searx.engines.wikidata.WDLabelAttribute.get_str(), searx.engines.wikidata.WDURLAttribute.get_str(), searx.engines.wikidata.WDAmountAttribute.get_where(), searx.engines.wikidata.WDAttribute.get_where(), searx.engines.wikidata.WDDateAttribute.get_where(), searx.engines.wikidata.WDGeoAttribute.get_where(), searx.engines.wikidata.WDLabelAttribute.get_where(), searx.engines.wikidata.WDLabelAttribute.get_wikibase_label(), and searx.preferences.BooleanChoices.save().