Importing multiple records from a single XML file

Purpose

To import multiple records from a single XML file into a knowledge model.

Theory

In this exercise, you will connect an XML data source to a knowledge model in order to import multiple records; this XML data source could look like the following example:

 <Shapes>
 <Shape>
 ...
 </Shape>
 <Shape>
 ...
 </Shape>
 ...
</Shapes> 

This exercise demonstrates that data from an XML structure can be separated and processed in different ways.

Actions

To import multiple records from a single XML file into a knowledge model:

  1. Click the New Model button, to display a blank knowledge model screen.
  2. Right click on a blank space on the screen and select File > XML File from the context menu.
  3. Type Source in the Create XML File box and click OK.
    A new node called Source is created.
  4. Right click on the Source node and select Properties from the context menu.
  5. Click the Minimise Down button in the top left corner of the knowledge model, to minimise it.
  6. Find the com.erudine.inbox.filePath property.
  7. Click once in the right hand column of the com.erudine.inbox.filePath property.
    The row for that property now displays an ellipsis (...) to the right of the column.
  8. Click on the ellipsis ( ... ) to display the Select a file dialog box.
  9. Navigate to the Training\Introduction\XML3 folder in the Erudine root directory and click the Open button.
  10. Select the Shapes.xml file and click the Select button.
    This file and location are now displayed alongside the com.erudine.inbox.filePath property.
  11. In the Properties screen, click the Apply button to save the changes and return to the Knowledge Model screen.
  12. Double click on the Source node to display the Conclusion & Justification screen.
    The contents of the XML file are displayed as a conceptual graph.
  13. Close the knowledge model without saving changes.

Platform: all
EBE Version: 2.4
Category: Introduction Guide
Author: Patrick Peisker


Browse Space

- Pages
- News
- Labels
- Attachments
- Bookmarks
- Mail
- Activity
- Advanced

Explore Confluence

- Popular Labels
- Notation Guide

Your Account

Log In

 

Other Features

Add Content