Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » EMFIndex still an active projecct?
EMFIndex still an active projecct? [message #688079] Thu, 23 June 2011 21:27 Go to next message
Roshan S. is currently offline Roshan S.Friend
Messages: 125
Registered: July 2009
Senior Member
I'm looking for a way to index my Ecore files so I can run searches. I found the EMFIndex project and page says its work in progress but the last meeting note are from Dec 09. Is there something that replaced it? Or is it a dead project?

http://www.eclipse.org/emfindex/

Thanks,
Roshan
(no subject) [message #688127 is a reply to message #688079] Fri, 24 June 2011 00:46 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
Roshan,

It's terminally ill right now.


Roshan Soni wrote:
> I'm looking for a way to index my Ecore files so I can run searches.
> I found the EMFIndex project and page says its work in progress but
> the last meeting note are from Dec 09. Is there something that
> replaced it? Or is it a dead project?
>
> http://www.eclipse.org/emfindex/
>
> Thanks,
> Roshan


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: EMFIndex still an active projecct? [message #688160 is a reply to message #688079] Fri, 24 June 2011 03:40 Go to previous messageGo to next message
saurav sarkar is currently offline saurav sarkarFriend
Messages: 428
Registered: July 2009
Senior Member
Hi Roshan,

As Ed mentioned EMF Index is inactive now.

You can try using EMF Query2.Query2 comes with an in built index engine.
This index engine will help you to index your files.Plus the index comes with few convenient index queries which will aid you to search.

http://wiki.eclipse.org/EMF/Query2

On addition to this you can check Querying mechanism, where a simple search string like 'from Library as lib select lib' will yield you the results from the index.

cheers,
Saurav


(no subject) [message #688405 is a reply to message #688160] Fri, 24 June 2011 16:09 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
Saurav,

Yes, both Query2 and Xtext independently provide indexers. I imagine in
the future there will be folks who want to query their Xtext serialized
models and they'll question why their stuff needs to be indexed twice....


saurav wrote:
> Hi Roshan,
>
> As Ed mentioned EMF Index is inactive now.
>
> You can try using EMF Query2.Query2 comes with an in built index engine.
> This index engine will help you to index your files.Plus the index
> comes with few convenient index queries which will aid you to search.
>
> http://wiki.eclipse.org/EMF/Query2
>
> On addition to this you can check Querying mechanism, where a simple
> search string like 'from Library as lib select lib' will yield you the
> results from the index.
>
> cheers,
> Saurav
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: EMFIndex still an active projecct? [message #689276 is a reply to message #688079] Mon, 27 June 2011 10:13 Go to previous messageGo to next message
saurav sarkar is currently offline saurav sarkarFriend
Messages: 428
Registered: July 2009
Senior Member
Hi Ed,

Well, having a common index and hence avoidance of duplicatie indexing would have helped.Right now we can have a separate adapter (query storage processor) for Xtext if required and let that processor decide which index to use.

Cheers,
Saurav


(no subject) [message #689436 is a reply to message #689276] Mon, 27 June 2011 16:23 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
Saurav,

Cool. That's a good idea.


On 27/06/2011 3:13 AM, saurav wrote:
> Hi Ed,
>
> Well, having a common index and hence avoidance of duplicatie indexing
> would have helped.Right now we can have a separate adapter (query
> storage processor) for Xtext if required and let that processor decide
> which index to use.
>
> Cheers,
> Saurav


Ed Merks
Professional Support: https://www.macromodeling.com/
(no subject) [message #689466 is a reply to message #689436] Mon, 27 June 2011 17:02 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Perhaps after Juno, when EMF Query and Xtext requirements are
established, it may be possible to merge the two competing solutions,
since the costs of duplicate indexing are imposed on all modeling users
that even indirectly exploit these two tools.

Regards

Ed Willink

On 27/06/2011 18:23, Ed Merks wrote:
> Saurav,
>
> Cool. That's a good idea.
>
>
> On 27/06/2011 3:13 AM, saurav wrote:
>> Hi Ed,
>>
>> Well, having a common index and hence avoidance of duplicatie
>> indexing would have helped.Right now we can have a separate adapter
>> (query storage processor) for Xtext if required and let that
>> processor decide which index to use.
>>
>> Cheers,
>> Saurav
(no subject) [message #689514 is a reply to message #689466] Mon, 27 June 2011 18:43 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33136
Registered: July 2009
Senior Member
Ed,

It's possible, but as I understand it, no one is particularly motivated
to do it.



On 27/06/2011 10:02 AM, Ed Willink wrote:
> Hi
>
> Perhaps after Juno, when EMF Query and Xtext requirements are
> established, it may be possible to merge the two competing solutions,
> since the costs of duplicate indexing are imposed on all modeling
> users that even indirectly exploit these two tools.
>
> Regards
>
> Ed Willink
>
> On 27/06/2011 18:23, Ed Merks wrote:
>> Saurav,
>>
>> Cool. That's a good idea.
>>
>>
>> On 27/06/2011 3:13 AM, saurav wrote:
>>> Hi Ed,
>>>
>>> Well, having a common index and hence avoidance of duplicatie
>>> indexing would have helped.Right now we can have a separate adapter
>>> (query storage processor) for Xtext if required and let that
>>> processor decide which index to use.
>>>
>>> Cheers,
>>> Saurav
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: (no subject) [message #689534 is a reply to message #689514] Mon, 27 June 2011 19:27 Go to previous messageGo to next message
Roshan S. is currently offline Roshan S.Friend
Messages: 125
Registered: July 2009
Senior Member
Saurav,

Does Query2 work with Eclipse 3.5? I saw your presentation on http://www.slideshare.net/sauravsarkar/query2-eclipse-day and after installing Query2 I'm not able to get some of the preferences and the query tools as you have in your presentation. I also can't install the query2 examples.

Thanks,
Roshan


UPDATE-So I did end up moving to 3.6.2 and I was now able to see the preferences for Query2 and Index View, Query View, etc. However, when updating through the update site for Query2 I get an error when I try to add EMF Query2 Tests and Examples. I'm missing the library swtbot:

Cannot complete the install because one or more required items could not be found.
Software being installed: Query2 Tests 1.0.0.201105300149 (org.eclipse.emf.query2.test.feature.feature.group 1.0.0.201105300149)
Missing requirement: org.eclipse.emf.query2.index.ui.test 1.0.0.201105300149 requires 'bundle org.eclipse.swtbot.eclipse.core 2.0.4' but it could not be found
Cannot satisfy dependency:
From: Query2 Tests 1.0.0.201105300149 (org.eclipse.emf.query2.test.feature.feature.group 1.0.0.201105300149)
To: org.eclipse.emf.query2.index.ui.test [1.0.0.201105300149]

Once I added the update site for SWTBOT http://download.eclipse.org/technology/swtbot/helios/dev-build/update-site I was good to go.

[Updated on: Mon, 27 June 2011 22:29]

Report message to a moderator

Re: (no subject) [message #689651 is a reply to message #689534] Tue, 28 June 2011 05:53 Go to previous messageGo to next message
saurav sarkar is currently offline saurav sarkarFriend
Messages: 428
Registered: July 2009
Senior Member
Hi Roshan,

Yes the Index View is only supported in 3.6.To be frank we have not tested the same in 3.5 so i am not sure of the incompatiblity.

And yes since Query tests have some UI tests which depends on SWT BOT.

Good to see you are able to work with Query2 now.
Let me know if you face any further problems.

cheers,
Saurav


Re: (no subject) [message #690035 is a reply to message #689651] Tue, 28 June 2011 20:31 Go to previous messageGo to next message
Roshan S. is currently offline Roshan S.Friend
Messages: 125
Registered: July 2009
Senior Member
Hi Saurav,

So I'm not sure how to get started on the indexing of my EMF model. I'm working (trying to) through the example http://wiki.eclipse.org/EMF/Query2/DevGuide. I created a new Query Statements Example project with the Library domain model. To setup the indexes am I supposed to add the extension point like in the example?
<extension point="org.eclipse.emf.ecore.extension_parser">
<parser class="com.demo.ResourceFactoryImpl"
type="xml">
</parser>
</extension>

And then implement the org.eclipse.emf.ecore.resource.Resource.Factory as the parser class? I'm a little confused in how to setup the index using QueryBuilder.

I appreciate your help.
-Roshan
Re: (no subject) [message #690301 is a reply to message #690035] Wed, 29 June 2011 10:30 Go to previous message
saurav sarkar is currently offline saurav sarkarFriend
Messages: 428
Registered: July 2009
Senior Member
Hi Roshan,

If you are using the builder then you must have to add your project the index nature.You can add it by right click on the context menu of the project and click on 'Add/Remove Index Nature'.
And yes if you are trying to index any other files apart from xmi you need to add it in the ExtensionToFactory map.

Please open a new thread relating to Query2 in the EMF sub-forum if you have further questions because this thread has already been long enough
and has some generic discussions.

cheers,
Saurav


Previous Topic:[Teneo] Need ClassMetadata but it's not present
Next Topic:[EEF] Stabillity
Goto Forum:
  


Current Time: Thu Apr 18 16:18:16 GMT 2024

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

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

Back to the top