'What SPARQL library does Wikidata Query Service "Format Query" feature use?

I am working on building SPARQL queries using Python and SPARQLBurger. My queries work fine, and now I want to format (or beautify) queries like Wikidata Query Service does when we click diamond button.

I checked SPARQLWrapper and RDFLib for the feature, but could not find one.

Does anyone know what library is behind this feature?

Thanks!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source