Uploaded image for project: 'Stanbol (Retired)'
  1. Stanbol (Retired)
  2. STANBOL-1201

Entityhub SPARQL query util builds invalid REGEX filter for TextConstraints

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.12.0
    • None
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              rwesten Rupert Westenthaler
              rwesten Rupert Westenthaler
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: