Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MDT (Model Development Tools) » EODM.. 0.9
EODM.. 0.9 [message #593540] Wed, 04 June 2008 18:47
Eclipse UserFriend
Originally posted by:


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
I have to use a document object, but how I will get an Document from a

There is any application example or documentation in anyplace?


---- what I'm trying to do -------
OWLGraph graph = Ecore2OWL.ecore2OWL((Resource)this, null);
OWLOntology ontology = OWLFactory.eINSTANCE.createOWLOntology(graph,
// ... ????
OWLXMLSaver.saveToFile(doc, "./person.owl", "UTF-8");
}catch(Exception e){
Previous Topic:[OCL] AstNode - startPosition is a transient attribute
Next Topic:Change tracking
Goto Forum:

Current Time: Tue Jul 23 14:42:31 GMT 2024

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

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

Back to the top