Skip to main content



      Home
Home » Modeling » MoDisco » Modisco, XMI and Mongodb(Import KDM Model into database)
Modisco, XMI and Mongodb [message #1535513] Mon, 29 December 2014 14:17 Go to next message
Eclipse UserFriend
This is my first post, so be kind Very Happy
I have a bunch of projects which I want to extract data(ex: methods, annotations, and fields of a given class) on demand. I thought of converting the Java Model's xmi to json and import into MongoDB. Actually I was successful in doing so. But now I don´t know how to extract these data.
The biggest issue is understanding the navigation. It uses a kind of url like
@0/@3/@1 which I couldn't find a description.
Would you give me some advice? Thanks in advance.
Re: Modisco, XMI and Mongodb [message #1560387 is a reply to message #1535513] Mon, 12 January 2015 10:15 Go to previous message
Eclipse UserFriend
Hello,
Sorry for the delay in the reply.
Such notation is normally used to refer to model elements contained somewhere else in the model. However, depending on the XMI serialization options that have been used from the original EMF model, the considered format may slightly differ.
In this case, I guess @0 means the first element at the same containment level in the model (considering as a base the element where this expression is found), then @0/@3 means the fourth element contained in this first element, etc.
Previous Topic:KDM2Java
Next Topic:MoDisco and PL/SQL
Goto Forum:
  


Current Time: Fri May 23 18:31:48 EDT 2025

Powered by FUDForum. Page generated in 0.03743 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top