[
https://issues.apache.org/jira/browse/JENA-1438?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16271020#comment-16271020
]
Code Ferret commented on JENA-1438:
-----------------------------------
The single space is the response from {{o.getLiteralLanguage()}} where {{Node
o}} and {{o.isLiteral()}} at lines 344 and 386 of {{TextQueryPF.java}}. It
appears to be the response when the literal has no explicit language tag. I
thought the response was supposed to be an empty string, but the single space
is what I was getting.
> rdf:langString argument to text:query silently ignored
> ------------------------------------------------------
>
> Key: JENA-1438
> URL: https://issues.apache.org/jira/browse/JENA-1438
> Project: Apache Jena
> Issue Type: Bug
> Components: Jena
> Affects Versions: Jena 3.5.0
> Environment: N/A
> Reporter: Code Ferret
> Priority: Minor
>
> Queries of the form:
> {{?s text:query "some string"@lang-code}}
> return no results even when there are matches found by the _equivalent_:
> {{?s text:query ("some string" "lang:lang-code")}}
> {quote}
> Note the above _equivalent_ form is currently valid only if
> {{text:multilingualSupport false}}.
> {quote} See [JENA-1437|https://issues.apache.org/jira/browse/JENA-1437]
> A reasonable fix is to recognize the {{rdf:langString}} case and treat it as
> the _equivalent_ form referring to the {{text:defautlField}}; otherwise, at
> least an error should be indicated.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)