TopQuadrant / shacl-js

SHACL API in JavaScript
Apache License 2.0
70 stars 18 forks source link

Adding caching mechanism for JS libraries #13

Closed antoniogarrote closed 7 years ago

antoniogarrote commented 7 years ago

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.