mff-uk / dataspecer

https://dataspecer.com
MIT License
23 stars 7 forks source link

SPARQL loader #51

Closed sstenchlak closed 2 years ago

sstenchlak commented 3 years ago

The goal is to implement a Webpack loader for *.sparql files that minimizes and transforms them into a parametrized function replacing the template variables inside them.

skodapetr commented 3 years ago

@sstenchlak Is this resolved by the PR?

sstenchlak commented 3 years ago

Not yet. I'm implementing it next week.

sstenchlak commented 2 years ago

Sorry for the inactivity. Reimplementing a build mechanism of the core library will resolve this issue.

sstenchlak commented 2 years ago

This issue is finally resolved in 47f9b75fe662c075b7748a476e393d2f37a6bacd by implementing custom transpiler compatible with Jest transformers. SPARQL queries are optimized, converted to functions and saved as .js files alongside tsc transpiled files.