Skip to content

Use an entity as reltionship (SIRIUS) #291

Answered by pcdavid
RaulPiqueras asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, for this case you need to use so-called "Element-Based Edges":

Like a Node Mapping they use a Semantic Candidates Expression and a Domain Class to identify the model elements they represents (in your case, instances of Goal_RelationShip).

They also need a Source Finder Expression and a (set of) Source Mapping (resp. Target Finder Expression and Target Mapping) to identify, from the instance (of Goal_RelationShip) the edge represents, which nodes are the source (resp. target) to point to.

See the documentation for more details.

You can also have a look at how the odesign of Ecore Tools uses both kinds of edges:

  • inheritance relationships (the EClass.eSuperTypes references) are modeled…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by lfasani
Comment options

You must be logged in to vote
1 reply
@pcdavid
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants