In this Session…
Before you begin…
How To GraphXR 3. Properties and Extract
Before You Begin…
When we drop Characters.csv on the project space, columns in the spreadsheet (name, houseName, etc) become properties of Character nodes. To show a table of the data, click Table on the Main Menu,,choose the Category tab and Characters node label.
From a property we’ll define a new category and relationship, and extract new nodes and edges that are connected to the original Character nodes.
Let’s switch to Property view. In the Legend, click the Property toggle, and use the dropdown menus to select the Characters category and a property name. A scrollable list is displayed of each unique value for that property in the graph.
The houseName property has just a few unique values, one for each of the great houses (families) in Game of Thrones. Now let’s create nodes for the houses. Open the Transform panel => Extract tab.
The Transform panel includes some of GraphXR’s most powerful capabilities to interactively model your data. Transforms affect the whole graph if nothing is selected. If you make a selection, a transform operates on only those elements.
We’ll create a House category from the houseName property, and a BELONGS_TO relationship in the process that links House nodes to their Character node sources.
Set houseName as a Key so that a single node is created for each unique value of houseName, and not a separate one for every source node. Now click Run.
In the Legend, click the Category and Relationship tabs. You’ll see that a node has been created for each house, and Character nodes are now connected to a House node via edges of the BELONGS_TO relationship.
Click the Property tab, and notice that Character nodes with an empty houseName property value are assigned to a House node labeled not available. If you click the skip empty checkbox before extracting, those Character nodes remain unconnected.
This is a good time to save our work! Open the Project panel => Data tab.
You can also save to the cloud by creating a View. Enter a descriptive name and click Save View. The current view is highlighted.
Now that we’ve saved our progress, let’s go on to Module 4: Link and Filter and bring in more data.
How To GraphXR: Module 4. Link and Filter.