I would like to query wikidata in order to obtain entries based_on some technologies (blockchain, solid, RDF and so on). These potential technologies would change dynamically, so that, I inject them as literals from a piece of code. The point is that I get no results when trying injecting literals (strings).
In the next piece of SPARQL, you can see five different approaches I tried (all of them fail), through https://query.wikidata.org/
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX xsd: <www.w3.org/2001/XMLSchema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?item
WHERE {
#test1 ?item wdt:P144 ?o FILTER (str(?o) = 'blockchain' ) .
#test2 ?item wdt:P144 ?o FILTER (regex (?o,'blockchain')) .
#test3 ?item wdt:P144 ?o FILTER (regex (?o,'^blockchain$')) .
#test4 ?item wdt:P144 'blockchain' .
#test5 ?item wdt:P144 "blockchain" .
}
Any clue? Thx in advance for your time and support.