Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MoDisco » Querying an Ecore Instance
icon5.gif  Querying an Ecore Instance [message #1713094] Fri, 30 October 2015 21:31 Go to next message
Peter Mayer is currently offline Peter MayerFriend
Messages: 1
Registered: October 2015
Junior Member
Hello,

I am searching for tools for querying my model instances. There is the build-in tool "EMF Query", but I don't like it.

I'm a big fan of MoDisco and it seems to offer a query function too.

At the moment I have a little ecore model, similar to the EMF library example( http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.emf.doc%2Ftutorials%2Fclibmod%2Fclibmod.html)

I initialize the model in a new eclipse Appliikation (run as -> Eclipse applikation) and put some elements in it (in this case some concrete books and authors). Is it possible to write an query to find an exact book in this model instance?

I was able to query and find the class "book" in my orignal ecore model. But can MoDisco also execute a query in my model instance?

Thank you!
Re: Querying an Ecore Instance [message #1713220 is a reply to message #1713094] Mon, 02 November 2015 13:46 Go to previous message
Hugo Bruneliere is currently offline Hugo BruneliereFriend
Messages: 667
Registered: July 2009
Senior Member
Hello,

Thanks for your interest in MoDisco.
Of course, you can query actual models and not (only) the corresponding metamodels in Ecore.
You could take a look to the MoDisco User Guide ("Infrastructure -> Query Manager") where it is shown how to define query sets (for a given metamodel) that you can then apply on related models.
Such queries can be specified either in Java or OCL currently.

Best regards,


------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
Previous Topic:Abstract Syntax Tree Metamodel
Next Topic:Can I create KDM model from only part of Java project?
Goto Forum:
  


Current Time: Thu Jul 19 09:21:10 GMT 2018

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

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

Back to the top