[
https://issues.apache.org/jira/browse/JENA-1439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16280342#comment-16280342
]
Code Ferret commented on JENA-1439:
-----------------------------------
I've spent quite a bit of time trying to chase down what's happening.
There is a single {{OpPropFunc}} created for the query which has the property
function uri and the _subject_ and _object_ {{PropFuncArg}} created once for
the looping over the graphs in the dataset.
The first time through, i.e., for the first graph, the _object_ {{PropFuncArg}}
is correct, i.e., contains the {{lang:xx}}. For the following graph(s) the
{{lang:xx}} is missing!
The _object_ {{PropFuncArg}} identity (measured with
{{System.identityHashCode}}) remains constant throughout suggesting that there
is not a replacement _object_ {{PropFuncArg}} being supplied somewhere.
Further, I can not locate any code that will side effect the {{List<Node>}}
contained in the _object_ {{PropFuncArg}}.
It makes no difference whether there are 2, 3, or 4 object arguments or their
combination. After the first graph all object arguments except the {{lang:xx}}
are retained and the {{lang:xx}} is lost.
In any event, solving this will take better eyes than mine.
> graph queries fail to preserve text:query 'lang:xx' arg
> -------------------------------------------------------
>
> Key: JENA-1439
> URL: https://issues.apache.org/jira/browse/JENA-1439
> Project: Apache Jena
> Issue Type: Bug
> Components: Jena
> Affects Versions: Jena 3.5.0
> Environment: Jena 3.6.0-SNAPSHOT
> Reporter: Code Ferret
> Assignee: Andy Seaborne
> Attachments: TEST_TEXT_001.trig, TEST_TEXT_002.trig,
> TRACING-jena-text-W-cache-W-graph-lang-FUSEKI-3.6.0-SNAPSHOT.txt
>
>
> Jena-text queries that iterate over graphs, such as:
> {code}
> select ?g ?s ?lit
> where {
> graph ?g { (?s ?sc ?lit) text:query (skos:prefLabel "one" "lang:xx") }
> .
> }
> {code}
> fail to pass the {{lang:xx}} after the first graph leading to erroneous
> results.
> A file with configuration, query, trace logging and results is attached along
> with example trig files,
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)