Skip to content

Commit

Permalink
Update getAnnotation.rq
Browse files Browse the repository at this point in the history
Filter matching with regex
  • Loading branch information
dschiese authored Jun 25, 2024
1 parent 6d0b1d3 commit c90dd47
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ 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 .
?textSelector rdf:type oa:TextPositionSelector .
?textSelector oa:start ?start .
?textSelector oa:end ?end .
}
ORDER BY DESC(?annotationScore)
ORDER BY DESC(?annotationScore)

0 comments on commit c90dd47

Please sign in to comment.