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

Add 'doubled' shape style #204

Open
kinto-b opened this issue Jun 4, 2023 · 2 comments
Open

Add 'doubled' shape style #204

kinto-b opened this issue Jun 4, 2023 · 2 comments

Comments

@kinto-b
Copy link

kinto-b commented Jun 4, 2023

Hi,

Fantastic piece of software! Thanks for your work

I would like to use nomnoml to produce ERDs. However, it is not currently possible to refer to weak entities, identifying relationships, etc. (in the notation below). One way to make these possible would be to add a 'doubled' outline style to complement 'dashed' so that, e.g.,

#. rel_id doubled visual = rhomb 
[E1] - [<rel_id> identifies] - [E2] 

would yield something like

image

It would be ideal if something similar could apply to connections so, e.g.,

#. rel visual = rhomb 
[E1] =N [<rel> owns] 1- [E2] 

would yield something like

image

The notation I have in mind is as follows:

image

@skanaar
Copy link
Owner

skanaar commented Jun 5, 2023

I like it! This should be possible. Some questions related to the more complex shapes like database remain.

Could you share a link to some ERD diagram specification so I can read up on it?

@kinto-b
Copy link
Author

kinto-b commented Jun 5, 2023

Ah great to hear!

There's no single standard for ERD notation that I know of, unfortunately. But this one -- sometimes called the Chen notation -- is fairly common. It is used in many textbooks on database systems. For example, see Elmasri & Navathe, Fundamentals of Database Systems, 7th edition, ch.3 (esp. p.83 where the notation is summarised) and appendix A. (Link: https://amirsmvt.github.io/Database/Static_files/Fundamental_of_Database_Systems.pdf)

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

No branches or pull requests

2 participants