You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (JIRA)" <ji...@apache.org> on 2017/12/01 19:16:03 UTC

[jira] [Resolved] (JENA-1437) text:multilingualSupport true vs false inconsistent results

     [ https://issues.apache.org/jira/browse/JENA-1437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andy Seaborne resolved JENA-1437.
---------------------------------
       Resolution: Fixed
    Fix Version/s: Jena 3.6.0

> text:multilingualSupport true vs false inconsistent results
> -----------------------------------------------------------
>
>                 Key: JENA-1437
>                 URL: https://issues.apache.org/jira/browse/JENA-1437
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Jena
>    Affects Versions: Jena 3.5.0
>         Environment: N/A
>            Reporter: Code Ferret
>            Assignee: Andy Seaborne
>            Priority: Minor
>              Labels: patch
>             Fix For: Jena 3.6.0
>
>
> 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"}}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)