Skip to main content


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 14:38 Go to next message
Mauro Condarelli is currently offline Mauro CondarelliFriend
Messages: 428
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 14:50]

Report message to a moderator

Re: Search engine for EMF? [message #1060673 is a reply to message #1060657] Mon, 27 May 2013 16:08 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
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 10:35 Go to previous message
Jan Reimann is currently offline Jan ReimannFriend
Messages: 140
Registered: July 2009
Senior Member
Hi Mauro,
you could also use IncQuery: http://www.eclipse.org/incquery/

best regards,
Jan
Previous Topic:[Texo] Generated Code
Next Topic:[CDO] ArrayIndexOutOfBoundsException on rollback
Goto Forum:
  


Current Time: Fri Apr 26 08:44:49 GMT 2024

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

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

Back to the top