Closed yfaria closed 2 years ago
Solved in demo branch.
Now, this WQL query, x:_run*[]
is transformed to
PREFIX mrs: <http://www.delph-in.net/schema/mrs#>
PREFIX delph: <http://www.delph-in.net/schema/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?x2 ?x0 WHERE {
?x0 rdf:type mrs:MRS .
FILTER (REGEX(?x5, "_run.*")) .
?x4 delph:predText ?x5 .
?x3 delph:hasPredicate ?x4 .
?x3 mrs:hasLabel ?x1 .
?x3 rdfs:label ?x2 .
?x0 mrs:hasEP ?x3 .
}
By now, the query generator only creates queries searching for predicate texts which aren't regular expressions. For example; the WQL search
x:_run*[]
translates toand we needed
?x2 delph:predText ?x3. FILTER regex(?x3,"_run.*")
.