You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/11/29 20:21:00 UTC

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

    [ https://issues.apache.org/jira/browse/JENA-1437?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16271481#comment-16271481 ] 

ASF GitHub Bot commented on JENA-1437:
--------------------------------------

GitHub user xristy opened a pull request:

    https://github.com/apache/jena/pull/322

    JENA-1437-multiLingual

    Corrects issue reported in JENA-1437

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/BuddhistDigitalResourceCenter/jena JENA-1437-multiLingual

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/jena/pull/322.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #322
    
----
commit 304dc0551f45b5d86174da714be9d63529b9f533
Author: Chris Tomlinson <ct...@moonvine.org>
Date:   2017-11-29T20:19:08Z

    JENA-1437-multiLingual
    
    Corrects issue reported in JENA-1437

----


> 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
>            Priority: Minor
>              Labels: patch
>
> 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)