mirror of
https://github.com/searxng/searxng.git
synced 2026-05-07 18:03:51 +02:00
Compare commits
2 Commits
330d56bba9
...
a9909c4977
| Author | SHA1 | Date | |
|---|---|---|---|
| a9909c4977 | |||
| a480560371 |
@@ -146,7 +146,7 @@ class WDAttribute:
|
|||||||
self.name: str = name
|
self.name: str = name
|
||||||
|
|
||||||
def get_select(self):
|
def get_select(self):
|
||||||
return "(group_concat(distinct ?{name};separator=", ") as ?{name}s)".replace("{name}", self.name)
|
return "(group_concat(distinct ?{name};separator=', ') as ?{name}s)".replace("{name}", self.name)
|
||||||
|
|
||||||
def get_label(self, language: str):
|
def get_label(self, language: str):
|
||||||
return get_label_for_entity(self.name, language)
|
return get_label_for_entity(self.name, language)
|
||||||
@@ -222,7 +222,7 @@ class WDArticle(WDAttribute):
|
|||||||
|
|
||||||
class WDLabelAttribute(WDAttribute):
|
class WDLabelAttribute(WDAttribute):
|
||||||
def get_select(self):
|
def get_select(self):
|
||||||
return "(group_concat(distinct ?{name}Label;separator=", ") as ?{name}Labels)".replace("{name}", self.name)
|
return "(group_concat(distinct ?{name}Label;separator=', ') as ?{name}Labels)".replace("{name}", self.name)
|
||||||
|
|
||||||
def get_where(self):
|
def get_where(self):
|
||||||
return "OPTIONAL { ?item wdt:{name} ?{name} . }".replace("{name}", self.name)
|
return "OPTIONAL { ?item wdt:{name} ?{name} . }".replace("{name}", self.name)
|
||||||
|
|||||||
+1
-1
@@ -1213,7 +1213,7 @@ engines:
|
|||||||
|
|
||||||
- name: karmasearch videos
|
- name: karmasearch videos
|
||||||
engine: karmasearch
|
engine: karmasearch
|
||||||
categories: [general, web]
|
categories: [videos, web]
|
||||||
search_type: videos
|
search_type: videos
|
||||||
shortcut: kav
|
shortcut: kav
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user