aboutsummaryrefslogtreecommitdiff
path: root/gn3/db
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-08-27 11:56:58 +0300
committerBonfaceKilz2024-08-29 10:42:16 +0300
commit0e7dccfb7df5ba79d1dfd531019b19a89c645792 (patch)
treeb16106d5e9ca4b55415727d76534250e1b6ec391 /gn3/db
parent6e0e1293551c0f64d6008189d1a5fc426d2ae0b4 (diff)
downloadgenenetwork3-0e7dccfb7df5ba79d1dfd531019b19a89c645792.tar.gz
Make fetching wiki entries by symbol case insensitive.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn3/db')
-rw-r--r--gn3/db/rdf.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gn3/db/rdf.py b/gn3/db/rdf.py
index f79493b..35c4a98 100644
--- a/gn3/db/rdf.py
+++ b/gn3/db/rdf.py
@@ -59,7 +59,8 @@ CONSTRUCT {
dct:created ?created
} WHERE {
?symbolId rdfs:comment _:node ;
- rdfs:label '$symbol' .
+ rdfs:label ?symbolName .
+ FILTER ( LCASE(?symbolName) = LCASE('$symbol') ) .
_:node rdf:type gnc:GNWikiEntry ;
dct:hasVersion "0"^^xsd:int ;
dct:hasVersion ?version ;