I'm trying to figure out how best to handle literals in MarkLogic SPARQL data, which can be anyway. I would like to be able to do case-insensitive searches, but I believe this is not possible with semantic queries. For a simplified example, I want:
SELECT * WHERE { ?s ?p "Red"}
and
SELECT * WHERE { ?s ?p "Red"}
to return all values: Red, Red, Red, or Red.
My data is obtained from another source that has variable capitalization rules. At the moment, I can only add an extra triple that always contains lowercase text, so I can always find this value. Alternatively, does it make sense to create some new range query in MarkLogic with case-insensitive matching (if possible with triple data)?
source share