Table of Contents
Editing Data Trees
Data Trees are created in the Data Tree Editor. They are also created during
RDF import. Prior to editing
a Data Tree in the Data Tree Editor, all
Entities and
Relationships must be present. Use the Schema Editor to define these.
For more information about Data Trees look at
Creating a Data Tree
Your Data Tree may already exist. If so it will be located under the
Schema
node in the
Projects window.
If not you will need to create it. To do this:
- Right click on the Schema Node in the Projects window.
- Choose 'New Data Tree' from the popup menu.
- Specify the Entity that will be the root element of the Data Tree.
- Specify a display name for the Data Tree. Typically this will be the display
name of the root Entity, but does not have to be.
Opening the Data Tree Editor
- Right click on the Data Tree Node in the Project Explorer.
- Choose 'Edit Data Tree' from the popup menu.
- The Data Tree Editor will open in the main window.
Adding a child vertex
- Select the vertex to which the child is to added.
- Click on the 'Add New Edge' icon in the toolbar:

- The Add Edge wizard will open.
- Define the new edge, either by specifying the Entity and then selecting
from the valid Relationships for this Entity (there will probably only
be one), or by selecting one of the available Relationships (these are
2 ways of achieving the same thing).
- Click 'Finish' and the child edge will be added.
Removing a child vertex
- Select the vertex to which is to be removed.
- Click on the 'Delete Edge' icon in the toolbar:
.
- A confirm dialog will open.
- Click 'OK' and the child edge will be removed.
Note: the Relationship and child Entity are unaffected. They are not deleted,
just removed from this Data Tree.
Create detail table
A common activity is to create a new detail Entity (table) for an
existing master Entity. To do this you would need to do these 3 steps:
- Create the new Entity using the Schema editor
- Create the Relationship between the 2 Entities using the Schema editor
- Add the new edge to the Data Tree using the Data Tree editor.
Whilst all these steps are necessary, it is a bit laborious to go through these
steps each time. IJC provides a simplified approach to doing this by allowing a
detail table to be created in a single step. This is the 'Create detail table...'
action that is available from the Data Tree node in the projects window and in the
Schema and Data Tree Editors. This action will open a one step wizard that contains
the commonly used options for this process:
- The name to be used for the table and entity
- The table type (JChem or Standard)
- If a JChem table then the type of contents (molecules, reactions, any structures),
and the JChem property table name.
- The relationship type (one-to-one, one-to-many, many-to-one, many-to-many)
- The relationship name
All other settings are generated from default values or derived from the values
you have specified.
Note: as default or derived values are used for several settings
then this approach is not as flexible as the 3-step approach. You will need to use
the 3-step approach if the settings used are not what you require.
Copyright © 1998-2008
ChemAxon Ltd.
All rights reserved.