Uploaded image for project: 'VIVO'
  1. VIVO
  2. VIVO-1059

SparqlQueryDataGetter: Have bind parameter method substitute variable using regexp or other mechanism that recognizes the entire variable name

    XMLWordPrintable

    Details

    • Attachments:
      0
    • Comments:
      1

      Description

      In a situation where: a data getter is associated with a freemarker template, the page data/parameters sent to the template include both the IndividualTemplateModel instance saved in the individual variable and the individual URI saved in the individualURI variable, and for some reason the individual variable is encountered first -> the sparql query data getter bindParameters method would replace ?individualURI in the query with the individual value (i.e. IndividualTemplateModel) instead of the actual individualURI value. BindParameters uses text substitution that does not check whether the entire variable name within the query is being matched or if only the beginning portion (i.e. ?individual) is being matched. Updating this to correctly match the variable name would be good for situations where multiple parameters exist that start with the same string sequence.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                grahamtriggs Graham Triggs
                Reporter:
                hjk54 Huda Khan
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: