Tricia Help
Last edited Oct 19, 2011

Importing wiki pages, type definitions and attribute definitions from EMF files

 

The first time you import a wiki from an EMF file, proceed as follows:

  1. Create a new wiki into which the wiki pages, type definitions and attribute definitions are to be imported.
  2. Open the wiki overview page (Browse this Wiki) and select the action Import EMF.
  3. In the dialog box, select the model file (.ecore) to be imported on your hard drive.
  4. Optional: in the dialog box, select the data file (.xmi) to be imported on your hard drive.
  5. Click Import.
  6. Tricia analyses the .ecore file and creates corresponding type definitions and attribute definitions with consistency rules.
  7. Optional: Tricia analyses the .xmi file and creates corresponding wiki pages with type tags and attributes with values.
  8. Tricia shows the overview page of the wiki type tags and a confirmation message with information about the number of imported wiki pages, type definitions and attribute definitions.

Notes

  • If you repeat the import in the same wiki, if the first import was error-free, type tag definitions, attribute definitions and wiki pages not re-imported or manually created are deleted.
  • Attribute values and integrity conditions not re-imported are retained.
  • The same applies if you do the import in a wiki which is already filled with data.
  • What to do in the event of an error: If an error occurs during the import, there is no rollback; this means that data (e.g. wiki pages, definitions) created before the error are retained and are not deleted.

Transformation rules

The following transformation rules apply to the import:

  • A type definition is created for each ecore concept (ecore class).
  • Ecore attributes are transformed into attribute definitions.
  • The attribute definitions support the following data types: String, Boolean and Date.
  • Ecore data types that Tricia does not recognise are transformed into the data type String.
  • Ecore references (EReference) are transformed into an attribute definition with a corresponding link consistency rule.
  • The multiplicities supported are 0..1, 1, *.
  • Multiplicities that Tricia does not recognise are transformed into the multiplicity *.

0 Comments