Pre-requisit
install pdfminer http://www.unixuser.org/~euske/python/pdfminer/
Extract the TOC
Extract the toc from the pdf with pdfminer
dumppdf.py -T foo.pdf > toc.xml]]</source> </subsection> <subsection name="Extract basic data from the generated toc file"> <source><![CDATA[ cat toc.beta.xml | egrep "<outline|pageno" | tr '\012' "@" | sed s'/\/pageno/\n/g' | awk -F"\"" '{print "REQ-OMG-SYSML14-"$4$5}' | awk -F">" '{print $1"["$3"]"}' | sed 's/<//' | sed 's/ /\t/' | egrep -v "^REQ-OMG-SYSML14-Description|^REQ-OMG-SYSML14-Properties|^REQ-OMG-SYSML14-Constraints|^REQ-OMG-SYSML14-Operations|^REQ-OMG-SYSML14-Package|^REQ-OMG-SYSML14-Attributes"
Layout the data
Generate the elements for each requirements
Create a basic maven java project with the follwoing dependencies
<dependency> <groupId>org.eclipse.emf</groupId> <artifactId>org.eclipse.emf.ecore</artifactId> <version>2.11.0-v20150123-0347</version> </dependency> <dependency> <groupId>org.eclipse.emf</groupId> <artifactId>org.eclipse.emf.common</artifactId> <version>2.11.0-v20150123-0347</version> </dependency>
Make a main class based upon the following code: RequirementGenerator.java
Create a sysml model with the requirements
Create a sysml project and add the requirement data in it
Reference this new model/library from your MDE model project