Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » [ETL][Newbie] how to execute ETL script
[ETL][Newbie] how to execute ETL script [message #571764] Thu, 30 July 2009 16:58
Darren  is currently offline Darren
Messages: 40
Registered: September 2009
Member
Hello all,

I have a meta-model crafted in EMF (myModel.ecore), and I have several xml
files with data. Ihave used the EMF project wizard to create the ECore
meta-model from the XSD for the data. I have written a simple ETL script
to copy a couple of items of data. I therefore have:
myModel.ecore
xmlModel.ecore
data.model (XML file renamed to .model)
newData.model (empty model file based on myModel.ecore)

I have tried using the run as ETL config, declaring the models, however I
keep getting a "Type 'xmlModel!xmlClass' not found " error. I have also
tried to copy the ANT scripts form the OO2DB example but get the error
"testETL.xml:15: java.lang.NullPointerException", The ANT file is shown at
bottom.

I assume it's something simple I'm not understanding if anyone has any
suggestions that would be great.

Thanks,
Darren



<?xml version="1.0"?>
<project default="main">
<target name="loadModels">

<epsilon.emf.register file="DocumentModel.ecore"/>
<epsilon.emf.register file="tdl.ecore"/>

<epsilon.loadModel name="DocumentStructure" type="EMF">
<parameter name="modelFile" file="populated.model"/>
<parameter name="metamodelUri" value="DocumentStructure"/>
<parameter name="readOnLoad" value="true"/>
<parameter name="storeOnDisposal" value="true"/>
</epsilon.loadModel>

<epsilon.loadModel name="DocumentModel" type="EMF">
<parameter name="modelFile" file="XMF_Prep_Main_Section_4.model"/>
<parameter name="metamodelUri" value="DocumentModel"/>
<parameter name="readOnLoad" value="true"/>
<parameter name="storeOnDisposal" value="false"/>
</epsilon.loadModel>
</target>

<target name="main" depends="loadModels">
<epsilon.etl src="DocXML.etl">
<model ref="DocumentModel"/>
<model ref="DocumentStructure"/>
</epsilon.etl>
</target>

</project>
Previous Topic:[EGL] [newbie] Multiple input models problem
Next Topic:Problem running ETL using Epsilon/ANT
Goto Forum:
  


Current Time: Fri Oct 24 12:58:14 GMT 2014

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

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