|
Re: OWL [message #669401 is a reply to message #668745] |
Tue, 10 May 2011 08:27   |
|
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('http://www.eclipse.org/2002/Ecore')]
[template public myTemplate(anEClass : EClass)]
<owl:ObjectProperty rdf:ID="[anEClass.name/]">
<rdfs:subPropertyOf rdf:resource="http://www.w3.org/2002/07/owl#SomeProperty"/>
<rdfs:comment xml:lang="en"></rdfs:comment>
<rdfs:label xml:lang="en">[anEClass.name/]</rdfs:label>
</owl:ObjectProperty>
[/template]
I don't know the "owl" specification but you have the general idea.
Stephane Begaudeau, Obeo
--
Twitter: @sbegaudeau
Acceleo wiki: http://wiki.eclipse.org/Acceleo
Blogs: http://stephanebegaudeau.tumblr.com & http://sbegaudeau.tumblr.com
|
|
|
|
Powered by
FUDForum. Page generated in 0.01751 seconds