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

Reverse Engineer #11

Open
haritrichy opened this issue Jun 29, 2019 · 5 comments
Open

Reverse Engineer #11

haritrichy opened this issue Jun 29, 2019 · 5 comments

Comments

@haritrichy
Copy link

Hi Mike,
My ODH comprises of several JSON payloads grouped by collections. I want to reverse engineer and build out entity services model so I can generate artifacts like query options, TDEs etc.,

Is it possible to reverse engineer and build UML profile model from JSON payloads and later apply your toolkit?

@mhavey
Copy link
Owner

mhavey commented Jul 1, 2019

I have been planning to build such a capability. Specifically UML2ES would include a tool that generates a UML model by inferring the model's structure based on data in your MarkLogic database. You instruct the tool to look at specific collections, URIs/directories, or even documents that match a specific CTS query. You can then import that model into your UML tool and play with it. Of course, later you can deploy that model, with your changes, back to MarkLogic using UML2ES.

Does that sound like it fits your requirement? What is your timeframe?

@haritrichy
Copy link
Author

It absolutely does. Would be good if the reverse engineering process can extract all the indexes, PII and other properties so this is helpful while generating artifacts such as search options.

As far as the timeline, we’re performing this manually and an accelerator sooner than later would help.

Thanks again.

@haritrichy
Copy link
Author

For the reverse engineering exercise, would you advise using JSONSchema to UML tool like the one given below and then apply your uml2es tool atop it?

https://github.com/SOM-Research/JsonSchema-to-uml

@mhavey
Copy link
Owner

mhavey commented Jul 9, 2019

Hari, that looks promising, I agree. In UML2ES case, the desired mapping is ES-to-UML, but ES and JSONSchema have a lot of similarities.

@haritrichy
Copy link
Author

Thanks.. there are two cases at my end.

  1. JSON payloads in ODH Final and trying to build out ES in quick time so TDEs and Search options can be generated in automated fashion.

  2. the source documents in ODH staging has complex and nested XML/JSON payloads and want to build out ES and later TDEs in automated fashion so we can run optic queries for analysis and later build out harmonization steps.

To accomplish the above, I’m thinking of following until you help me with the reverse engineering capability in umltoes,

  1. build out JSON schema
  2. Convert Json schema to UML
  3. UML to ES

It’s round above way but I wonder if there is an easier approach.

Thanks again

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