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

text:multilingualSupport true vs false inconsistent results

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Jena 3.5.0
    • Jena 3.6.0
    • Jena
    • N/A

    • 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

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

              Dates

                Created:
                Updated:
                Resolved: