Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-1437

text:multilingualSupport true vs false inconsistent results

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Jena 3.5.0
    • Fix Version/s: Jena 3.6.0
    • Component/s: Jena
    • Labels:
    • Environment:

      N/A

    • Flags:
      Patch

      Description

      If text:multilingualSupport false then

      ?s text:query ("some string" "lang:lang-code")

      may be expected to return matches for the text:defaultField restricted to the given lang-code.

      However, if text:multilingualSupport true then the same query always returns zero results owing to an improper rewriting of the query string with a field spec of:

      "null_lang-code:some string".

      OTOH, explicit mention of the text:predicate corresponding to the text:defaultField, e.g., rdfs:label, yields the expected results:

      ?s text:query (rdfs:label "some string" "lang:lang-code")

      Should be fixed with a proper rewriting of the query-string to:

      "text:defaultField_lang-code:some string"

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                andy Andy Seaborne
                Reporter:
                code-ferret Code Ferret
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: