Firts I will explain what I want to do. I want to encode the exported XMI by a certain casetool into an JavaObject. So the exported XMI object I want to encode in an UMLModel JavaObject. So for this I am looking for a metamodel which describes fully the exported xmi. So als for the UML content. Which metamodels I can use for this because I want to make an ontology for all the UML aspects so I can decode/encode the exported XMI into a JavaObject automatically. Can anyone advise me how to do this?
I'm not sure I follow, but the EMF project supports serializing and
deserializing model instances as XMI. So the UML project supports this
for UML2 instance. You've read the introductory material for UML2 for
how to read and write instances?
Randi wrote:
> Hello all,
>
> Firts I will explain what I want to do. I want to encode the exported
> XMI by a certain casetool into an JavaObject. So the exported XMI
> object I want to encode in an UMLModel JavaObject. So for this I am
> looking for a metamodel which describes fully the exported xmi. So als
> for the UML content. Which metamodels I can use for this because I
> want to make an ontology for all the UML aspects so I can
> decode/encode the exported XMI into a JavaObject automatically. Can
> anyone advise me how to do this?
>
>
> Many thanks
A developper makes a UMLModel eg in Eclipse or another tool let say ArgoUML. Then this model is exported in XMI for interchange. What I want to do is import this model into the Jade(multi-agent tilab) platform in the contentslot as XMI.So I want to give as content to an agent the XMI . But within this agent I need to show some metrics about this model eg amount of classes, amount of operations etc.So I thought to decode the xmi within the agent in a Java Object(s) so I can use some methods to organise the metrics. What I need to do is make an ontology for the UMLModel in the Jade environment . So how is the exported XMI build up , or where can I find some more information about it.How can I parse this XMI with UML modelcontent
I thought to do this in Protege by importing the UML2XMI.xsd, but this failed due to a bad structure.
If I find a way to build up an ontology for the UMLModel I can decode/encode this into JavaObject(s)
There's org.eclipse.uml2.uml/model/UML.ecore which is the Ecore model
for UML. EMF using that information to serialize and deserialize
instances. Ecore is isomorphic to the OMG's EMOF and can be serialized
in that form with the Sample Ecore Editor by saving to a file with emof
extension.
Randi wrote:
> Hello Ed,
>
> Thanks for the reply.
>
> Wel what I wanted to do is the following:
>
> A developper makes a UMLModel eg in Eclipse or another tool let say
> ArgoUML. Then this model is exported in XMI for interchange. What I
> want to do is import this model into the Jade(multi-agent tilab)
> platform in the contentslot as XMI.So I want to give as content to an
> agent the XMI . But within this agent I need to show some metrics
> about this model eg amount of classes, amount of operations etc.So I
> thought to decode the xmi within the agent in a Java Object(s) so I
> can use some methods to organise the metrics. What I need to do is
> make an ontology for the UMLModel in the Jade environment . So how is
> the exported XMI build up , or where can I find some more information
> about it.How can I parse this XMI with UML modelcontent
> I thought to do this in Protege by importing the UML2XMI.xsd, but this
> failed due to a bad structure.
>
> If I find a way to build up an ontology for the UMLModel I can
> decode/encode this into JavaObject(s)