Edit

Share via


Tutorial: Create a graph

Note

This feature is currently in public preview. This preview is provided without a service-level agreement, and isn't recommended for production workloads. Certain features might not be supported or might have constrained capabilities. For more information, see Supplemental Terms of Use for Microsoft Azure Previews.

In this tutorial step, you create a graph model and load data from OneLake. A graph model is the foundation for building your graph and defines the structure of your nodes and edges.

This step assumes you already loaded the sample data into a lakehouse within your workspace.

Create a graph model

  1. In Microsoft Fabric, select the workspace where you want to create the graph model.

  2. Select + New item.

  3. Select Analyze and train data > Graph model (preview).

    Screenshot showing the new item menu with the option to select Graph model (preview).

    Tip

    Alternatively, enter "graph" in the search box and press Enter to search for graph items.

  4. Enter a name for your graph model (for example, "AdventureWorksGraph") and select Create.

After creating the graph model, you're taken to the graph view where you can see Save, Get data, Add node, and Add edge buttons.

Load data into the graph

To load data into your graph from OneLake, follow these steps:

  1. In your graph model, select Get data.

  2. From the OneLake catalog, select the data from Fabric that you want to use in your graph.

    Screenshot showing the data selection menu in OneLake.

  3. Select Connect.

  4. Select the data tables you want to use. In this tutorial, select all the Adventure Works tables you previously loaded into your lakehouse. Then select Load.

You should now see the data available for use in your graph.

Screenshot showing the data view in the graph model.

Next step