Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » QVT-OML » Representing QVT-Operational transformations in XML, JSON or or any other serialized format(I have a requirement where I need to parse the transformations defined in the QVT-Operational file. )
Representing QVT-Operational transformations in XML, JSON or or any other serialized format [message #1856288] Thu, 01 December 2022 09:59 Go to next message
Antony Prince J is currently offline Antony Prince JFriend
Messages: 1
Registered: December 2022
Junior Member
I need some way to represent the QVT-Operational transformations in a json, xml or any other serialized format. In model to model transformation performed using operational QVT in eclipse, I am able to generate a trace file in XML format. The trace file provides details on which element in the source model is mapped to which element in the target model but I also require the transformation logic. So is there any way to either convert the QVT-operational file to xml(or any serialized format) or get transformation details in the trace file ?
Re: Representing QVT-Operational transformations in XML, JSON or or any other serialized format [message #1856304 is a reply to message #1856288] Thu, 01 December 2022 19:09 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7669
Registered: July 2009
Senior Member
See my answer on https://stackoverflow.com/questions/74639933/representing-qvt-operational-transformations-in-xml-json-or-or-any-other-serial
Re: Representing QVT-Operational transformations in XML, JSON or or any other serialized format [message #1856305 is a reply to message #1856304] Thu, 01 December 2022 19:40 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7669
Registered: July 2009
Senior Member
https://bugs.eclipse.org/bugs/show_bug.cgi?id=581166 raised to provide an interactive capability.
Re: Representing QVT-Operational transformations in XML, JSON or or any other serialized format [message #1856326 is a reply to message #1856305] Sat, 03 December 2022 12:08 Go to previous message
Christopher Gerking is currently offline Christopher GerkingFriend
Messages: 116
Registered: April 2011
Senior Member
Hi Antony

There is a hidden, experimental builder option named internal.save.xmi that makes the QVTo compiler generate *.qvtox files automatically.
To do so, the .project file of your QVTo project should look somehow like this:

	<buildSpec>
		<buildCommand>
			<name>org.eclipse.m2m.qvt.oml.project.QVTOBuilder</name>
			<arguments>
				<dictionary>
					<key>internal.save.xmi</key>
					<value>true</value>
				</dictionary>
				<dictionary>
					<key>src_container</key>
					<value>transforms</value>
				</dictionary>
			</arguments>
		</buildCommand>
	</buildSpec>


Kind regards
Christopher
Previous Topic:Disjunction and inheritance
Next Topic:EPX to Ecore and EMX to Xtext instances
Goto Forum:
  


Current Time: Wed Sep 11 22:34:41 GMT 2024

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

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

Back to the top