Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » OCL as query language for UML models?
OCL as query language for UML models? [message #794903] Thu, 09 February 2012 21:05 Go to next message
Michael Bob is currently offline Michael BobFriend
Messages: 29
Registered: February 2012
Junior Member
Hi,

I wanna formalize some queries based on models as XMI created using the UML2 Tools. Is OCL the right tool for this? For example to get the number of classes within my model. Or should I use some part of QVT (Q = Query)?

Or is there another query language for UML models based on Ecore/XMI?

Regards,

Michael
Re: OCL as query language for UML models? [message #794910 is a reply to message #794903] Thu, 09 February 2012 21:17 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 4150
Registered: July 2009
Senior Member
Hi

I would use OCL, but some people might prefer Query/Query2.

QVTo extends OCL for trransformations so QVTo is over the top.

Regards

Ed Willink

On 09/02/2012 21:05, Michael Gebhart wrote:
> Hi,
>
> I wanna formalize some queries based on models as XMI created using
> the UML2 Tools. Is OCL the right tool for this? For example to get the
> number of classes within my model. Or should I use some part of QVT (Q
> = Query)?
>
> Or is there another query language for UML models based on Ecore/XMI?
>
> Regards,
>
> Michael
Re: OCL as query language for UML models? [message #794917 is a reply to message #794910] Thu, 09 February 2012 21:32 Go to previous messageGo to next message
Michael Bob is currently offline Michael BobFriend
Messages: 29
Registered: February 2012
Junior Member
Ah ok, great, thanks.

Just for my interest: What is Query/Query2? An OMG standard?

Regards,

Michael
Re: OCL as query language for UML models? [message #795146 is a reply to message #794917] Fri, 10 February 2012 05:51 Go to previous messageGo to next message
Axel Uhl is currently offline Axel UhlFriend
Messages: 40
Registered: July 2009
Member
Query/Query2 are EMF query languages / APIs, where query2 is the renovated, somewhat SQL-like approach that is trying to let you work on more or less abstract "scopes" whereas the former EMF query API required you to start searching in a set of EMF objects already loaded into a ResourceSet which makes it rather impractical for querying large EMF repositories.
Re: OCL as query language for UML models? [message #795269 is a reply to message #795146] Fri, 10 February 2012 09:15 Go to previous message
Michael Bob is currently offline Michael BobFriend
Messages: 29
Registered: February 2012
Junior Member
Ok thanks. As I want to describe my queries ecore-independent I'll use OCL.
Previous Topic:CompleteOCLEObjectValidator and UML meta model
Next Topic:Working example for OCL as UML query language
Goto Forum:
  


Current Time: Sat Nov 22 17:01:16 GMT 2014

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

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