Thank you for your submission, an automated scan of your plugin code's revealed the following issues:

### Required

[[1](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/CodeBlockExtractorService.ts#L133)][[2](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/CodeBlockExtractorService.ts#L215)][[3](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/CodeBlockExtractorService.ts#L245)][[4](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/VaultGraphService.ts#L114)][[5](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/MetaGraphService.ts#L127)][[6](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/MetaGraphService.ts#L231)][[7](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/MarkdownErrorReporter.ts#L27)][[8](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/RdfToolsService.ts#L121-L123)][[9](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/RdfToolsService.ts#L534)][[10](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/RdfToolsService.ts#L632)][[11](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/MetaGraphService.test.ts#L270-L280)][[12](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/QueryExecutorService.from-clause-regression.test.ts#L28-L61)][[13](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/QueryExecutorService.from-clause-regression.test.ts#L32-L35)][[14](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/QueryExecutorService.from-clause-regression.test.ts#L84)][[15](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/QueryExecutorService.from-clause-regression.test.ts#L239)][[16](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/RdfToolsService.integration.test.ts#L61-L64)][[17](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/RdfToolsService.integration.test.ts#L137-L140)][[18](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/RdfToolsService.integration.test.ts#L210)][[19](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/ui/SparqlBlockProcessor.ts#L116)]:You should not cast this, instead use a `instanceof` check to make sure that it's actually a file/folder.

[[1](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/MarkdownErrorReporter.ts#L106)][[2](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/RdfToolsService.ts#L191)][[3](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/RdfToolsService.ts#L248)][[4](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/RdfToolsService.ts#L271)][[5](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/RdfToolsService.ts#L715)][[6](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/RdfToolsService.ts#L730)][[7](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/ui/SparqlBlockProcessor.ts#L70)][[8](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/ui/SparqlBlockProcessor.ts#L249)][[9](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/ui/SparqlBlockProcessor.ts#L301)][[10](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/ui/SparqlBlockProcessor.ts#L343)][[11](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/ui/SparqlBlockProcessor.ts#L385)][[12](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/ui/SparqlBlockProcessor.ts#L399)]:Using `innerHTML`, `outerHTML` or similar API's is a security risk. Instead, use the DOM API or the Obsidian helper functions: <https://docs.obsidian.md/Plugins/User+interface/HTML+elements>

[[1](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/ui/SparqlBlockProcessor.ts#L78)][[2](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/ui/SparqlBlockProcessor.ts#L284)][[3](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/ui/SparqlBlockProcessor.ts#L285)][[4](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/ui/SparqlBlockProcessor.ts#L286)][[5](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/ui/SparqlBlockProcessor.ts#L404)][[6](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/ui/SparqlBlockProcessor.ts#L405)][[7](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/ui/SparqlBlockProcessor.ts#L406)][[8](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/ui/SparqlBlockProcessor.ts#L407)][[9](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/ui/SparqlBlockProcessor.ts#L408)][[10](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/ui/SparqlBlockProcessor.ts#L427)][[11](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/ui/SparqlBlockProcessor.ts#L428)][[12](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/ui/SparqlBlockProcessor.ts#L429)][[13](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/ui/SparqlBlockProcessor.ts#L507)][[14](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/ui/SparqlBlockProcessor.ts#L508)][[15](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/ui/SparqlBlockProcessor.ts#L509)][[16](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/ui/SparqlBlockProcessor.ts#L510)][[17](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/ui/SparqlBlockProcessor.ts#L511)]:You should avoid assigning styles via JavaScript or in HTML and instead move all these styles into CSS so that they are more easily adaptable by themes and snippets.


[[1](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/RdfToolsService.ts#L79)][[2](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/RdfToolsService.ts#L100)][[3](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/RdfToolsService.ts#L113)][[4](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/RdfToolsService.ts#L179)][[5](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/RdfToolsService.ts#L221)][[6](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/RdfToolsService.ts#L448)][[7](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/RdfToolsService.ts#L454)][[8](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/RdfToolsService.ts#L468)][[9](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/RdfToolsService.ts#L478)][[10](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/RdfToolsService.ts#L484)][[11](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/RdfToolsService.ts#L606)][[12](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/RdfToolsService.ts#L646)][[13](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/RdfToolsPlugin.ts#L79)][[14](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/RdfToolsPlugin.ts#L89)][[15](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/utils/__tests__/from-clause-debug.test.ts#L19)][[16](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/utils/__tests__/from-clause-debug.test.ts#L20)][[17](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/utils/__tests__/from-clause-debug.test.ts#L21)][[18](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/utils/__tests__/from-clause-debug.test.ts#L22)][[19](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/utils/__tests__/from-clause-debug.test.ts#L23)][[20](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/utils/__tests__/from-clause-debug.test.ts#L39)][[21](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/utils/__tests__/from-clause-debug.test.ts#L40)][[22](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/utils/__tests__/from-clause-debug.test.ts#L41)][[23](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/utils/__tests__/from-clause-debug.test.ts#L42)]:You should consider limiting the number of `console.log`s in your code, to not pollute the dev console.



---

### Optional

[[1](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/GraphService.test.ts#L62)][[2](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/GraphService.test.ts#L125)][[3](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/GraphService.test.ts#L126)][[4](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/GraphService.test.ts#L146)][[5](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/GraphService.test.ts#L147)][[6](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/GraphService.test.ts#L166)][[7](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/GraphService.test.ts#L167)][[8](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/GraphService.test.ts#L200)][[9](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/GraphService.test.ts#L201)][[10](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/GraphService.test.ts#L212)][[11](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/GraphService.test.ts#L216)][[12](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/GraphService.test.ts#L217)][[13](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/GraphService.test.ts#L220)][[14](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/GraphService.test.ts#L236)][[15](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/GraphService.test.ts#L239)][[16](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/GraphService.test.ts#L250)][[17](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/GraphService.test.ts#L253)][[18](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/GraphService.test.ts#L254)][[19](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/GraphService.test.ts#L260)][[20](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/GraphService.test.ts#L268)][[21](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/GraphService.test.ts#L269)][[22](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/GraphService.test.ts#L296)][[23](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/GraphService.test.ts#L297)][[24](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/GraphService.test.ts#L319)][[25](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/GraphService.test.ts#L320)][[26](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/GraphService.test.ts#L325)][[27](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/GraphService.test.ts#L326)][[28](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/GraphService.test.ts#L344)][[29](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/GraphService.test.ts#L348)][[30](https://github.com/shad/rdf-tools/blob/e575387bb499d5e9a9b7de04a6e8f2433fcde787/src/services/__tests__/GraphService.test.ts#L380)] and more :Casting to `any` should be avoided as much as possible.



---



Do <b>NOT</b> open a new PR for re-validation.
Once you have pushed all of the required changes to your repo, the bot will update the labels on this PR within 6 hours.
If you think some of the required changes are incorrect, please comment with `/skip` and the reason why you think the results are incorrect.