Scripting with JavaScript and ADS

TQ Data Foundation includes a scripting capability to execute server-side JavaScript.

  • Scripts can access and modify the data stored in Data Foundation’s asset collections.

  • Scripts may also communicate with external data sources and web services.

  • Scripts can be entered and executed from the user interface.

  • Scripts may also be used to develop extensions to customize Data Foundation and to automate recurring tasks.

Data Foundation includes a Core API that includes JavaScript objects and functions to work with RDF-based data. Additionally, Data Foundation automatically generates domain-specific JavaScript APIs based on the SHACL shape definitions stored in the ontologies. This technology is called Active Data Shapes (ADS).

Tip

Use the Script Editor Panel of EDG Studio to explore Active Data Shapes in a safe local sandbox.

../_images/ADS-AssignPopulation.gif

Active Data Shapes in Action