Connect to Stardog
The Stardog Enterprise Knowledge Graph Platform provides a foundation for a flexible semantic data layer designed to answer complex queries across data silos.
You can integrate your Databricks SQL warehouses (formerly Databricks SQL endpoints) and Azure Databricks clusters with Stardog.
Connect to Stardog using Partner Connect
Note
Partner Connect only supports integrating SQL warehouses with Stardog. To integrate a cluster with Stardog, connect to Stardog manually.
To connect to Stardog using Partner Connect, do the following:
In your Stardog account, follow the prompt to update your Stardog profile. Check the boxes to agree to the Stardog terms of use and privacy policy, then click Update.
Click Get a Stardog Cloud Instance.
Click Start Free, check the box to agree to the Stardog terms of service, then click Checkout.
Under Action, click the kebab menu , then click Create datasource.
The Manage Databricks Datasource dialog opens.
Optionally edit the data source name, then click Create Datasource.
You can find videos about how to use starter kits with sample data in your Stardog account, or you can click your Azure Databricks connection to access Stardog applications to start modeling your data.
Connect to Stardog manually
This section describes how to connect to Stardog manually.
Note
You can use Partner Connect to simplify the connection experience for a SQL warehouse.
Requirements
Before you connect to Stardog manually, you need the following:
A cluster or SQL warehouse in your Azure Databricks workspace.
The connection details for your cluster or SQL warehouse, specifically the Server Hostname, Port, and HTTP Path values.
An Azure Databricks personal access token or a Microsoft Entra ID (formerly Azure Active Directory) token.. To create a personal access token, follow the steps in Azure Databricks personal access tokens for workspace users.
Note
As a security best practice, when you authenticate with automated tools, systems, scripts, and apps, Databricks recommends that you use personal access tokens belonging to service principals instead of workspace users. To create tokens for service principals, see Manage tokens for a service principal.
Steps to connect
To connect to Stardog manually, do the following:
Create a Stardog account.
In your Stardog account, follow the prompt to update your Stardog profile. Check the boxes to agree to the Stardog terms of use and privacy policy, then click Update.
Follow the prompt to verify your email address.
Click Get a Stardog Cloud Instance.
Click Start Free, check the box to agree to the Stardog terms of service, then click Checkout.
Click your Azure Databricks connection.
Click Stardog Studio.
Stardog Studio opens in a new tab.
Click Data.
Click + Data source.
In the Add Data Source dialog box, enter a name for your data source.
For Data Source Type, select Databricks and Spark SQL from the drop-down list.
For JDBC Connection URL, enter the connection details from the requirements.
For JDBC Username, enter
token
.For JDBC Password, enter the personal access token from the requirements.
For JDBC Driver Class, enter
com.simba.spark.jdbc.Driver
.Click Add.
Next steps
- Create Knowledge Graph models in Stardog Designer.
- Visualize models in Stardog Explorer.
Additional resources
Explore the following Stardog resources: