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

Entityhub SPARQL query util builds invalid REGEX filter for TextConstraints

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.12.0
    • Component/s: None
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: