[ 
https://issues.apache.org/jira/browse/STANBOL-1201?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Rupert Westenthaler resolved STANBOL-1201.
------------------------------------------

    Resolution: Fixed

fixed with http://svn.apache.org/r1539026 in both the trunk and the 0.12.0 
release branch

> Entityhub SPARQL query util builds invalid REGEX filter for TextConstraints
> ---------------------------------------------------------------------------
>
>                 Key: STANBOL-1201
>                 URL: https://issues.apache.org/jira/browse/STANBOL-1201
>             Project: Stanbol
>          Issue Type: Bug
>            Reporter: Rupert Westenthaler
>            Assignee: Rupert Westenthaler
>             Fix For: 0.12.0
>
>
> TextContraints are wrongly encoded as REGEX filter by the SPARQL query util.
> here an example
> SELECT DISTINCT ?id 
> WHERE { 
>   { 
>     ?id {field} ?tmp1  
>       FILTER(regex(str(tmp1,"{regex}","i")) . 
>   } 
> } 
> LIMIT 10
> the correct FILTER expression would be
>     FILTER(regex(str(?tmp1),"{regex}","i")) . 
> so basically the '?' before the variable name tmp1 as well as the closing 
> bracket for the str function are missing.
> This should be fixed both in trunk and the 0.12.0 releasing branch



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to