Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » UML 2.4 schema
UML 2.4 schema [message #1008038] Fri, 08 February 2013 15:43 Go to next message
Luis Manuel Carril Rodriguez is currently offline Luis Manuel Carril RodriguezFriend
Messages: 3
Registered: February 2013
Location: Karlsruhe
Junior Member
Hello!
Is it available somewhere a XSD schema to validate the *.uml files?

As the http://www.eclipse.org/uml2/4.0.0/UML link is broken.

Cheers!
Re: UML 2.4 schema [message #1008067 is a reply to message #1008038] Fri, 08 February 2013 16:03 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

http://www.eclipse.org/uml2/4.0.0/UML is not a link.

There is no XSD for UML. You could generate one by exporting UML.ecore
but it would omit all the OCL validation constraints.

UML should be validated with a UML tool, such as "Validate" in the UML
Model Editor.

Regards

Ed Willink

On 08/02/2013 15:52, Luis Manuel Carril Rodriguez wrote:
> Hello! Is it available somewhere a XSD schema to validate the *.uml
> files?
>
> As the http://www.eclipse.org/uml2/4.0.0/UML link is broken.
>
> Cheers!
Re: UML 2.4 schema [message #1008175 is a reply to message #1008067] Mon, 11 February 2013 09:32 Go to previous messageGo to next message
Luis Manuel Carril Rodriguez is currently offline Luis Manuel Carril RodriguezFriend
Messages: 3
Registered: February 2013
Location: Karlsruhe
Junior Member
Thanks Ed,
I simply wanted to check the syntax of external made *.uml (not validate the UML model), without loading it into the Model editor.
Re: UML 2.4 schema [message #1008282 is a reply to message #1008175] Mon, 11 February 2013 09:54 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Well if you only want syntax, any old XMI checker should be equally
superficial. Have you tried XMI.xsd?

Regards

Ed


On 11/02/2013 09:32, Luis Manuel Carril Rodriguez wrote:
> Thanks Ed, I simply wanted to check the syntax of external made *.uml
> (not validate the UML model), without loading it into the Model editor.
Re: UML 2.4 schema [message #1008589 is a reply to message #1008282] Wed, 13 February 2013 08:44 Go to previous messageGo to next message
Luis Manuel Carril Rodriguez is currently offline Luis Manuel Carril RodriguezFriend
Messages: 3
Registered: February 2013
Location: Karlsruhe
Junior Member
Hi,
Yes I tried the XMI.xsd, but with this I can only check the xmi namespace (nor the uml or the default one); but it´s better than nothing Smile

Regards
Luis
Re: UML 2.4 schema [message #1008612 is a reply to message #1008589] Wed, 13 February 2013 09:45 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
HI

There are at least 4 OMG UML namespaces and perhaps as many again
MDT/UML2 namespaces. You need to use proper tooling.

Regards

Ed Willink

On 13/02/2013 08:44, Luis Manuel Carril Rodriguez wrote:
> Hi,
> Yes I tried the XMI.xsd, but with this I can only check the xmi
> namespace (nor the uml or the default one); but it´s better than
> nothing :)
>
> Regards
> Luis
Re: UML 2.4 schema [message #1384760 is a reply to message #1008612] Sat, 31 May 2014 18:04 Go to previous messageGo to next message
Ayman Yassin Mohamed is currently offline Ayman Yassin MohamedFriend
Messages: 11
Registered: February 2014
Junior Member
Hello All,

how can i get XSD for UML or XSD for XMI?
Re: UML 2.4 schema [message #1384763 is a reply to message #1384760] Sat, 31 May 2014 19:22 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

http://www.omg.org/spec/UML/
http://www.omg.org/spec/XMI/

Regards

Ed Willink


On 31/05/2014 19:04, Ayman Yassin Mohamed wrote:
> Hello All,
>
> how can i get XSD for UML or XSD for XMI?
Re: UML 2.4 schema [message #1385570 is a reply to message #1384763] Mon, 09 June 2014 15:02 Go to previous messageGo to next message
Ayman Yassin Mohamed is currently offline Ayman Yassin MohamedFriend
Messages: 11
Registered: February 2014
Junior Member
according to OMG there is no UML 2 XSD even XMI XSD doesn't have the representation of UML 2 diagrams like activity diagram
so is there is one related to eclipse UML 2?
Re: UML 2.4 schema [message #1385572 is a reply to message #1385570] Mon, 09 June 2014 15:27 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Your message is terse and ambiguous, so I'll guess.

UML 2.5 introduces UMLDI to standardize diagram interchange. Everything
else is proprietary. There is as yet no implementation of UMLDI anywhere.

UMLDI is heavily influenced by GMF Notation, which Papyrus uses, but it
is not the same.

You can use EMF to generate the XSD of any Ecore model.

Regards

Ed Willink






On 09/06/2014 16:02, Ayman Yassin Mohamed wrote:
> according to OMG there is no UML 2 XSD even XMI XSD doesn't have the
> representation of UML 2 diagrams like activity diagram so is there is
> one related to eclipse UML 2?
>
Re: UML 2.4 schema [message #1385600 is a reply to message #1385572] Mon, 09 June 2014 20:10 Go to previous messageGo to next message
Ayman Yassin Mohamed is currently offline Ayman Yassin MohamedFriend
Messages: 11
Registered: February 2014
Junior Member
ok sorry for that i will try to clarify and provide more details our case is:
transforming Coloured Petri Net (CPN) to UML 2 diagrams(activity and use cases)

we have the CPN xml schema and trying to get UML 2 activity diagram/Usecases schema or DTD to perform the required mapping but according to OMG there is no XSD for UML 2 published as stated on the website!!

another issue: the UML diagrams like activity is represented into XMI format when trying to get the published XMI schema 2.4 from OMG it's not expressive we can't find the activity diagrams elements like nodes and so on for mapping

i hope it's clear now and sorry again for any ambiguity
Re: UML 2.4 schema [message #1385624 is a reply to message #1385600] Tue, 10 June 2014 06:49 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Not clear at all.

Even less clear why you want XSD. In 10 years working with Eclipse I
think I've only ever used XSD for dubious compatibility requirements.

Use real models; UML or Ecore. They're already there and have all the
information you need.

Regards

Ed Willink


On 09/06/2014 21:11, Ayman Yassin Mohamed wrote:
> ok sorry for that i will try to clarify and provide more details our
> case is:
> transforming Coloured Petri Net (CPN) to UML 2 diagrams(activity and
> use cases)
>
> we have the CPN xml schema and trying to get UML 2 activity
> diagram/Usecases schema or DTD to perform the required mapping but
> according to OMG there is no XSD for UML 2 published as stated on the
> website!!
> another issue: the UML diagrams like activity is represented into XMI
> format when trying to get the published XMI schema 2.4 from OMG it's
> not expressive we can't find the activity diagrams elements like nodes
> and so on for mapping
>
> i hope it's clear now and sorry again for any ambiguity
Re: UML 2.4 schema [message #1385630 is a reply to message #1385624] Tue, 10 June 2014 07:32 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Ed,

Indeed XML Schemas are useless with regard to specifying the structure
of a well-formed XMI serialization. There's no point in looking for
such schemas and there's no point in trying to use them. They're
useless noise that exist only to give an illusion of some type of XML
Schema conformance. You need an Ecore model to read an XMI
serialization and that's really the only effective way to read an XMI
serialization.

On 10/06/2014 8:49 AM, Ed Willink wrote:
> Hi
>
> Not clear at all.
>
> Even less clear why you want XSD. In 10 years working with Eclipse I
> think I've only ever used XSD for dubious compatibility requirements.
>
> Use real models; UML or Ecore. They're already there and have all the
> information you need.
>
> Regards
>
> Ed Willink
>
>
> On 09/06/2014 21:11, Ayman Yassin Mohamed wrote:
>> ok sorry for that i will try to clarify and provide more details our
>> case is:
>> transforming Coloured Petri Net (CPN) to UML 2 diagrams(activity and
>> use cases)
>>
>> we have the CPN xml schema and trying to get UML 2 activity
>> diagram/Usecases schema or DTD to perform the required mapping but
>> according to OMG there is no XSD for UML 2 published as stated on the
>> website!!
>> another issue: the UML diagrams like activity is represented into XMI
>> format when trying to get the published XMI schema 2.4 from OMG it's
>> not expressive we can't find the activity diagrams elements like
>> nodes and so on for mapping
>>
>> i hope it's clear now and sorry again for any ambiguity
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: UML 2.4 schema [message #1385698 is a reply to message #1385624] Tue, 10 June 2014 14:40 Go to previous messageGo to next message
Ayman Yassin Mohamed is currently offline Ayman Yassin MohamedFriend
Messages: 11
Registered: February 2014
Junior Member
thanks for your reply and sorry we are new to eclipse world we will explain more
1-our mapping process is based on xml mapping using a tool
2-the source mapping model is CPN
3-the target mapping model is UML 2 Activity
4-the tool requires both XSD for source and target models
5- we have CPN XSD but the missing is UML 2 Activity XSD

the questions:
1-can we get UML 2 Activity Schema from eclipse and how?
2-if eclipse with Ecore can make the required mapping and how?

we appreciate your reply and your experience with eclipse too
Re: UML 2.4 schema [message #1385715 is a reply to message #1385698] Tue, 10 June 2014 16:08 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

There are two different worlds;

anarchic XML where Notepad is your friend, and XSD desperately tries to
impose some discipline

disciplined XMI conforming to a metamodel so that many problems just
can't happen. Ecore and its many related tools provide an exemplary
implementation.

Your choice.

Regards

Ed Willink


On 10/06/2014 15:40, Ayman Yassin Mohamed wrote:
> thanks for your reply and sorry we are new to eclipse world we will
> explain more
> 1-our mapping process is based on xml mapping using a tool
> 2-the source mapping model is CPN
> 3-the target mapping model is UML 2 Activity
> 4-the tool requires both XSD for source and target models
> 5- we have CPN XSD but the missing is UML 2 Activity XSD
>
> the questions:
> 1-can we get UML 2 Activity Schema from eclipse and how?
> 2-if eclipse with Ecore can make the required mapping and how?
>
> we appreciate your reply and your experience with eclipse too
Re: UML 2.4 schema [message #1385762 is a reply to message #1385698] Wed, 11 June 2014 05:59 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Ayman,

Comments below.

On 10/06/2014 4:40 PM, Ayman Yassin Mohamed wrote:
> thanks for your reply and sorry we are new to eclipse world we will
> explain more
> 1-our mapping process is based on xml mapping using a tool
Mapping XML directly is likely not a workable solution given the loose
format of XMI.
> 2-the source mapping model is CPN
I don't know what that is.
> 3-the target mapping model is UML 2 Activity
> 4-the tool requires both XSD for source and target models
> 5- we have CPN XSD but the missing is UML 2 Activity XSD
>
> the questions:
> 1-can we get UML 2 Activity Schema from eclipse and how?
No, the *.ecore model is the schema.
> 2-if eclipse with Ecore can make the required mapping and how?
I don't know the nature of what your mapping is doing, but I expect it's
some form of transformation, so there are many ways you could implement
that, one of them being Java code written using the generated APIs of
the two models (e.g., much like XSDEcoreBuilder maps XML Schema to Ecore).
>
> we appreciate your reply and your experience with eclipse too


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: UML 2.4 schema [message #1386577 is a reply to message #1385624] Wed, 18 June 2014 11:14 Go to previous messageGo to next message
Marc-Florian Wendland is currently offline Marc-Florian WendlandFriend
Messages: 83
Registered: January 2013
Member
Hi Ed,

the only thing I am worried about in your statement is

"or Ecore"

What happens if you want to check your XMI in a non-Eclipse (or non-MOF)
world? What will be then alerady there?

To my understanding this is the situation (and it is requested sometimes)
where an XSD might help, right?

Regards,
Marc-Florian



"Ed Willink" wrote in message news:ln69pk$e7s$1@xxxxxxxxe.org...

Hi

Not clear at all.

Even less clear why you want XSD. In 10 years working with Eclipse I
think I've only ever used XSD for dubious compatibility requirements.

Use real models; UML or Ecore. They're already there and have all the
information you need.

Regards

Ed Willink


On 09/06/2014 21:11, Ayman Yassin Mohamed wrote:
> ok sorry for that i will try to clarify and provide more details our case
> is:
> transforming Coloured Petri Net (CPN) to UML 2 diagrams(activity and use
> cases)
>
> we have the CPN xml schema and trying to get UML 2 activity
> diagram/Usecases schema or DTD to perform the required mapping but
> according to OMG there is no XSD for UML 2 published as stated on the
> website!!
> another issue: the UML diagrams like activity is represented into XMI
> format when trying to get the published XMI schema 2.4 from OMG it's not
> expressive we can't find the activity diagrams elements like nodes and so
> on for mapping
>
> i hope it's clear now and sorry again for any ambiguity
Re: UML 2.4 schema [message #1386584 is a reply to message #1386577] Wed, 18 June 2014 11:47 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

It seems to me that you will always be able to isolate your self from
good tools.

What you had to live in a non-XSD or non-XMI or non-XML or non-ASCII world?

If you want total independence then you must re-invent the wheel.

Regards

Ed Willink

On 18/06/2014 12:14, Marc-Florian Wendland wrote:
> Hi Ed,
>
> the only thing I am worried about in your statement is
>
> "or Ecore"
>
> What happens if you want to check your XMI in a non-Eclipse (or
> non-MOF) world? What will be then alerady there?
>
> To my understanding this is the situation (and it is requested
> sometimes) where an XSD might help, right?
>
> Regards,
> Marc-Florian
>
>
>
> "Ed Willink" wrote in message news:ln69pk$e7s$1@xxxxxxxxe.org...
>
> Hi
>
> Not clear at all.
>
> Even less clear why you want XSD. In 10 years working with Eclipse I
> think I've only ever used XSD for dubious compatibility requirements.
>
> Use real models; UML or Ecore. They're already there and have all the
> information you need.
>
> Regards
>
> Ed Willink
>
>
> On 09/06/2014 21:11, Ayman Yassin Mohamed wrote:
>> ok sorry for that i will try to clarify and provide more details our
>> case is:
>> transforming Coloured Petri Net (CPN) to UML 2 diagrams(activity and
>> use cases)
>>
>> we have the CPN xml schema and trying to get UML 2 activity
>> diagram/Usecases schema or DTD to perform the required mapping but
>> according to OMG there is no XSD for UML 2 published as stated on the
>> website!!
>> another issue: the UML diagrams like activity is represented into XMI
>> format when trying to get the published XMI schema 2.4 from OMG it's
>> not expressive we can't find the activity diagrams elements like
>> nodes and so on for mapping
>>
>> i hope it's clear now and sorry again for any ambiguity
>
Re: UML 2.4 schema [message #1386633 is a reply to message #1386584] Wed, 18 June 2014 21:21 Go to previous messageGo to next message
Marc-Florian Wendland is currently offline Marc-Florian WendlandFriend
Messages: 83
Registered: January 2013
Member
Hi Ed,

I was just surprised when I started to learn more about XMI that nobody
thinks XSD for a specific XMI makes sense. So what are the XML schema
production rules for in the XMI standard. Aren't they explicetly
incorporated for being able to expresss an XSD. If there is no use for a
XSD, the spec could remove the production rules completely, couldn' it?

But at least the MOF and non-MOF-based world is not a theoretic construct
but reality. Specs like ReqIF and TestIF have been deliberately abandoned
XMI as serialization format, since in the enviroments that work with those
languages are usually non-MOF-based environments.

Regards,
Marc-Florian




"Ed Willink" wrote in message news:lnru8p$ab$2@xxxxxxxxe.org...

Hi

It seems to me that you will always be able to isolate your self from
good tools.

What you had to live in a non-XSD or non-XMI or non-XML or non-ASCII world?

If you want total independence then you must re-invent the wheel.

Regards

Ed Willink

On 18/06/2014 12:14, Marc-Florian Wendland wrote:
> Hi Ed,
>
> the only thing I am worried about in your statement is
>
> "or Ecore"
>
> What happens if you want to check your XMI in a non-Eclipse (or non-MOF)
> world? What will be then alerady there?
>
> To my understanding this is the situation (and it is requested sometimes)
> where an XSD might help, right?
>
> Regards,
> Marc-Florian
>
>
>
> "Ed Willink" wrote in message news:ln69pk$e7s$1@xxxxxxxxe.org...
>
> Hi
>
> Not clear at all.
>
> Even less clear why you want XSD. In 10 years working with Eclipse I
> think I've only ever used XSD for dubious compatibility requirements.
>
> Use real models; UML or Ecore. They're already there and have all the
> information you need.
>
> Regards
>
> Ed Willink
>
>
> On 09/06/2014 21:11, Ayman Yassin Mohamed wrote:
>> ok sorry for that i will try to clarify and provide more details our case
>> is:
>> transforming Coloured Petri Net (CPN) to UML 2 diagrams(activity and use
>> cases)
>>
>> we have the CPN xml schema and trying to get UML 2 activity
>> diagram/Usecases schema or DTD to perform the required mapping but
>> according to OMG there is no XSD for UML 2 published as stated on the
>> website!!
>> another issue: the UML diagrams like activity is represented into XMI
>> format when trying to get the published XMI schema 2.4 from OMG it's not
>> expressive we can't find the activity diagrams elements like nodes and so
>> on for mapping
>>
>> i hope it's clear now and sorry again for any ambiguity
>
Re: UML 2.4 schema [message #1386652 is a reply to message #1386633] Thu, 19 June 2014 07:36 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Marc-Florian,

Comments below.

On 18/06/2014 11:21 PM, Marc-Florian Wendland wrote:
> Hi Ed,
>
> I was just surprised when I started to learn more about XMI that
> nobody thinks XSD for a specific XMI makes sense. So what are the XML
> schema production rules for in the XMI standard.
To give a nice cozy, yet delusional, feeling that your XMI isn't just
parsed as xsd:anyType.
> Aren't they explicetly incorporated for being able to expresss an XSD.
Indeed, it's a question of what does a validating parser really
accomplish using that schema. Primarily the result is to parse pretty
much everything as xsd:anyType, so I claim it's the most complex way of
turning off validation that I've ever seen.
> If there is no use for a XSD, the spec could remove the production
> rules completely, couldn' it?
That's a discussion to have with those spec authors. Having
implemented the XML Schema specification and having implemented the
mapping from Ecore to an "XMI Schema" I do have a little bit of
experience with these things, so I've told you my experienced opinion...
>
> But at least the MOF and non-MOF-based world is not a theoretic
> construct but reality.
So take my word for it that an XMI Schema is not useful, it's a
synthetic construct of effectively zero value. So in reality, don't
expect any reasonable amount of validation for an XMI serialization
unless you write an XMI deserializer, and for that you need the MOF
model, not an XML Schema.
> Specs like ReqIF and TestIF have been deliberately abandoned XMI as
> serialization format, since in the enviroments that work with those
> languages are usually non-MOF-based environments.
So that's further evidence to argue that if it's important to process
the XML directly with other tools that have no understanding of MOF,
you'll need to think carefully about defining that serialization format
with a properly designed XML Schema rather than expect an XMI Schema to
do that job.

If you avoid multiple inheritance and avoid using XMIResourceImpl in
favor of XMLResourceImpl, the XML Schema exported for your Ecore model
likely will serve your purpose much better.
>
> Regards,
> Marc-Florian
>
>
>
>
> "Ed Willink" wrote in message news:lnru8p$ab$2@xxxxxxxxe.org...
>
> Hi
>
> It seems to me that you will always be able to isolate your self from
> good tools.
>
> What you had to live in a non-XSD or non-XMI or non-XML or non-ASCII
> world?
>
> If you want total independence then you must re-invent the wheel.
>
> Regards
>
> Ed Willink
>
> On 18/06/2014 12:14, Marc-Florian Wendland wrote:
>> Hi Ed,
>>
>> the only thing I am worried about in your statement is
>>
>> "or Ecore"
>>
>> What happens if you want to check your XMI in a non-Eclipse (or
>> non-MOF) world? What will be then alerady there?
>>
>> To my understanding this is the situation (and it is requested
>> sometimes) where an XSD might help, right?
>>
>> Regards,
>> Marc-Florian
>>
>>
>>
>> "Ed Willink" wrote in message news:ln69pk$e7s$1@xxxxxxxxe.org...
>>
>> Hi
>>
>> Not clear at all.
>>
>> Even less clear why you want XSD. In 10 years working with Eclipse I
>> think I've only ever used XSD for dubious compatibility requirements.
>>
>> Use real models; UML or Ecore. They're already there and have all the
>> information you need.
>>
>> Regards
>>
>> Ed Willink
>>
>>
>> On 09/06/2014 21:11, Ayman Yassin Mohamed wrote:
>>> ok sorry for that i will try to clarify and provide more details our
>>> case is:
>>> transforming Coloured Petri Net (CPN) to UML 2 diagrams(activity and
>>> use cases)
>>>
>>> we have the CPN xml schema and trying to get UML 2 activity
>>> diagram/Usecases schema or DTD to perform the required mapping but
>>> according to OMG there is no XSD for UML 2 published as stated on
>>> the website!!
>>> another issue: the UML diagrams like activity is represented into
>>> XMI format when trying to get the published XMI schema 2.4 from OMG
>>> it's not expressive we can't find the activity diagrams elements
>>> like nodes and so on for mapping
>>>
>>> i hope it's clear now and sorry again for any ambiguity
>>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: UML 2.4 schema [message #1387081 is a reply to message #1386633] Tue, 24 June 2014 01:35 Go to previous messageGo to next message
Ayman Yassin Mohamed is currently offline Ayman Yassin MohamedFriend
Messages: 11
Registered: February 2014
Junior Member
Hello All,
when translating XML documents into UML diagrams one can choose to execute the actual transformation in either the XML or the MDA technical space.
i think if we will use the MDA technical space there are many known approaches and depends on your problem then u will need MOF and ECORE.
if u will go to XML technical space (no MOF) i think we will need XSD

Regards
Ayman
Re: UML 2.4 schema [message #1387174 is a reply to message #1387081] Tue, 24 June 2014 15:35 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Ayman,

Comments below.

On 24/06/2014 3:35 AM, Ayman Yassin Mohamed wrote:
> Hello All,
> when translating XML documents
What kind of documents?
> into UML diagrams one can choose to execute the actual transformation
> in either the XML or the MDA technical space.
In what tool?
> i think if we will use the MDA technical space there are many known
> approaches and depends on your problem then u will need MOF and ECORE.
> if u will go to XML technical space (no MOF) i think we will need XSD
For what do you need an XML Schema? Only the original XML?

I'll assert yet again that an XSD for UML's XMI serialization can't
possibly be useful. For example, consider
http://git.eclipse.org/c/uml2/org.eclipse.uml2.git/tree/plugins/org.eclipse.uml2.uml/model/UML.uml.
You can see it uses xmi:type extensively, but as far as the XML Schema
for this attribute, it's just data, i.e., validated that it's a well
formed QName. It's not even xsi:type that an XML Schema processor would
recognize as a directive to process the content of the element according
to the complex type specified by that QName.

Now consider one example of the use of an xmi:type:

| <packagedElement xmi:type="uml:Association" xmi:id="_epbu4EzPEeO2z-YY6ENIIA" name="A_clientDependency_client" memberEnd="_lGLv4EzPEeO2z-YY6ENIIA _sD4acEzSEeO2z-YY6ENIIA">
<ownedEnd xmi:id="_lGLv4EzPEeO2z-YY6ENIIA" visibility="private" type="_rEDGkGwKEdq7X4sGURiZYA" association="_epbu4EzPEeO2z-YY6ENIIA">
<lowerValue xmi:type="uml:LiteralInteger" xmi:id="_BHS38EzVEeO2z-YY6ENIIA"/>
<upperValue xmi:type="uml:LiteralUnlimitedNatural" xmi:id="_rQyQ8EzPEeO2z-YY6ENIIA" value="*"/>
</ownedEnd>
</packagedElement>
|

Here we have a packagedElement and the xmi:type tells us (an XMI
processor) that it's an Association. That's what we need to know to
know that attributes like "memberEnd" and elements like "ownedElement"
are valid and meaningful in this context. Unfortunately, none of this
can be meaningfully expressed as an XML Schema so none of this can be
known and validated by a standard conforming XML processor. Only a
standard XMI processor can validate this type of XML, and it must have
knowledge of the model, i.e., UML.ecore or its EMOF analog.

So not only do I think you don't need an XML Schema, I think if you
actually had one you'd find it completely useless with respect to
processing XMI serializations.

> Regards
> Ayman


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: UML 2.4 schema [message #1387348 is a reply to message #1387174] Wed, 25 June 2014 01:19 Go to previous messageGo to next message
Ayman Yassin Mohamed is currently offline Ayman Yassin MohamedFriend
Messages: 11
Registered: February 2014
Junior Member
Ed Merks,

for sure you are right but actually not all cases are the same for example:
if your source model is represented in XML+XSD not XMI and you don't have it's metamodel
on the other hand the target model is UML 2 diagrams without XML or XSD but with XMI and MOF.
so i think one of the solutions to bridge the gab between two technical spaces is to have UML 2 models(Activity...)represented in XML and with XSD so we can perform the mapping and required validation

Regards
Re: UML 2.4 schema [message #1387421 is a reply to message #1387348] Wed, 25 June 2014 04:11 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
Ayman,

Comments below.

On 25/06/2014 3:19 AM, Ayman Yassin Mohamed wrote:
> Ed Merks,
>
> for sure you are right but actually not all cases are the same for
> example:
> if your source model is represented in XML+XSD not XMI
Yes of course if there is an XSD you could work with it. EMF also
provides a mapping from XSD -> Ecore which can be used to read such XML...
> and you don't have it's metamodel
XSD is a metamodel so if you have the XSD, you implicitly have an Ecore
model...
> on the other hand the target model is UML 2 diagrams without XML or
> XSD but with XMI and MOF.
> so i think one of the solutions to bridge the gab between two
> technical spaces is to have UML 2 models(Activity...)represented in
> XML and with XSD
Given that UML support multiple inheritance and XML Schema does not,
that seems technically infeasible. Furthermore, given XSD's very poor
support for cross references (untyped xsd:IDREF and xsd:anyURI which is
semantically no different from xsd:string), processing cross references
in a meaningful way also seems technically infeasible. Therefore, given
that XSD maps to Ecore, it seems technically superior to do mapping by
assuming you always have a model, rather than trying to come up with a
different serialization for UML for which there is a schema so you can
do processing at such a dumbed-down level.
> so we can perform the mapping and required validation
> Regards


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: UML 2.4 schema [message #1406223 is a reply to message #1008067] Sat, 09 August 2014 11:17 Go to previous messageGo to next message
Ayman Yassin Mohamed is currently offline Ayman Yassin MohamedFriend
Messages: 11
Registered: February 2014
Junior Member
Hi ED,
as 'm new to EMF platform i have two points:
1)how can i export ecore.uml to have the required UML schema
2)what are the drawbacks for not having OCL constraints

thanks
Ayman
Re: UML 2.4 schema [message #1406252 is a reply to message #1406223] Sat, 09 August 2014 13:25 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

As discussed to death on this and other threads; once you understand EMF
/ UML / XMI modeling you will realize that using XSD as an Ecore / UML
model validation technology is quite mad.

You can generate the useless XSD using a genmodel option.

The utility of OCL depends on your metamodel. Simple metamodels may have
no OCL constraints, so omitting the OCL has no effect. Complex
metamodels may mean that without OCL, basic structural validation may
cover only 10% of the problems that may be present. So to all intents
and purposes you discard all significant validation. Note also that the
constraints expressed in OCL may be the less obvious ones and so the
ones that particularly need validating.

Regards

Ed Willink

On 09/08/2014 12:17, Ayman Yassin Mohamed wrote:
> Hi ED,
> as 'm new to EMF platform i have two points:
> 1)how can i export ecore.uml to have the required UML schema
> 2)what are the drawbacks for not having OCL constraints
>
> thanks
> Ayman
Re: UML 2.4 schema [message #1406577 is a reply to message #1406252] Sun, 10 August 2014 13:32 Go to previous messageGo to next message
Ayman Yassin Mohamed is currently offline Ayman Yassin MohamedFriend
Messages: 11
Registered: February 2014
Junior Member
Eid first of all thanks for your reply and valuable information
Second we are forced to use the required schema as our case as follows if you have any better idea as an expert for sure you are welcomed:
1-the case is model to model transformation from Colured Petri Nets (CPN) to UML models (activity and use case)
2-CPN is in XML technical space and UML is MDA technical space
3-XMI work as a projector from MDA to XML technical space
4-the transformation is based on schema mapping via a CASE tool
5-CPN has XML schema and doesn't have metamodel published
6-CPN doesn't have also XMI serialization

so we are trying to get any form of UML models(activity, use case) schema to perform the required mapping with our mapping rules
i hope the whole picture is clear now and why we are forced to go with the XML technical space


Re: UML 2.4 schema [message #1407153 is a reply to message #1406577] Tue, 12 August 2014 01:47 Go to previous message
Ayman Yassin Mohamed is currently offline Ayman Yassin MohamedFriend
Messages: 11
Registered: February 2014
Junior Member
one more thing its more related to schema mapping rather than validation of course the validation will be the next step but the most required is the mapping between the two models
Previous Topic:Cannot Apply SysML Stereotypes
Next Topic:Java code on how to copy UML package to another UML Package
Goto Forum:
  


Current Time: Fri Mar 29 14:01:25 GMT 2024

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

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

Back to the top