Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » OWL(Ecore to owl using Acceleo)
icon1.gif  OWL [message #668745] Sat, 07 May 2011 00:23 Go to next message
Jorge  is currently offline Jorge Friend
Messages: 4
Registered: May 2011
Junior Member

I have not been working whit acceleo a lot, i'm trying to convert a
ecore model to a .owl file...

So, i'm wondering if any else have already did it or how I can start?...

Re: OWL [message #669401 is a reply to message #668745] Tue, 10 May 2011 08:27 Go to previous messageGo to next message
Stephane Begaudeau is currently offline Stephane BegaudeauFriend
Messages: 458
Registered: April 2010
Location: Nantes (France)
Senior Member

Hi Jorge,

I have never worked with "owl" files but from what I've seen it seems to be some sort of xml file. You can create a "owl" code generator with Acceleo. I'll suggest you to have a look the Acceleo examples to see how you can define an Acceleo generator (File -> New -> Example).

You can then define your templates with something like this:

[module myModule('')]

[template public myTemplate(anEClass : EClass)]
<owl:ObjectProperty rdf:ID="[]">
 <rdfs:subPropertyOf rdf:resource=""/>
  <rdfs:comment xml:lang="en"></rdfs:comment>
  <rdfs:label xml:lang="en">[]</rdfs:label>

I don't know the "owl" specification but you have the general idea.

Stephane Begaudeau, Obeo
Twitter: @sbegaudeau
Acceleo wiki:
Blogs: &
Re: OWL [message #672216 is a reply to message #668745] Fri, 20 May 2011 10:54 Go to previous message
Ronan B is currently offline Ronan BFriend
Messages: 273
Registered: July 2009
Senior Member
Take a look at It isn't written with Acceleo but uses ATL/Ecore.
Previous Topic:[XPand2] Call template within another project
Next Topic:Acceleo 3.x - differences between ant task launcher and acceleo launcher
Goto Forum:

Current Time: Thu Nov 30 19:03:26 GMT 2023

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

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

Back to the top