[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.mdt.eodm] Re: EODM.. 0.9

Hi, Alex,

I don't know how to answer your question, but probably somebody on the EODM newsgroup does.  I have included it in my reply.

Cheers,

Christian


On Wed, 2008-06-04 at 18:47 +0000, Alex Pinheiro das Graças wrote:
Hello.. 

I want to get an methodology from EPF and transform its for an owl file. 
I used the EMF and create an ecore from a XSD to read the xmi File.
But I don't know yet how to transform this for an OWL File using the EODM.
I am trying to write some code based in the tutorial in the eodm page, but 
the Document is too old. The Eodm are using a new API, but I can't find 
any reference or example.

I tried to use it but I have some issues.
First what i have to translate to owl. 
The class Ecore2OWL.ecore2OWL accepts Resource and an ecore file.
Ecore files don't have instances.. so it is not what I need. 
But I don't get to identify what resource to transform. I have to 
transform all the resources or only the root one ?? 
And if I transform each one how I will save them?? because each one gives 
me an different OWLGraph object.

The other problem is to save . OWLXMLSaver accept a class "Document" to 
save. 
I have to use a document object, but how I will get an Document from a 
OWLGraph.

There is any application example or documentation in anyplace?

Cheers,

---- what I'm trying to do -------
try{
  OWLGraph graph = Ecore2OWL.ecore2OWL((Resource)this, null);
  OWLOntology >
          uuid);
  // ... ????
  OWLXMLSaver.saveToFile(doc, "./person.owl", "UTF-8");
}catch(Exception e){
   e.printStackTrace();
}