eroux commented on issue #1533:
URL: https://github.com/apache/jena/issues/1533#issuecomment-1247796834

   The actual query that I'm debugging is using a jena-text query:
   
   ```sparql
   prefix bdr:   <http://purl.bdrc.io/resource/>
   prefix adm:   <http://purl.bdrc.io/ontology/admin/>
   prefix bda:   <http://purl.bdrc.io/admindata/>
   prefix rdfs:  <http://www.w3.org/2000/01/rdf-schema#>
   prefix text:  <http://jena.apache.org/text#>
   
   SELECT  ?res 
   WHERE {
     ?res text:query ( rdfs:label "\"A concise historical account of the 
techniques\""@en ) .
     ?resRepAdm  adm:adminAbout  ?res ;
             adm:status      bda:StatusReleased
   }
   ```
   
   The performance of the text query is very good and it only returns one 
result (as seen in the stacktrace below), but the rest of the BGP is very slow 
(several seconds, this is after running it multiple times). I wanted to debug 
further but I can't run a jena-text query in `tdbquery` and I can't get exec 
logs with Fuseki because of https://github.com/apache/jena/issues/1535 so I'm 
not sure what to do... I suspect what slows things down is the same thing as in 
the query with `BIND` but I can't be sure.
   
   Stacktrace:
   
   ```
   08:54:02,094 INFO  Fuseki          :: [3] POST 
http://buda4.bdrc.io:13180/fuseki/corerw/
   08:54:02,095 INFO  Fuseki          :: [3] Query = prefix bdr:   
<http://purl.bdrc.io/resource/> prefix adm:   
<http://purl.bdrc.io/ontology/admin/> prefix bda:   
<http://purl.bdrc.io/admindata/> prefix rdfs:  
<http://www.w3.org/2000/01/rdf-schema#> prefix text:  
<http://jena.apache.org/text#>  SELECT  ?res  WHERE {   ?res text:query ( 
rdfs:label "\"A concise historical account of the techniques\""@en ) .   
?resRepAdm  adm:adminAbout  ?res ;           adm:status      bda:StatusReleased 
}
   08:54:02,098 TRACE TextQueryPF     :: exec: ?res text:query 
(<http://www.w3.org/2000/01/rdf-schema#label> "\"A concise historical account 
of the techniques\""@en)
   08:54:02,098 TRACE TextQueryPF     :: objectToStruct: x.isURI(), prop: 
http://www.w3.org/2000/01/rdf-schema#label at idx: 0
   08:54:02,098 TRACE TextQueryPF     :: objectToStruct: PROPERTY at 0 IS 
http://www.w3.org/2000/01/rdf-schema#label WITH pList: null
   08:54:02,098 TRACE TextQueryPF     :: prepareQuery with subject: ?res; 
params: ( properties: [http://www.w3.org/2000/01/rdf-schema#label]; query: "A 
concise historical account of the techniques"; limit: -1; lang: en; highlight: 
null )
   08:54:02,098 DEBUG TextQueryPF     :: Text query: "A concise historical 
account of the techniques" (-1)
   08:54:02,099 TRACE TextQueryPF     :: Caching Text query: "A concise 
historical account of the techniques" with key: >>?res -1 
[http://www.w3.org/2000/01/rdf-schema#label] "A concise historical account of 
the techniques" en null<< in cache: 
org.apache.jena.atlas.lib.cache.CacheGuava@a092cf5
   08:54:02,125 TRACE TextIndexLucene :: query$ PROCESSING LIST of properties: 
[http://www.w3.org/2000/01/rdf-schema#label]; Lucene queryString: ; textFields: 
[rdfsLabel] 
   08:54:02,125 TRACE TextIndexLucene :: query$ PROCESSED LIST of properties: 
[http://www.w3.org/2000/01/rdf-schema#label] with resulting qString: 
rdfsLabel_en:"A concise historical account of the techniques" 
rdfsLabel_bo-x-mixed:"A concise historical account of the techniques" 
rdfsLabel_bo-x-phon-en-m-tbrc:"A concise historical account of the techniques" 
rdfsLabel_bo-x-phon-en-m-thlib:"A concise historical account of the techniques" 
rdfsLabel_en-x-mixed:"A concise historical account of the techniques" 
rdfsLabel_bo-x-phon-en:"A concise historical account of the techniques"  
   08:54:02,125 TRACE QueryMultilingualAnalyzer :: getWrappedAnalyzer langTag: 
en, fieldName: rdfsLabel_en, analyzer: 
io.bdrc.lucene.en.BDRCEnglishAnalyzer@5c112eea
   08:54:02,125 TRACE QueryMultilingualAnalyzer :: getWrappedAnalyzer langTag: 
en, fieldName: rdfsLabel_en, analyzer: 
io.bdrc.lucene.en.BDRCEnglishAnalyzer@5c112eea
   08:54:02,126 TRACE QueryMultilingualAnalyzer :: getWrappedAnalyzer langTag: 
en, fieldName: rdfsLabel_en, analyzer: 
io.bdrc.lucene.en.BDRCEnglishAnalyzer@5c112eea
   08:54:02,126 TRACE QueryMultilingualAnalyzer :: getWrappedAnalyzer langTag: 
en, fieldName: rdfsLabel_en, analyzer: 
io.bdrc.lucene.en.BDRCEnglishAnalyzer@5c112eea
   08:54:02,126 TRACE QueryMultilingualAnalyzer :: getWrappedAnalyzer langTag: 
en, fieldName: rdfsLabel_bo-x-mixed, analyzer: 
io.bdrc.lucene.en.BDRCEnglishAnalyzer@5c112eea
   08:54:02,126 TRACE QueryMultilingualAnalyzer :: getWrappedAnalyzer langTag: 
en, fieldName: rdfsLabel_bo-x-mixed, analyzer: 
io.bdrc.lucene.en.BDRCEnglishAnalyzer@5c112eea
   08:54:02,127 TRACE QueryMultilingualAnalyzer :: getWrappedAnalyzer langTag: 
en, fieldName: rdfsLabel_bo-x-phon-en-m-tbrc, analyzer: 
io.bdrc.lucene.en.BDRCEnglishAnalyzer@5c112eea
   08:54:02,127 TRACE QueryMultilingualAnalyzer :: getWrappedAnalyzer langTag: 
en, fieldName: rdfsLabel_bo-x-phon-en-m-tbrc, analyzer: 
io.bdrc.lucene.en.BDRCEnglishAnalyzer@5c112eea
   08:54:02,127 TRACE QueryMultilingualAnalyzer :: getWrappedAnalyzer langTag: 
en, fieldName: rdfsLabel_bo-x-phon-en-m-thlib, analyzer: 
io.bdrc.lucene.en.BDRCEnglishAnalyzer@5c112eea
   08:54:02,127 TRACE QueryMultilingualAnalyzer :: getWrappedAnalyzer langTag: 
en, fieldName: rdfsLabel_bo-x-phon-en-m-thlib, analyzer: 
io.bdrc.lucene.en.BDRCEnglishAnalyzer@5c112eea
   08:54:02,128 TRACE QueryMultilingualAnalyzer :: getWrappedAnalyzer langTag: 
en, fieldName: rdfsLabel_en-x-mixed, analyzer: 
io.bdrc.lucene.en.BDRCEnglishAnalyzer@5c112eea
   08:54:02,128 TRACE QueryMultilingualAnalyzer :: getWrappedAnalyzer langTag: 
en, fieldName: rdfsLabel_en-x-mixed, analyzer: 
io.bdrc.lucene.en.BDRCEnglishAnalyzer@5c112eea
   08:54:02,128 TRACE QueryMultilingualAnalyzer :: getWrappedAnalyzer langTag: 
en, fieldName: rdfsLabel_bo-x-phon-en, analyzer: 
io.bdrc.lucene.en.BDRCEnglishAnalyzer@5c112eea
   08:54:02,128 TRACE QueryMultilingualAnalyzer :: getWrappedAnalyzer langTag: 
en, fieldName: rdfsLabel_bo-x-phon-en, analyzer: 
io.bdrc.lucene.en.BDRCEnglishAnalyzer@5c112eea
   08:54:02,129 DEBUG TextIndexLucene :: query$ with LIST: 
[http://www.w3.org/2000/01/rdf-schema#label]; INPUT qString: rdfsLabel_en:"A 
concise historical account of the techniques" rdfsLabel_bo-x-mixed:"A concise 
historical account of the techniques" rdfsLabel_bo-x-phon-en-m-tbrc:"A concise 
historical account of the techniques" rdfsLabel_bo-x-phon-en-m-thlib:"A concise 
historical account of the techniques" rdfsLabel_en-x-mixed:"A concise 
historical account of the techniques" rdfsLabel_bo-x-phon-en:"A concise 
historical account of the techniques" ; with queryParserType: QueryParser; 
parseQuery with 
PerFieldAnalyzerWrapper({lang=org.apache.lucene.analysis.core.KeywordAnalyzer@410126b8,
 uri=org.apache.lucene.analysis.core.KeywordAnalyzer@c1bed9e, 
graph=org.apache.lucene.analysis.core.KeywordAnalyzer@715c680a}, 
default=QueryMultilingualAnalyzer(default=org.apache.lucene.analysis.standard.StandardAnalyzer@5c16f550))
 YIELDS: rdfsLabel_en:"? concis histor account ? ? techniqu" rdfsLabel_bo
 -x-mixed:"? concis histor account ? ? techniqu" 
rdfsLabel_bo-x-phon-en-m-tbrc:"? concis histor account ? ? techniqu" 
rdfsLabel_bo-x-phon-en-m-thlib:"? concis histor account ? ? techniqu" 
rdfsLabel_en-x-mixed:"? concis histor account ? ? techniqu" 
rdfsLabel_bo-x-phon-en:"? concis histor account ? ? techniqu"; parsed query: 
rdfsLabel_en:"? concis histor account ? ? techniqu" rdfsLabel_bo-x-mixed:"? 
concis histor account ? ? techniqu" rdfsLabel_bo-x-phon-en-m-tbrc:"? concis 
histor account ? ? techniqu" rdfsLabel_bo-x-phon-en-m-thlib:"? concis histor 
account ? ? techniqu" rdfsLabel_en-x-mixed:"? concis histor account ? ? 
techniqu" rdfsLabel_bo-x-phon-en:"? concis histor account ? ? techniqu"; limit: 
10000
   08:54:02,135 TRACE TextIndexLucene :: simpleResults[1681462]: fields: 
[rdfsLabel] doc: 
Document<stored,indexed,tokenized,indexOptions=DOCS<uri:http://purl.bdrc.io/resource/TTCA153CCA27F183B6>
 
stored,indexed,tokenized,indexOptions=DOCS<graph:http://purl.bdrc.io/graph/MW1KG9453>
 stored,indexed,tokenized<rdfsLabel:a concise historical account of the 
techniques of esoteric realization of the nyingmapa and other buddhist 
traditions of tibet> 
stored,indexed,tokenized,omitNorms,indexOptions=DOCS<lang:en> 
stored,indexed,tokenized,omitNorms,indexOptions=DOCS<uid:45e971b8c837181f32d6940b805dfaf529b2c16a000f751c0f0ceb3296e63bd1>>
   08:54:02,135 TRACE TextIndexLucene :: simpleResults[1681453]: fields: 
[rdfsLabel] doc: 
Document<stored,indexed,tokenized,indexOptions=DOCS<uri:http://purl.bdrc.io/resource/TTA0994950580DBE57>
 
stored,indexed,tokenized,indexOptions=DOCS<graph:http://purl.bdrc.io/graph/MW1KG9453>
 stored,indexed,tokenized<rdfsLabel:A concise historical account of the 
techniques of esoteric realisation of the Nyingmapa and other Buddhist 
traditions of Tibet :being the text of Sngaʾgyur rdo rje theg pa gtso bor gyur 
paʾi gtam mdor bsdus legs bshad padma dkar poʾi rdzing bu /by Zhe-chen 
Rgyal-tshab Padma-rnam-rgyal.> 
stored,indexed,tokenized,omitNorms,indexOptions=DOCS<lang:en-x-mixed> 
stored,indexed,tokenized,omitNorms,indexOptions=DOCS<uid:1e3406cf941c27df4e5110bf498ffce0e495b2b8df1ced21cd77dc2cda16410b>>
   08:54:02,139 TRACE TextQueryPF     :: resultsToQueryIterator CALLED with 
results: [TextHit{node=http://purl.bdrc.io/resource/TTCA153CCA27F183B6 
literal="a concise historical account of the techniques of esoteric realization 
of the nyingmapa and other buddhist traditions of tibet"@en score=7.712467 
graph=http://purl.bdrc.io/graph/MW1KG9453 
prop=http://www.w3.org/2000/01/rdf-schema#label}, 
TextHit{node=http://purl.bdrc.io/resource/TTA0994950580DBE57 literal="A concise 
historical account of the techniques of esoteric realisation of the Nyingmapa 
and other Buddhist traditions of Tibet :being the text of Sngaʾgyur rdo rje 
theg pa gtso bor gyur paʾi gtam mdor bsdus legs bshad padma dkar poʾi rdzing bu 
/by Zhe-chen Rgyal-tshab Padma-rnam-rgyal."@en-x-mixed score=7.5184393 
graph=http://purl.bdrc.io/graph/MW1KG9453 
prop=http://www.w3.org/2000/01/rdf-schema#label}]
   08:54:04,187 DEBUG ConNeg          :: Accept request: 
application/sparql-results+json,*/*;q=0.9
   08:54:04,187 DEBUG ConNeg          :: Content type chosen: 
[application/sparql-results+json]
   08:54:04,187 TRACE Fuseki          :: Content-Type for response: 
application/sparql-results+json; charset=utf-8
   08:54:04,188 INFO  Fuseki          :: [3] 200 OK (2.093 s)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to