HomeGetting StartedInstallation & SetupDevelopment & IntegrationDeployment & OperationsData ManagementTechnical SupportPlatform Updates
DocsDevelopment & IntegrationDeveloping with Stardogindex

Extending Stardog

This chapter discusses various ways in which you can extend Stardog.


Adding Extensions to Stardog

Stardog's extension mechanisms utilize the JDK ServiceLoader to load new services at runtime and make them available to the various parts of the system.

To register an extension, a file should be placed in META-INF/services whose name is the fully-qualified class name of the extension type. This must be included in the jar file with the compile source of the extension.

The jar then should be placed somewhere in Stardog's classpath, usually either <stardog-installation-directory>/server/ext or a folder specified by the environment variable STARDOG_EXT. Stardog will pick up the implementations on startup by using the JDK ServiceLoader framework.