Scripting with JavaScript and ADS

TopBraid EDG includes a scripting capability to execute server-side JavaScript.

  • Scripts can access and modify the data stored in TopBraid’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 TopBraid and to automate recurring tasks.

TopBraid includes a Core API that includes JavaScript objects and functions to work with RDF-based data. Additionally, TopBraid 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 TopBraid EDG Studio to explore Active Data Shapes in a safe local sandbox.

../_images/ADS-AssignPopulation.gif

Active Data Shapes in Action