Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] KM3DOT
[ATL] KM3DOT [message #49681] Wed, 27 June 2007 14:18 Go to next message
Kelly  arcés is currently offline Kelly arcés
Messages: 22
Registered: July 2009
Junior Member
This is a multi-part message in MIME format.
--------------000404080700090503000106
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hello,

I tried to use DOT2Text, i followed launch instructions, however i
didn't obtain dot file. I delete lib (DOT2Text.asm) from launch
configuration, so i obtained a example.dot, but it is not readable. I
don't understand :(

Thanks for your help.

PD: i attach example.dot


--------------000404080700090503000106
Content-Type: application/msword;
name="example.dot"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="example.dot"

ZGlncmFwaCAiVHJhY2VhYmlsaXR5IE1vZGVsIGluIERPVCIgew0KZ3JhcGhb Y29tcG91bmQ9
ZmFsc2VdOw0KIG5vZGVbc2hhcGU9ZWxsaXBzZV07DQovL0BlbGVtZW50LjAv QGVsZW1lbnQu
MC9AZWxlbWVudC4wW2xhYmVsPSImIzE3MTtTaW1wbGUmIzE4NzsKV29yZCJd DQogLy9AZWxl
bWVudC4wL0BlbGVtZW50LjAvQGVsZW1lbnQuMC0+Ly9Admlldy4wL0B2aWV3 LjJbY29uc3Ry
YWludD1mYWxzZSxdDQo7DQogbm9kZVtzaGFwZT1lbGxpcHNlXTsNCi8vQGVs ZW1lbnQuMC9A
ZWxlbWVudC4wW2xhYmVsPSImIzE3MTtHcm91cGVyJiMxODc7CkRpY3Rpb25h cnkiXQ0KIC8v
QGVsZW1lbnQuMC9AZWxlbWVudC4wLT4vL0B2aWV3LjAvQHZpZXcuMVtjb25z dHJhaW50PWZh
bHNlLF0NCjsNCiBub2RlW3NoYXBlPWVsbGlwc2VdOw0KLy9Admlldy4wW2xh YmVsPSImIzE3
MTtDb250YWluZXJWaWV3JiMxODc7ClRyYW5zbGF0b3JNYWluVmlldyJdDQo7 DQogb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3DOT [message #49777 is a reply to message #49681] Wed, 27 June 2007 16:20 Go to previous messageGo to next message
Frédéric Jouault is currently offline Frédéric Jouault
Messages: 572
Registered: July 2009
Senior Member
Hello,

Where did you get the version of DOT2Text you are using?


Best regards,

Frédéric Jouault


Kelly Garcés wrote:
> Hello,
>
> I tried to use DOT2Text, i followed launch instructions, however i
> didn't obtain dot file. I delete lib (DOT2Text.asm) from launch
> configuration, so i obtained a example.dot, but it is not readable. I
> don't understand :(
>
> Thanks for your help.
>
> PD: i attach example.dot
>
Re: [ATL] KM3DOT [message #49898 is a reply to message #49777] Wed, 27 June 2007 21:26 Go to previous messageGo to next message
Kelly  arcés is currently offline Kelly arcés
Messages: 22
Registered: July 2009
Junior Member
Fréderic,

I got the version KM3DOT from
http://www.eclipse.org/m2m/atl/atlTransformations/
Re: [ATL] KM3DOT [message #49926 is a reply to message #49898] Thu, 28 June 2007 08:00 Go to previous messageGo to next message
Frédéric Jouault is currently offline Frédéric Jouault
Messages: 572
Registered: July 2009
Senior Member
Hi Kelly,

About the warnings you get from dot: it seems that you labels contain
newlines. You may want to get rid of them or maybe escape them to \n in
the DOT2Text.atl query (e.g., something like
nodeName.regexReplaceAll('\n', '\\n')).


About the error: dot does not seem to like node names with '/'. Escaping
these names between double quotes should work.
For instance:

helper context DOT!DirectedArc def: toString2() : String =
'\"' + self.fromNode.name + '\"->\"' + self.toNode.name + '\"' +
-- [...]


About the way DOT2Text.atl works: it queries a String, then writes it to
a file. We now prefer to simply query the String in the ATL file (i.e.,
we remove the .writeTo(...)), then use the am3.saveModel ant task with
an ATL extractor.
See the last example of section 3.2 of the AM3 Ant Tasks wiki page:
http://wiki.eclipse.org/index.php/AM3_Ant_Tasks#Examples_2
which illustrates this point on the DOT2Text query that is used to build
the Raster Zoo.


Best regards,

Frédéric Jouault


Kelly Garcés wrote:
> Fréderic,
>
> I got the version KM3DOT from
> http://www.eclipse.org/m2m/atl/atlTransformations/
>
>
>
>
Re: [ATL] KM3DOT [message #50029 is a reply to message #49926] Thu, 28 June 2007 14:31 Go to previous messageGo to next message
Kelly  arcés is currently offline Kelly arcés
Messages: 22
Registered: July 2009
Junior Member
Fréderic,

Thanks for your help.

I downloaded build.xml from Zoos. I tried to run tranformOne task, but
only am3.saveModel ant task, i updated parameters :

<am3.saveModel model="target" path="dogshow.dot">
<extractor name="atl">
<param name="queryPath" value="ATLWithTracer/DOT2Text.atl"/>
</extractor>
</am3.saveModel>


I got an error:

BUILD FAILED
C:\eclipse321\workspace\cupi2\build.xml:68: Could not create task or
type of type: am3.saveModel.

Where do i set up input model of DOT2Text.atl?

Thanks in advance.

Frédéric Jouault a écrit :
> Hi Kelly,
>
> About the warnings you get from dot: it seems that you labels contain
> newlines. You may want to get rid of them or maybe escape them to \n in
> the DOT2Text.atl query (e.g., something like
> nodeName.regexReplaceAll('\n', '\\n')).
>
>
> About the error: dot does not seem to like node names with '/'. Escaping
> these names between double quotes should work.
> For instance:
>
> helper context DOT!DirectedArc def: toString2() : String =
> '\"' + self.fromNode.name + '\"->\"' + self.toNode.name + '\"' +
> -- [...]
>
>
> About the way DOT2Text.atl works: it queries a String, then writes it to
> a file. We now prefer to simply query the String in the ATL file (i.e.,
> we remove the .writeTo(...)), then use the am3.saveModel ant task with
> an ATL extractor.
> See the last example of section 3.2 of the AM3 Ant Tasks wiki page:
> http://wiki.eclipse.org/index.php/AM3_Ant_Tasks#Examples_2
> which illustrates this point on the DOT2Text query that is used to build
> the Raster Zoo.
>
>
> Best regards,
>
> Frédéric Jouault
>
>
> Kelly Garcés wrote:
>> Fréderic,
>>
>> I got the version KM3DOT from
>> http://www.eclipse.org/m2m/atl/atlTransformations/
>>
>>
>>
>>
Re: [ATL] KM3DOT [message #50059 is a reply to message #50029] Thu, 28 June 2007 16:56 Go to previous message
Frédéric Jouault is currently offline Frédéric Jouault
Messages: 572
Registered: July 2009
Senior Member
Kelly,

When you use the AM3 ant tasks, you must set the ant script to run in
the same JRE as Eclipse:
http://wiki.eclipse.org/index.php/AM3_Ant_Tasks#Launching_an _Ant_file_with_AM3_tasks_in_an_Eclipse_workbench

Moreover, you need at least to load the "target" model before saving it ;-).


Best regards,

Frédéric Jouault


Kelly Garcés wrote:
> Fréderic,
>
> Thanks for your help.
>
> I downloaded build.xml from Zoos. I tried to run tranformOne task, but
> only am3.saveModel ant task, i updated parameters :
>
> <am3.saveModel model="target" path="dogshow.dot">
> <extractor name="atl">
> <param name="queryPath" value="ATLWithTracer/DOT2Text.atl"/>
> </extractor>
> </am3.saveModel>
>
>
> I got an error:
>
> BUILD FAILED
> C:\eclipse321\workspace\cupi2\build.xml:68: Could not create task or
> type of type: am3.saveModel.
>
> Where do i set up input model of DOT2Text.atl?
>
> Thanks in advance.
>
> Frédéric Jouault a écrit :
>> Hi Kelly,
>>
>> About the warnings you get from dot: it seems that you labels contain
>> newlines. You may want to get rid of them or maybe escape them to \n
>> in the DOT2Text.atl query (e.g., something like
>> nodeName.regexReplaceAll('\n', '\\n')).
>>
>>
>> About the error: dot does not seem to like node names with '/'.
>> Escaping these names between double quotes should work.
>> For instance:
>>
>> helper context DOT!DirectedArc def: toString2() : String =
>> '\"' + self.fromNode.name + '\"->\"' + self.toNode.name + '\"' +
>> -- [...]
>>
>>
>> About the way DOT2Text.atl works: it queries a String, then writes it
>> to a file. We now prefer to simply query the String in the ATL file
>> (i.e., we remove the .writeTo(...)), then use the am3.saveModel ant
>> task with an ATL extractor.
>> See the last example of section 3.2 of the AM3 Ant Tasks wiki page:
>> http://wiki.eclipse.org/index.php/AM3_Ant_Tasks#Examples_2
>> which illustrates this point on the DOT2Text query that is used to
>> build the Raster Zoo.
>>
>>
>> Best regards,
>>
>> Frédéric Jouault
>>
>>
>> Kelly Garcés wrote:
>>> Fréderic,
>>>
>>> I got the version KM3DOT from
>>> http://www.eclipse.org/m2m/atl/atlTransformations/
>>>
>>>
>>>
>>>
Previous Topic:Re-Posting my question... Can I use ATL to apply a profile to a UML model?
Next Topic:[ATL] Problems with TupleType
Goto Forum:
  


Current Time: Sun Sep 21 08:09:47 GMT 2014

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

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