diff options
author | Munyoki Kilyungi | 2024-08-27 11:56:58 +0300 |
---|---|---|
committer | BonfaceKilz | 2024-08-29 10:42:16 +0300 |
commit | 0e7dccfb7df5ba79d1dfd531019b19a89c645792 (patch) | |
tree | b16106d5e9ca4b55415727d76534250e1b6ec391 /gn3/db | |
parent | 6e0e1293551c0f64d6008189d1a5fc426d2ae0b4 (diff) | |
download | genenetwork3-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.py | 3 |
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 ; |