From c90dd47f5e3e8425c4d675478833af50bab3218d Mon Sep 17 00:00:00 2001 From: Dennis Schiese <135758800+dschiese@users.noreply.github.com> Date: Tue, 25 Jun 2024 14:11:00 +0200 Subject: [PATCH] Update getAnnotation.rq Filter matching with regex --- .../src/main/resources/queries/getAnnotation.rq | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qanary-component-QB-BirthDataWikidata/src/main/resources/queries/getAnnotation.rq b/qanary-component-QB-BirthDataWikidata/src/main/resources/queries/getAnnotation.rq index 86066061..37bafda3 100644 --- a/qanary-component-QB-BirthDataWikidata/src/main/resources/queries/getAnnotation.rq +++ b/qanary-component-QB-BirthDataWikidata/src/main/resources/queries/getAnnotation.rq @@ -10,7 +10,7 @@ WHERE { ?annotation qa:score ?annotationScore . ?annotation oa:hasTarget ?target . - FILTER (?wikidataResource = ?value) + FILTER (REGEX(?wikidataResource,?value, "i")) ?target oa:hasSource ?source . ?target oa:hasSelector ?textSelector . @@ -18,4 +18,4 @@ WHERE { ?textSelector oa:start ?start . ?textSelector oa:end ?end . } -ORDER BY DESC(?annotationScore) \ No newline at end of file +ORDER BY DESC(?annotationScore)