Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » work by EPL (Epsilon Pattern Language)
work by EPL (Epsilon Pattern Language) [message #1265779] Thu, 06 March 2014 14:42 Go to next message
Mahsa P is currently offline Mahsa P
Messages: 99
Registered: July 2013
Member
Hi my friends,
I read Epsilon book and I want to use EPL language but i need simple real example such as documents which are in epsilon site. for example for EVL i read http://www.eclipse.org/epsilon/doc/evl/ and this was so useful but for EPL i didn't find any example and i don't know how i use this language in my projects!
please share your experience with me:)

[Updated on: Thu, 06 March 2014 14:43]

Report message to a moderator

Re: work by EPL (Epsilon Pattern Language) [message #1266298 is a reply to message #1265779] Fri, 07 March 2014 08:40 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris Kolovos
Messages: 846
Registered: July 2009
Senior Member
Hi Masha,

EPL is discussed in Chapter 11 of the Epsilon book [1] but unfortunately, there's not much additional documentation available beyond this.

Cheers,
Dimitris

[1] http://eclipse.org/epsilon/doc/book/
Re: work by EPL (Epsilon Pattern Language) [message #1266659 is a reply to message #1266298] Fri, 07 March 2014 19:52 Go to previous messageGo to next message
Mahsa P is currently offline Mahsa P
Messages: 99
Registered: July 2013
Member
Hi dear Dimitris
I read this book carefully and I can say that the Epsilon book is really so useful document. I'm so thankful for your answer. but My question is about detail points in EPL. I work on EPL and I hope that I can solve my problem:)
Re: work by EPL (Epsilon Pattern Language) [message #1267718 is a reply to message #1266659] Sun, 09 March 2014 12:47 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris Kolovos
Messages: 846
Registered: July 2009
Senior Member
Hi Mahsa,

Please feel free to ask any questions about details not covered in the book chapter.

Cheers,
Dimitris

[Updated on: Sun, 09 March 2014 12:47]

Report message to a moderator

Re: work by EPL (Epsilon Pattern Language) [message #1267719 is a reply to message #1267718] Sun, 09 March 2014 12:49 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris Kolovos
Messages: 846
Registered: July 2009
Senior Member
Just realised that I've been consistently misspelling your name - sorry about that!
Re: work by EPL (Epsilon Pattern Language) [message #1267778 is a reply to message #1267719] Sun, 09 March 2014 15:03 Go to previous messageGo to next message
Mahsa P is currently offline Mahsa P
Messages: 99
Registered: July 2013
Member
Dear Dimitris,

I'm thankful. don't worry about My name;)
Re: work by EPL (Epsilon Pattern Language) [message #1276794 is a reply to message #1267718] Tue, 25 March 2014 03:00 Go to previous messageGo to next message
Mahsa P is currently offline Mahsa P
Messages: 99
Registered: July 2013
Member
Hi my friend,
I want to check pattern matching for textual model. In EPL document is said that EPL is independent from modeling technology and model representation format. Due to this point, may EPL be used for pattern matching in code, for example ETL format?

Thanks
Re: work by EPL (Epsilon Pattern Language) [message #1277642 is a reply to message #1276794] Wed, 26 March 2014 09:13 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris Kolovos
Messages: 846
Registered: July 2009
Senior Member
Hi Mahsa,

To perform pattern matching on an ETL transformation using EPL, you would first need to load the transformation in memory under an object that implements Epsilon's IModel interface (see the EMC chapter of the Epsilon book). Unfortunately, there's no built-in support for this at the moment so the short answer is that this is not possible unless you're happy to develop your own ETL-specific implementation of IModel (in which case, I'd be more than happy to help).

Cheers,
Dimitris
Re: work by EPL (Epsilon Pattern Language) [message #1279031 is a reply to message #1277642] Fri, 28 March 2014 06:26 Go to previous messageGo to next message
Mahsa P is currently offline Mahsa P
Messages: 99
Registered: July 2013
Member
Hi Dimitris,
Thanks for your answer. How I customize my ETL?
I read EMC chapter and understand that I should load My ETL elements like as objects in EMF. but how i do this? I need your guidance to do this task with confidence.

Thanks a lot...





Re: work by EPL (Epsilon Pattern Language) [message #1279151 is a reply to message #1279031] Fri, 28 March 2014 09:52 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris Kolovos
Messages: 846
Registered: July 2009
Senior Member
Hi Mahsa,

This is quite a big task. You'd need to define an Ecore metamodel for ETL and then write a Java program that parses ETL programs using EtlModule and then transforms the EtlModule's AST (getAst()) into a model conforming to your metamodel.

Cheers,
Dimitris
Re: work by EPL (Epsilon Pattern Language) [message #1385525 is a reply to message #1279151] Sun, 08 June 2014 19:41 Go to previous messageGo to next message
Mahsa P is currently offline Mahsa P
Messages: 99
Registered: July 2013
Member
Hi,
What kind of formats are supported in EPL?
I've performed Pattern matching on EMF model and java code by EPL. are there other supported types?
Re: work by EPL (Epsilon Pattern Language) [message #1385527 is a reply to message #1385525] Sun, 08 June 2014 19:54 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris Kolovos
Messages: 846
Registered: July 2009
Senior Member
Hi Mahsa,

All model representation formats supported by Epsilon (e.g. plain XML [1], CSV [2]) also work with EPL.

Cheers,
Dimitris

[1] https://www.eclipse.org/epsilon/doc/articles/plain-xml/
[2] http://arcanebeans.blogspot.co.uk/2013/11/extended-emc-for-cvs-files.html
Re: work by EPL (Epsilon Pattern Language) [message #1385528 is a reply to message #1385527] Sun, 08 June 2014 20:05 Go to previous messageGo to next message
Mahsa P is currently offline Mahsa P
Messages: 99
Registered: July 2013
Member
Thanks Dimitris,
Quote:
All model representation formats supported by Epsilon (e.g. plain XML [1], CSV [2]) also work with EP
L.

and what about textual model(code)? is java just supported ?

[Updated on: Sun, 08 June 2014 20:06]

Report message to a moderator

Re: work by EPL (Epsilon Pattern Language) [message #1385532 is a reply to message #1385528] Sun, 08 June 2014 23:37 Go to previous messageGo to next message
Dimitris Kolovos is currently offline Dimitris Kolovos
Messages: 846
Registered: July 2009
Senior Member
Hi Mahsa,

Textual models specified using Xtext/EMFText are supported out-of-the-box (i.e. as regular EMF models). We also have a driver for Java code [1] but at the moment it's only available as source code (no update site) and there's very little documentation about it. Do you have a use-case that involves performing pattern matching against Java code?

Cheers,
Dimitris

[1] https://code.google.com/p/querying-java-code-with-epsilon/source/browse/#svn%2Ftrunk%2Forg.eclipse.epsilon.emc.jdt
Re: work by EPL (Epsilon Pattern Language) [message #1385590 is a reply to message #1385532] Mon, 09 June 2014 18:56 Go to previous message
Mahsa P is currently offline Mahsa P
Messages: 99
Registered: July 2013
Member
Hi my dear friend,
I want to use two meta-model in pattern checking. In other word, I have one meta-model and models that I check my pattern on these, but in my pattern, I need to load another meta-model. What is your suggestion? Can I define input parameters in EPL and declare second meta-model as input parameter?or should I use EOL for pre/post processing and use the Interoperability of EPL and EOL for calculating the final result?

Thank you for your help.

[Updated on: Thu, 12 June 2014 20:31]

Report message to a moderator

Previous Topic:Use XMI properties on transformations
Next Topic:emf/gmf diagram combine files
Goto Forum:
  


Current Time: Wed Sep 03 04:43:31 GMT 2014

Powered by FUDForum. Page generated in 0.02366 seconds