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

Converting JSON schema to ER Diagrams #367

Closed
smita2006 opened this issue Sep 4, 2023 · 7 comments
Closed

Converting JSON schema to ER Diagrams #367

smita2006 opened this issue Sep 4, 2023 · 7 comments

Comments

@smita2006
Copy link

I have a couple of questions:

  1. Is there a way we can directly convert these common data model json schemas to ER diagrams? If yes then is it possible in MS Visio?

As per my findings so far MS Visio supports importing the following data sources:
Excel workbook, Access database, SQL Server database, SharePoint list, OLEDB source, or an ODBC source

so do we have to first convert the json into an excel workbook and then try importing the workbook to generate the ER diagram?

  1. Also because these jsons are highly nested so while trying to convert it into excel workbook either a lot of column values(as imported from the json file) gets repeated or they appear as unnecessary from a DB schema(which we are trying to depict in the ER diagram) point of view. How to deal with that and get a precise schema sufficient enough to create the ER diagram?
@sing-ideas
Copy link

Having an Entity Relationship diagram will certainly help new developers to understand such important concept of CDM. This will be very use for us too. Do let us know on how to get ER diagram in any tools.

@Olofgo
Copy link

Olofgo commented Feb 17, 2024

This would be really usefull, some updates?

@miroslavplese
Copy link
Contributor

Thanks for reaching out - we don't have any tools available today to convert CDM entity schema JSONs to an ER diagram. Our advice for you is to perform resolve operation on all the entities which will remove any nesting/referencing that currently exists in the logical schema (example of entity resolving can be found in the SDK samples). Once this is done, you can code a new utility that will turn the resolved schema into Excel workbooks and then import that into an ER tool.

@sing-ideas
Copy link

How do we get proper training on Microsoft CDM operations/projections? Is there any community to discuss or clarify doubts for our young developers?

@Olofgo
Copy link

Olofgo commented Mar 2, 2024

As I can see, the relations are not visible within the "Operations" area in CDM inside https://microsoft.github.io/CDM/SchemaViz.html.

Is that correct or am I missing something?

@Olofgo
Copy link

Olofgo commented Mar 26, 2024

What is the difference between "Entities" and "Tables" under OperationsCommon?

I understand that Entities is conceptual and that Tables are Physical but can you still use both cstegories as a standard Data Model?

@mafrisci
Copy link
Collaborator

What is the difference between "Entities" and "Tables" under OperationsCommon?

I understand that Entities is conceptual and that Tables are Physical but can you still use both cstegories as a standard Data Model?

In Finance and Operations there is a difference between a Table (which is pretty close to 1:1 with a SQL table) and an Entity (which behind the scenes is a SQL view that wraps one or more tables, or even other entities and views).

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

5 participants