From 0e7dccfb7df5ba79d1dfd531019b19a89c645792 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Tue, 27 Aug 2024 11:56:58 +0300 Subject: Make fetching wiki entries by symbol case insensitive. Signed-off-by: Munyoki Kilyungi --- gn3/db/rdf.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gn3/db') 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 ; -- cgit v1.2.3