This is a solution for a particular use case when you need to bundle certain JS libraries to be used in the validator without relying on the availability of a remote resource.
It is also a solution when the JS code of a library is generated dynamically.
It is also an useful mechanism when testing shacl-js related logic.
The same functionality can be achieved in the Java version by provided a custom JSScriptEngineFactory to return a custom resolver for script URLs.
This is a solution for a particular use case when you need to bundle certain JS libraries to be used in the validator without relying on the availability of a remote resource.
It is also a solution when the JS code of a library is generated dynamically.
It is also an useful mechanism when testing shacl-js related logic.
The same functionality can be achieved in the Java version by provided a custom JSScriptEngineFactory to return a custom resolver for script URLs.