Skip to main content



      Home
Home » Modeling » EMF » Search engine for EMF?
Search engine for EMF? [message #1060657] Mon, 27 May 2013 10:38 Go to next message
Eclipse UserFriend
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] by 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
Eclipse UserFriend
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
Eclipse UserFriend
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: Mon Jul 14 10:45:31 EDT 2025

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

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

Back to the top