Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsReqIF and Gendoc
https://www.eclipse.org/forums/index.php/mv/msg/1067736/1699319/#msg_1699319
I would be very interested in knowing how I would accomplish querying ReqIF model using gendoc. As far as I understand Gendoc is enabled to reference any EMF model as datasource and use M2T language to query the reference model. However I am a bit lost when it comes to ReqIF . Is there anyone that has already done this and maybe give me a hint on how I can go about querying my model using M2T? Any hint is appreciated.
best regards
Axel Thor]]>Axel Thor Asthorsson2015-06-23T11:14:05-00:00Re: ReqIF and Gendoc
https://www.eclipse.org/forums/index.php/mv/msg/1067736/1699853/#msg_1699853
Interesting question, but at least I have not a clue. However, this sounds a great feature for RMF. If you make progress, it would be great if you could share your discoveries with the RMF community. It would be a valuable addition to the project.
Cheers,
- Michael]]>Michael Jastram2015-06-27T10:44:11-00:00Re: ReqIF and Gendoc
https://www.eclipse.org/forums/index.php/mv/msg/1067736/1700972/#msg_1700972
I was able to load the reqif file directly like any other EMF model in my word template. Eclipse seems to convert the reqif xml to a model very similar (or even identical) to the ReqIF CMOF defined by OMG (omg.org/spec/ReqIF/1.1/]) By understanding the structure of the CMOF you are able to retrieve the information needed from the model. However the queries tend to get a bit big when the model contains requirement types with many custom attributes since looping through all attributes is needed to search for the right one.
I used the Acceleo interpreter to formalize my queries to the requirement model. It recognized the reqif cmof meta model and has a nice auto complete feature when writing queries. To make correct queries to be used in your word or odt template make sure to open the ReqIF model in Ecore Reflective sample editor and select the root ReqIF element since that is the place from where the queries are made in gendoc (unless you specify something else).
regards
Axel Thor]]>Axel Thor Asthorsson2015-07-08T13:02:17-00:00Re: ReqIF and Gendoc
https://www.eclipse.org/forums/index.php/mv/msg/1067736/1702284/#msg_1702284
Quote:
I was able to load the reqif file directly like any other EMF model in my word template. Eclipse seems to convert the reqif xml to a model very similar (or even identical) to the ReqIF CMOF defined by OMG (omg.org/spec/ReqIF/1.1/]) By understanding the structure of the CMOF you are able to retrieve the information needed from the model. However the queries tend to get a bit big when the model contains requirement types with many custom attributes since looping through all attributes is needed to search for the right one.
I used the Acceleo interpreter to formalize my queries to the requirement model. It recognized the reqif cmof meta model and has a nice auto complete feature when writing queries. To make correct queries to be used in your word or odt template make sure to open the ReqIF model in Ecore Reflective sample editor and select the root ReqIF element since that is the place from where the queries are made in gendoc (unless you specify something else).
Can you give some more detailed instructions to someone perhaps lesser programming savvy. I do system engineering (thus avid SysML user), but I don't know too much about Eclipse other than creating diagrams in Papyrus.
Regards,
Tomas Sandkvist]]>Tomas Sandkvist2015-07-21T10:29:07-00:00Re: ReqIF and Gendoc
https://www.eclipse.org/forums/index.php/mv/msg/1067736/1766471/#msg_1766471
Can you please explain in steps & share how you have generate document from ReqIF file.
Axel Thor Asthorsson wrote on Wed, 08 July 2015 13:02
Hi
I was able to load the reqif file directly like any other EMF model in my word template. Eclipse seems to convert the reqif xml to a model very similar (or even identical) to the ReqIF CMOF defined by OMG (omg.org/spec/ReqIF/1.1/]) By understanding the structure of the CMOF you are able to retrieve the information needed from the model. However the queries tend to get a bit big when the model contains requirement types with many custom attributes since looping through all attributes is needed to search for the right one.
I used the Acceleo interpreter to formalize my queries to the requirement model. It recognized the reqif cmof meta model and has a nice auto complete feature when writing queries. To make correct queries to be used in your word or odt template make sure to open the ReqIF model in Ecore Reflective sample editor and select the root ReqIF element since that is the place from where the queries are made in gendoc (unless you specify something else).