Skip to main content



      Home
Home » Modeling » OCL » OCL as query language for UML models?
OCL as query language for UML models? [message #794903] Thu, 09 February 2012 16:05 Go to next message
Eclipse UserFriend
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 16:17 Go to previous messageGo to next message
Eclipse UserFriend
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 16:32 Go to previous messageGo to next message
Eclipse UserFriend
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 00:51 Go to previous messageGo to next message
Eclipse UserFriend
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 04:15 Go to previous message
Eclipse UserFriend
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: Thu Apr 24 20:17:16 EDT 2025

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

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

Back to the top