You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Code Ferret (JIRA)" <ji...@apache.org> on 2017/11/24 16:32:00 UTC
[jira] [Created] (JENA-1437) text:multilingualSupport true vs false
inconsistent results
Code Ferret created JENA-1437:
---------------------------------
Summary: 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
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)