Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » Question on sample in ATL use case UML2OWL
Question on sample in ATL use case UML2OWL [message #65682] Sat, 03 November 2007 01:11 Go to next message
Eclipse UserFriend
Originally posted by: frantz.uni-koblenz.de

Hello all,

I´m currently examining the Museum sample from the UML2OWL use case in
order to trace some errors I get during transformation from UML to OWL.
While Museum.uml works fine my attempts to model even simple models
containing only one class fail. Could someone give me an information
which UML editor had been used?
From the file itself (Museum.uml) I found out that it must have been
the 'topcased' solution. But still I would be interested in the exact
project type which had been used to create this file.
Do all primitive types need to be defined in the uml file itself or can
they also be imported as other editors do? (In Museum.owl the primitive
types (like String, Boolean, ...) are explicitly defined.)

Sorry for all these questions. I hope I´ve posted those in the right place!

Thanks for your time,
Christopher
Re: Question on sample in ATL use case UML2OWL [message #65819 is a reply to message #65682] Thu, 08 November 2007 17:49 Go to previous messageGo to next message
Guillaume Hillairet is currently offline Guillaume HillairetFriend
Messages: 97
Registered: July 2009
Member
Hi Christopher,

> which UML editor had been used?
The UML models given in this project have been made using the Topcased
editor. I don't remember the exact version where used. But you can simply
use the UML 2 plugin available under eclipse.

> Do all primitive types need to be defined in the uml file itself or can
> they also be imported as other editors do? (In Museum.owl the primitive
> types (like String, Boolean, ...) are explicitly defined.)

The current transformation only support four types of Primitive Types. It
corresponds to uml primitive types available natively with the UML 2
plugin. You can use your own primitive types, but in this case you have to
add the names of those primitive types in the following helper with their
corresponding in OWL.
helper def: primitiveTypeMap : Map(String, String) =
Map {
('String', 'http://www.w3.org/2001/XMLSchema#string '),
('Integer', 'http://www.w3.org/2001/XMLSchema#nonNegativeInteger '),
('Boolean', 'http://www.w3.org/2001/XMLSchema#boolean '),
('UnlimitedNatural', 'http://www.w3.org/2001/XMLSchema#integer ' )
};

Also i noticed that the UML2OWL version you are using may not compile
under the new ATL. You have to remove all the uml:: in the transformation.

Best Regards.

Guillaume
Re: Question on sample in ATL use case UML2OWL [message #65890 is a reply to message #65819] Fri, 09 November 2007 09:41 Go to previous message
Eclipse UserFriend
Originally posted by: Hugo.Bruneliere.univ-nantes.fr

Hi Guillaume & Christopher,

Guillaume Hillairet a écrit :
> Hi Christopher,
>
>> which UML editor had been used?
> The UML models given in this project have been made using the Topcased
> editor. I don't remember the exact version where used. But you can
> simply use the UML 2 plugin available under eclipse.
>> Do all primitive types need to be defined in the uml file itself or
>> can they also be imported as other editors do? (In Museum.owl the
>> primitive types (like String, Boolean, ...) are explicitly defined.)
>
> The current transformation only support four types of Primitive Types.
> It corresponds to uml primitive types available natively with the UML 2
> plugin. You can use your own primitive types, but in this case you have
> to add the names of those primitive types in the following helper with
> their corresponding in OWL.
> helper def: primitiveTypeMap : Map(String, String) =
> Map {
> ('String', 'http://www.w3.org/2001/XMLSchema#string '),
> ('Integer', 'http://www.w3.org/2001/XMLSchema#nonNegativeInteger '),
> ('Boolean', 'http://www.w3.org/2001/XMLSchema#boolean '),
> ('UnlimitedNatural', 'http://www.w3.org/2001/XMLSchema#integer ' )
> };
>
> Also i noticed that the UML2OWL version you are using may not compile
> under the new ATL. You have to remove all the uml:: in the transformation.
>

I just want to notice that the uml:: is still supported by the new ATL
version however it needs to be put between double quotes:
"uml::ModelElementName"
This issue is related to the move of the ATL parser from ANTLRv2 to ANTLRv3.

> Best Regards.
>
> Guillaume
>
>

Best regards,

Hugo

--
--------------------------------------------------------
Hugo Bruneliere - R&D Engineer
ATLAS Group (INRIA & LINA) - University of Nantes
2, rue de la Houssiniere
44322 Nantes Cedex 3 - France
office +33 2 51 12 58 10 /\ cell.+33 6 07 42 45 30
EMail: Hugo.Bruneliere@univ-nantes.fr
http://www.sciences.univ-nantes.fr/lina/atl/
--------------------------------------------------------
Previous Topic:[ATL] Interesting paper on model synchronization presented at the ASE conference in Atlanta this wee
Next Topic:[Announce] The EclipseCon 2008 Submission Deadline is Rapidly Approaching.
Goto Forum:
  


Current Time: Thu Apr 25 04:37:57 GMT 2024

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

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

Back to the top