eroux opened a new issue, #1535: URL: https://github.com/apache/jena/issues/1535
### Version 4.6.1 ### What happened? I have the following `log4j2.properties` file (I changed the extension so that I can upload it to Github): [log4j2.properties.txt](https://github.com/apache/jena/files/9573114/log4j2.properties.txt) It is taken into account by Fuseki since I'm getting the log file and the TRACE messages from the jena-text part. Unfortunately I can't see anything related to `org.apache.jena.arq.exec`. Looking at the code, I suspect this is because: - the context for TDB [is just ARQ.context](https://github.com/apache/jena/blob/1724b45f83c6cff9826c4d6a0f7b616d46eba4ee/jena-tdb/src/main/java/org/apache/jena/tdb/TDB.java#L118) - the ARQ context is initialized with the `defaultSettings()` that [don't contain](https://github.com/apache/jena/blob/1022a46abc8f09f18b908e0ee03708f3b984b81c/jena-arq/src/main/java/org/apache/jena/query/ARQ.java#L652) `ARQ.symLogExec` - the query execution calls `Explain.explain` which looks at `ARQ.symLogExec` in the context [here](https://github.com/apache/jena/blob/1022a46abc8f09f18b908e0ee03708f3b984b81c/jena-arq/src/main/java/org/apache/jena/sparql/mgt/Explain.java#L317) - and thus explains doesn't write anything in the log This is different with the command line `tdbquery` since it sets this in the context [here](https://github.com/apache/jena/blob/31dc0d328c4858401e5d3fa99702c97eba0383a0/jena-cmds/src/main/java/arq/query.java#L125). I'm not sure what the best fix for this would be but perhaps having TDB read a global property `org.apache.jena.arq.exec.log.level` would work, I could invoke Fuseki with `-Dorg.apache.jena.arq.exec.log.level=ALL` ### Relevant output and stacktrace ```shell 07:55:17,342 INFO Fuseki :: [1] Query = PREFIX bd: <http://www.bigdata.com/rdf#> PREFIX ad: <http://schemas.talis.com/2005/address/schema#> prefix : <http://purl.bdrc.io/ontology/core/> prefix adm: <http://purl.bdrc.io/ontology/admin/> prefix bdd: <http://purl.bdrc.io/data/> prefix bdo: <http://purl.bdrc.io/ontology/core/> prefix bdr: <http://purl.bdrc.io/resource/> prefix bdan: <http://purl.bdrc.io/annotation/> prefix bdac: <http://purl.bdrc.io/anncollection/> prefix tbr: <http://purl.bdrc.io/ontology/toberemoved/> prefix tmp: <http://purl.bdrc.io/ontology/tmp/> prefix aut: <http://purl.bdrc.io/ontology/ext/auth/> prefix adr: <http://purl.bdrc.io/resource-nc/auth/> prefix dila: <http://authority.dila.edu.tw/person/?fromInner=> prefix bf: <http://id.loc.gov/ontologies/bibframe/> prefix dcterms: <http://purl.org/dc/terms/> prefix f: <java:io.bdrc.libraries.sparql.functions.> prefix foaf: <http://xmlns.com/foaf/0.1/> prefix iiif2: <http://ii if.io/api/presentation/2#> prefix iiif3: <http://iiif.io/api/presentation/3#> prefix owl: <http://www.w3.org/2002/07/owl#> prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> prefix skos: <http://www.w3.org/2004/02/skos/core#> prefix vcard: <http://www.w3.org/2006/vcard/ns#> prefix xsd: <http://www.w3.org/2001/XMLSchema#> prefix text: <http://jena.apache.org/text#> prefix oa: <http://www.w3.org/ns/oa#> prefix as: <http://www.w3.org/ns/activitystreams#> prefix ldp: <http://www.w3.org/ns/ldp#> prefix sh: <http://www.w3.org/ns/shacl#> prefix rsh: <http://purl.bdrc.io/shacl/core/shape/> prefix bdg: <http://purl.bdrc.io/graph/> prefix bda: <http://purl.bdrc.io/admindata/> prefix dila: <http://purl.dila.edu.tw/resource/> prefix wd: <http://www.wikidata.org/entity/> prefix viaf: <http://viaf.org/viaf/> prefix eftr: <http://purl.84000.co/resource/core/> prefix bds: <http://purl.bdrc.io/ontology/shapes/core /> prefix bdu: <http://purl.bdrc.io/resource-nc/user/> prefix bdou: <http://purl.bdrc.io/ontology/ext/user/> PREFIX tmp: <http://purl.bdrc.io/ontology/tmp/> PREFIX admin: <http://webns.net/mvcb/> PREFIX tm: <http://def.seegrid.csiro.au/isotc211/iso19108/2002/temporal#> PREFIX dr: <http://purl.org/swan/2.0/discourse-relationships/> SELECT ?res WHERE { #bdr:W1KG9453 bdo:instanceReproductionOf ?res . #BIND(bdr:MW1KG9453 as ?res) ?res text:query ( rdfs:label "\"A concise historical account of the techniques\""@en ) . ?resRepAdm adm:adminAbout ?res ; adm:status bda:StatusReleased } 07:55:17,389 TRACE TextQueryPF :: exec: ?res text:query (<http://www.w3.org/2000/01/rdf-schema#label> "\"A concise historical account of the techniques\""@en) 07:55:17,392 TRACE TextQueryPF :: objectToStruct: x.isURI(), prop: http://www.w3.org/2000/01/rdf-schema#label at idx: 0 07:55:17,401 TRACE TextQueryPF :: objectToStruct: PROPERTY at 0 IS http://www.w3.org/2000/01/rdf-schema#label WITH pList: null 07:55:17,404 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 ) 07:55:17,411 DEBUG TextQueryPF :: Text query: "A concise historical account of the techniques" (-1) 07:55:17,419 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@36f2a627 07:55:17,538 TRACE TextIndexLucene :: query$ PROCESSING LIST of properties: [http://www.w3.org/2000/01/rdf-schema#label]; Lucene queryString: ; textFields: [rdfsLabel] 07:55:17,538 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" 07:55:17,572 TRACE QueryMultilingualAnalyzer :: getWrappedAnalyzer langTag: en, fieldName: rdfsLabel_en, analyzer: io.bdrc.lucene.en.BDRCEnglishAnalyzer@5c112eea 07:55:17,572 TRACE QueryMultilingualAnalyzer :: getWrappedAnalyzer langTag: en, fieldName: rdfsLabel_en, analyzer: io.bdrc.lucene.en.BDRCEnglishAnalyzer@5c112eea 07:55:17,604 TRACE QueryMultilingualAnalyzer :: getWrappedAnalyzer langTag: en, fieldName: rdfsLabel_en, analyzer: io.bdrc.lucene.en.BDRCEnglishAnalyzer@5c112eea 07:55:17,624 INFO UKUSSpellingVariants :: found resource /uk-us-spellings.csv through regular classloader 07:55:17,724 TRACE QueryMultilingualAnalyzer :: getWrappedAnalyzer langTag: en, fieldName: rdfsLabel_en, analyzer: io.bdrc.lucene.en.BDRCEnglishAnalyzer@5c112eea 07:55:17,730 TRACE QueryMultilingualAnalyzer :: getWrappedAnalyzer langTag: en, fieldName: rdfsLabel_bo-x-mixed, analyzer: io.bdrc.lucene.en.BDRCEnglishAnalyzer@5c112eea 07:55:17,731 TRACE QueryMultilingualAnalyzer :: getWrappedAnalyzer langTag: en, fieldName: rdfsLabel_bo-x-mixed, analyzer: io.bdrc.lucene.en.BDRCEnglishAnalyzer@5c112eea 07:55:17,731 TRACE QueryMultilingualAnalyzer :: getWrappedAnalyzer langTag: en, fieldName: rdfsLabel_bo-x-phon-en-m-tbrc, analyzer: io.bdrc.lucene.en.BDRCEnglishAnalyzer@5c112eea 07:55:17,731 TRACE QueryMultilingualAnalyzer :: getWrappedAnalyzer langTag: en, fieldName: rdfsLabel_bo-x-phon-en-m-tbrc, analyzer: io.bdrc.lucene.en.BDRCEnglishAnalyzer@5c112eea 07:55:17,732 TRACE QueryMultilingualAnalyzer :: getWrappedAnalyzer langTag: en, fieldName: rdfsLabel_bo-x-phon-en-m-thlib, analyzer: io.bdrc.lucene.en.BDRCEnglishAnalyzer@5c112eea 07:55:17,732 TRACE QueryMultilingualAnalyzer :: getWrappedAnalyzer langTag: en, fieldName: rdfsLabel_bo-x-phon-en-m-thlib, analyzer: io.bdrc.lucene.en.BDRCEnglishAnalyzer@5c112eea 07:55:17,733 TRACE QueryMultilingualAnalyzer :: getWrappedAnalyzer langTag: en, fieldName: rdfsLabel_en-x-mixed, analyzer: io.bdrc.lucene.en.BDRCEnglishAnalyzer@5c112eea 07:55:17,733 TRACE QueryMultilingualAnalyzer :: getWrappedAnalyzer langTag: en, fieldName: rdfsLabel_en-x-mixed, analyzer: io.bdrc.lucene.en.BDRCEnglishAnalyzer@5c112eea 07:55:17,734 TRACE QueryMultilingualAnalyzer :: getWrappedAnalyzer langTag: en, fieldName: rdfsLabel_bo-x-phon-en, analyzer: io.bdrc.lucene.en.BDRCEnglishAnalyzer@5c112eea 07:55:17,734 TRACE QueryMultilingualAnalyzer :: getWrappedAnalyzer langTag: en, fieldName: rdfsLabel_bo-x-phon-en, analyzer: io.bdrc.lucene.en.BDRCEnglishAnalyzer@5c112eea 07:55:17,737 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 07:55:17,824 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>> 07:55:17,826 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>> 07:55:17,837 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}] 07:55:20,954 DEBUG ConNeg :: Accept request: application/sparql-results+json,*/*;q=0.9 07:55:20,954 DEBUG ConNeg :: Content type chosen: [application/sparql-results+json] 07:55:20,957 TRACE Fuseki :: Content-Type for response: application/sparql-results+json; charset=utf-8 07:55:20,965 INFO Fuseki :: [1] 200 OK (3.645 s) ``` ### Are you interested in making a pull request? Maybe -- 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]
