aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
authorJohn Nduli2024-06-18 17:29:21 +0300
committerBonfaceKilz2024-07-03 14:24:01 +0300
commit4f691b58419a141a8015c7a2bf5df490d92bc5df (patch)
treebd4841a515273632de3547a4621d6b2052a7201c /gn3
parentbf580fae39fd6742f4874d7eea68feaa939146e7 (diff)
downloadgenenetwork3-4f691b58419a141a8015c7a2bf5df490d92bc5df.tar.gz
feat: add wikidata prefix to search api
Diffstat (limited to 'gn3')
-rw-r--r--gn3/api/search.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/gn3/api/search.py b/gn3/api/search.py
index 2bb7058..b3e67cd 100644
--- a/gn3/api/search.py
+++ b/gn3/api/search.py
@@ -212,6 +212,7 @@ def parse_query(synteny_files_directory: Path, query: str):
queryparser.add_boolean_prefix("peakchr", "XPC")
queryparser.add_prefix("description", "XD")
queryparser.add_prefix("rif", "XRF")
+ queryparser.add_prefix("wikidata", "XRWD")
range_prefixes = ["mean", "peak", "position", "peakmb", "additive", "year"]
for i, prefix in enumerate(range_prefixes):
# Treat position specially since it needs its own field processor.