Github user xristy commented on a diff in the pull request:
https://github.com/apache/jena/pull/320#discussion_r153872049
--- Diff:
jena-text/src/main/java/org/apache/jena/query/text/TextQueryPF.java ---
@@ -295,6 +295,14 @@ private String chooseGraphURI(ExecutionContext
execCxt) {
return results;
}
+ private boolean noLang(String lang) {
+ return (lang == null || lang.isEmpty() || " ".equals(lang));
--- End diff --
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.
---