Home » Modeling » EMF » EMF query model
|
Re: EMF query model [message #1066025 is a reply to message #1066012] |
Sat, 29 June 2013 05:57 |
Ed Merks Messages: 33141 Registered: July 2009 |
Senior Member |
|
|
Tobias,
Comments below.
On 28/06/2013 10:48 PM, Tobias Jenkner wrote:
> Hi everybody,
> Is there something like a EMF model to represent queries on other EMF
> models?
>
> As far as I have understood there exist several possibilities to
> perform queries on EMF models such as - EMF query
> - OCL
> - EMF inc-query
The EMF Query2 project was terminated, and the EMF Query project is not
so useful
> - ... ?
>
> But for all of these possibilities the actual queries have to be
> defined in an implementation specific format, right?
That will always be the case, even if there's only a model, not a format...
> A format / DSL / EMF model to define these queries independently of
> the query implementation does not exist so far, does it?
You mean a something with a pluggable query engine under the covers?
No, there isn't such a thing that I know of...
>
> Thanks in advance for your thoughts and ideas, Tobias.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: EMF query model [message #1066111 is a reply to message #1066025] |
Sun, 30 June 2013 20:18 |
Tobias Jenkner Messages: 5 Registered: July 2009 |
Junior Member |
|
|
Hi Ed,
thanks for your prompt reply. Additional thoughts below:
>> But for all of these possibilities the actual queries have to be
>> defined in an implementation specific format, right?
> That will always be the case, even if there's only a model, not a format...
Sure, I thought of a model from that the code for the different query implementations can be generated.
>> A format / DSL / EMF model to define these queries independently of
>> the query implementation does not exist so far, does it?
> You mean a something with a pluggable query engine under the covers?
> No, there isn't such a thing that I know of...
Yes, something like pluggable through the choice of a generator for the specific query engine.
Based on this query model there could be a common editor (or editing framework) for queries. Just like there is the standard editor for EMF models wouldn't it be nice to have a common editor for queries targeting an EMF model, for example with auto completion based on this target model, offering the attributes and relations of the target classes? Or does something like this already exist?
What do you think?
Tobias.
|
|
|
Re: EMF query model [message #1066172 is a reply to message #1066111] |
Mon, 01 July 2013 11:32 |
Ed Willink Messages: 7655 Registered: July 2009 |
Senior Member |
|
|
Hi
Your comments seem to be liitle different from, wouldn't it be great if
we all spoke English, or Esperanto?
The different query languages have their virtues and tools that support
them. You could create yet another one and try to persuade the world
that it is better than OCL, SQL, Xpath, ...
[You can use the Xtext OCL Console to edit OCL queries against models
with many of the good features of Xtext editors.]
Regards
Ed Willink
On 30/06/2013 21:18, Tobias Jenkner wrote:
> Hi Ed,
> thanks for your prompt reply. Additional thoughts below:
>>> But for all of these possibilities the actual queries have to be
>>> defined in an implementation specific format, right?
>> That will always be the case, even if there's only a model, not a
>> format...
> Sure, I thought of a model from that the code for the different query
> implementations can be generated.
>
>>> A format / DSL / EMF model to define these queries independently of
>>> the query implementation does not exist so far, does it?
>> You mean a something with a pluggable query engine under the covers?
>> No, there isn't such a thing that I know of...
> Yes, something like pluggable through the choice of a generator for
> the specific query engine.
>
> Based on this query model there could be a common editor (or editing
> framework) for queries. Just like there is the standard editor for EMF
> models wouldn't it be nice to have a common editor for queries
> targeting an EMF model, for example with auto completion based on this
> target model, offering the attributes and relations of the target
> classes? Or does something like this already exist?
>
> What do you think?
> Tobias.
|
|
|
Re: EMF query model [message #1066302 is a reply to message #1066111] |
Tue, 02 July 2013 05:32 |
Ed Merks Messages: 33141 Registered: July 2009 |
Senior Member |
|
|
Tobias,
Comments below.
On 30/06/2013 10:18 PM, Tobias Jenkner wrote:
> Hi Ed,
> thanks for your prompt reply. Additional thoughts below:
>>> But for all of these possibilities the actual queries have to be
>>> defined in an implementation specific format, right?
>> That will always be the case, even if there's only a model, not a
>> format...
> Sure, I thought of a model from that the code for the different query
> implementations can be generated.
Yes, that's certainly a possibility, but not something already available.
>
>>> A format / DSL / EMF model to define these queries independently of
>>> the query implementation does not exist so far, does it?
>> You mean a something with a pluggable query engine under the covers?
>> No, there isn't such a thing that I know of...
> Yes, something like pluggable through the choice of a generator for
> the specific query engine.
Anything you can generate you can also generally interpret...
>
> Based on this query model there could be a common editor (or editing
> framework) for queries.
Yes, though any such approach will generally constrain how one specifies
a query or be so general that it's so general purpose as to become a
programming language...
> Just like there is the standard editor for EMF models wouldn't it be
> nice to have a common editor for queries targeting an EMF model, for
> example with auto completion based on this target model, offering the
> attributes and relations of the target classes?
Both OCL and IncQuery support something of that nature via the
Xtext-based editors...
> Or does something like this already exist?
Perhaps not in the form you're imagining, but I sense is that any query
model pretty much is a language and that pretty much prescribes a great
deal about the engine being targeted...
>
> What do you think?
> Tobias.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
| | | |
Goto Forum:
Current Time: Fri Apr 26 06:10:55 GMT 2024
Powered by FUDForum. Page generated in 0.03479 seconds
|