Skip to content

URI format of elements #25

@georghinkel

Description

@georghinkel

The comparator finds that nothing from the NMF solution I am building is correct, but inspecting the XMI manually, there is conceptually nothing wrong. This is for example the result for the correctness1 test:

<?xml version="1.0" encoding="utf-8"?>
<xmi:XMI xmi:version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xmi="http://www.omg.org/XMI">
  <relational_:Type name="Integer" xmlns:relational_="Relational" />
  <relational_:Type name="String" xmlns:relational_="Relational" />
  <relational_:Table key="#//2/@col.0" name="Family" xmlns:relational_="Relational">
    <col keyOf="#//2" type="#//0" name="objectId" />
    <col type="#//1" name="name" />
  </relational_:Table>
  <relational_:Table key="#//3/@col.0" name="Member" xmlns:relational_="Relational">
    <col keyOf="#//3" type="#//0" name="objectId" />
    <col type="#//1" name="firstName" />
    <col type="#//0" name="closestFriendId" />
  </relational_:Table>
  <relational_:Table name="Family_members" xmlns:relational_="Relational">
    <col type="#//0" name="FamilyId" />
    <col type="#//0" name="membersId" />
  </relational_:Table>
  <relational_:Table name="Member_emailAddresses" xmlns:relational_="Relational">
    <col type="#//0" name="MemberId" />
    <col type="#//1" name="emailAddresses" />
  </relational_:Table>
</xmi:XMI>

There are two important differences to the reference expected.xmi, though:

  1. The format of the URI is different. Does the comparator support the formatting #//0 or does it have to be /0? Would it be possible to support the format #//0 as well? Is that specified somewhere how the format has to be in these cases?
  2. The order of the model elements is different. Here, I would strongly suggest that this is then a false-positive of the comparator.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions