Rupert Westenthaler created STANBOL-1201:
--------------------------------------------

             Summary: 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