Question on sample in ATL use case UML2OWL [message #65682] |
Fri, 02 November 2007 21:11  |
Eclipse User |
|
|
|
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 12:49   |
Eclipse User |
|
|
|
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 04:41  |
Eclipse User |
|
|
|
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/
--------------------------------------------------------
|
|
|
Powered by
FUDForum. Page generated in 0.05860 seconds