Skip to main content



      Home
Home » Modeling » MoDisco » Querying an Ecore Instance
icon5.gif  Querying an Ecore Instance [message #1713094] Fri, 30 October 2015 17:31 Go to next message
Eclipse UserFriend
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 08:46 Go to previous message
Eclipse UserFriend
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,
Previous Topic:Abstract Syntax Tree Metamodel
Next Topic:Can I create KDM model from only part of Java project?
Goto Forum:
  


Current Time: Wed May 14 11:59:00 EDT 2025

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

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

Back to the top