Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

display association direction #14

Open
porosnie opened this issue May 24, 2020 · 3 comments
Open

display association direction #14

porosnie opened this issue May 24, 2020 · 3 comments
Labels
enhancement New feature or request

Comments

@porosnie
Copy link

it would be nice to show also the direction of an association:

  • for all associations that have parent, arrow towards the central feature
  • for all other associations (they are direct), arrow from the central feature towards related features

However, I do not know if there is the possibility to use arrows on the graph connections.

@antavelos antavelos added the enhancement New feature or request label May 25, 2020
@antavelos
Copy link
Collaborator

Yes, it is possible to draw arrows on the graph.

I'm not sure I understand the directions though. Could you please explain it a bit further?

Also the associations displayed in the graph are a mix of original ones and extensions. Should we differentiate among them?

@porosnie
Copy link
Author

I realise that I forgot an essential word in my first bullet point. It shoudl read:

  • for all associations that have an "mxia" parent element, arrow towards the central feature.

That's because the mxia:... element is used when the associations are coded from the other end in the original file.

If we consider the association between AirportHeliport and the OrganisationAuthority as an example. This association is visible in the original AIXM file only from the AirportHeliport, because it is the feature that caries the xlink:href towards the OrganisationAuthority. Therefore, I would like the line to have an arrow from AirportHeliport towards OrganisationAuthority.

I think that this can be based on the information that is already in the Skeleton file. The AirportHeliport has a child element
<aixm:responsibleOrganisation_OPERATE xlink:href="urn:uuid:74efb6ba-a52a-46c0-a16b-03860d356882"/>
This is not an mxia:... element, therefore it comes directly from the original file. Thus, the arrow should be from AirportHeliport towards OrganisationAuthority.

The AirportHeliport also has a child element: <mxia:theRunway xlink:href="urn:uuid:1e22a662-0601-43cc-a7ef-8402885a4f2f"/>. This is an mxia:... element, therefore the association is "reverse". It should have an arrow from Runway towards AirportHeliport.

@antavelos
Copy link
Collaborator

Ok, now it's clear. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants