Github user xristy commented on the issue:
https://github.com/apache/jena/pull/335
Assuming the PR is accepted I'll update the jena-text doc to reflect that
there is an additional output arg for `text:query`. An example is:
select ?g ?s ?lit ?sc
where {
(?s ?sc ?lit ?g) text:query (skos:altLabel "one" 100 "lang:en") .
}
where the `?g` reports the graph in which the matching triples occur. This
is likely to be rather more performant than iterating over all graphs or
collecting the graph URIs after the fact.
---