Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Search engine for EMF?
Search engine for EMF? [message #1060657] Mon, 27 May 2013 10:38 Go to next message
Mauro Condarelli is currently offline Mauro Condarelli
Messages: 366
Registered: September 2009
Senior Member
I need to search my model for specific (possibly fuzzy) matches.

Something along the lines of "SELECT * FROM customer WHERE name LIKE '*ro" AND surname LIKE 'conda*' ;"

I'm using plain XMI model serialization, not a database backend.
Is there support for this type of queries?
I've seen "EMF Search", but it seems a dead project.

Should I code my own searching?

TiA
MAuro

[Updated on: Mon, 27 May 2013 10:50]

Report message to a moderator

Re: Search engine for EMF? [message #1060673 is a reply to message #1060657] Mon, 27 May 2013 12:08 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 3191
Registered: July 2009
Senior Member
Hi

If your queries are trivial you could use the OCL Console to execute
them over your model.

If they're more complex, you put put them in a Complete OCL document,
Load it on top of your XMI model and then run the queries using the OCL
Console.

[Eclipse OCL has regex extensions.]

customer->select(name.endsWith('ro') and surname.startsWith('conda'))

Regards

Ed Willink

On 27/05/2013 15:39, Mauro Condarelli wrote:
> I need to search my model for specific (possibly fuzzy) matches.
>
> Something along the lines of "SELECT * customer WHERE name LIKE '*ro"
> AND surname LIKE 'conda*' ;"
>
> I'm using plain XMI model serialization, not a database backend.
> Is there support for this type of queries?
> I've seen "EMF Search", but it seems a dead project.
>
> Should I code my own searching?
>
> TiA
> MAuro
Re: Search engine for EMF? [message #1060745 is a reply to message #1060657] Tue, 28 May 2013 06:35 Go to previous message
Jan Reimann is currently offline Jan Reimann
Messages: 66
Registered: July 2009
Member
Hi Mauro,
you could also use IncQuery: http://www.eclipse.org/incquery/

best regards,
Jan
Previous Topic:Once again Factory not found: org.eclipse.emf.cdo.server.queryHandlerFactories[ocl]
Next Topic:[EMF] Change volatile and transient properties
Goto Forum:
  


Current Time: Tue May 28 11:28:38 EDT 2013

Powered by FUDForum. Page generated in 0.03175 seconds