Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MoDisco » Modisco, XMI and Mongodb(Import KDM Model into database)
Modisco, XMI and Mongodb [message #1535513] Mon, 29 December 2014 19:17 Go to next message
Fábio Silva is currently offline Fábio SilvaFriend
Messages: 18
Registered: December 2014
Junior Member
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 15:15 Go to previous message
Hugo Bruneliere is currently offline Hugo BruneliereFriend
Messages: 674
Registered: July 2009
Senior Member
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.

Hugo Bruneliere, PhD
NaoMod team (IMT Atlantique & LS2N-CNRS)
Nantes - France
Previous Topic:KDM2Java
Next Topic:MoDisco and PL/SQL
Goto Forum:

Current Time: Fri Dec 04 03:29:43 GMT 2020

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

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

Back to the top