ontomde-demos 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (313) hide show
  1. data/History.txt +2 -0
  2. data/Manifest.txt +312 -0
  3. data/README.txt +48 -0
  4. data/Rakefile +22 -0
  5. data/bin/ontomde-demos-install +10 -0
  6. data/demo/adobe-flex/1-unpack.bat +6 -0
  7. data/demo/adobe-flex/1-unpack.sh +5 -0
  8. data/demo/adobe-flex/2-generate.bat +4 -0
  9. data/demo/adobe-flex/2-generate.sh +5 -0
  10. data/demo/adobe-flex/3-flex.bat +4 -0
  11. data/demo/adobe-flex/3-flex.sh +4 -0
  12. data/demo/adobe-flex/4-start-webapp.bat +7 -0
  13. data/demo/adobe-flex/4-start-webapp.sh +4 -0
  14. data/demo/adobe-flex/9-eclipse.bat +5 -0
  15. data/demo/adobe-flex/9-eclipse.sh +6 -0
  16. data/demo/adobe-flex/README.txt +79 -0
  17. data/demo/adobe-flex/domain/pom.xml +61 -0
  18. data/demo/adobe-flex/ear/pom.xml +160 -0
  19. data/demo/adobe-flex/flex2_sdk/README.txt +7 -0
  20. data/demo/adobe-flex/flex2_sdk/flex2_sdk_hf1_download.URL +2 -0
  21. data/demo/adobe-flex/mda/.ontomde-java +75 -0
  22. data/demo/adobe-flex/mda/clean-generated.sh +24 -0
  23. data/demo/adobe-flex/mda/pom.xml +110 -0
  24. data/demo/adobe-flex/mda/src/main/mda/customDataTypes.rb +5 -0
  25. data/demo/adobe-flex/mda/src/main/mda/dbDiscriminatorCache.rb +74 -0
  26. data/demo/adobe-flex/mda/src/main/mda/javaMapping.rb-notused +302 -0
  27. data/demo/adobe-flex/mda/src/main/mda/mda.rb +0 -0
  28. data/demo/adobe-flex/mda/src/main/model/.project +11 -0
  29. data/demo/adobe-flex/mda/src/main/model/model.emx +1779 -0
  30. data/demo/adobe-flex/mda/src/main/model/model.emx.nt +3575 -0
  31. data/demo/adobe-flex/mda/src/main/model/model.emx.nt_kb.pprj +1496 -0
  32. data/demo/adobe-flex/mda/src/main/model/model.emx.nt_kb.rdf +25 -0
  33. data/demo/adobe-flex/mda/src/main/model/model.emx.nt_kb.rdfs +2242 -0
  34. data/demo/adobe-flex/mda/src/main/resources/formatter.properties +260 -0
  35. data/demo/adobe-flex/pom.xml +97 -0
  36. data/demo/adobe-flex/projectbase/pom.xml +132 -0
  37. data/demo/adobe-flex/webapp/pom.xml +126 -0
  38. data/demo/apache-struts-mesContacts/1-base.bat +6 -0
  39. data/demo/apache-struts-mesContacts/1-base.sh +6 -0
  40. data/demo/apache-struts-mesContacts/2-unpack.bat +6 -0
  41. data/demo/apache-struts-mesContacts/2-unpack.sh +6 -0
  42. data/demo/apache-struts-mesContacts/3-generate.bat +4 -0
  43. data/demo/apache-struts-mesContacts/3-generate.sh +7 -0
  44. data/demo/apache-struts-mesContacts/4-start-webapp-nosecurity.bat +4 -0
  45. data/demo/apache-struts-mesContacts/4-start-webapp-nosecurity.sh +6 -0
  46. data/demo/apache-struts-mesContacts/5-start-webapp.bat +7 -0
  47. data/demo/apache-struts-mesContacts/5-start-webapp.sh +6 -0
  48. data/demo/apache-struts-mesContacts/9-eclipse.bat +5 -0
  49. data/demo/apache-struts-mesContacts/9-eclipse.sh +8 -0
  50. data/demo/apache-struts-mesContacts/domain/pom.xml +77 -0
  51. data/demo/apache-struts-mesContacts/domain/src/main/java/gUI/ContactList.java +400 -0
  52. data/demo/apache-struts-mesContacts/domain/src/main/java/service/ContactManager.java +162 -0
  53. data/demo/apache-struts-mesContacts/domain/src/main/java/service/ContactManagerImpl.java +68 -0
  54. data/demo/apache-struts-mesContacts/domain/src/main/java/xmda/security/GlobalComputedAccessControlCriteria.java +29 -0
  55. data/demo/apache-struts-mesContacts/domain/src/main/java/xmda/security/GlobalComputedAccessControlCriteria.java.mda +37 -0
  56. data/demo/apache-struts-mesContacts/domain/src/main/java/xmda/security/ProviderImpl.java +303 -0
  57. data/demo/apache-struts-mesContacts/mda/.ontomde-java +71 -0
  58. data/demo/apache-struts-mesContacts/mda/clean-generated.sh +24 -0
  59. data/demo/apache-struts-mesContacts/mda/pom.xml +75 -0
  60. data/demo/apache-struts-mesContacts/mda/src/main/mda/customDataTypes.rb +6 -0
  61. data/demo/apache-struts-mesContacts/mda/src/main/mda/dbDiscriminatorCache.rb +88 -0
  62. data/demo/apache-struts-mesContacts/mda/src/main/mda/mda.rb +0 -0
  63. data/demo/apache-struts-mesContacts/mda/src/main/model/.project +12 -0
  64. data/demo/apache-struts-mesContacts/mda/src/main/model/model.emx +2106 -0
  65. data/demo/apache-struts-mesContacts/mda/src/main/model/model.emx.nt +4449 -0
  66. data/demo/apache-struts-mesContacts/mda/src/main/model/model.emx.nt.pprj +1509 -0
  67. data/demo/apache-struts-mesContacts/mda/src/main/model/model.emx.nt.rdf +173 -0
  68. data/demo/apache-struts-mesContacts/mda/src/main/model/model.emx.nt.rdfs +2501 -0
  69. data/demo/apache-struts-mesContacts/mda/src/main/resources/formatter.properties +260 -0
  70. data/demo/apache-struts-mesContacts/pom.xml +20 -0
  71. data/demo/apache-struts-mesContacts/projectbase/pom.xml +123 -0
  72. data/demo/apache-struts-mesContacts/webapp/pom.xml +304 -0
  73. data/demo/apache-struts-mesContacts/webapp/src/main/java/gUI/methods/struts/ContactListnewContactMPCStrutsAction.java +392 -0
  74. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/all.jsp +1 -0
  75. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/index.jsp +15 -0
  76. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/index.jsp.mda +930 -0
  77. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/pages/domain/form/Contactall.jsp +211 -0
  78. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/pages/domain/form/Contactall.jsp.mda +1247 -0
  79. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/pages/gUI/form/ContactListall.jsp +235 -0
  80. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/pages/gUI/form/ContactListall.jsp.mda +1086 -0
  81. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/pages/gUI/methods/form/ContactListnewContactMPCall.jsp +143 -0
  82. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/pages/gUI/methods/form/ContactListnewContactMPCall.jsp.mda +1041 -0
  83. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/pages/menu.inc +229 -0
  84. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/add_photo.gif +0 -0
  85. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/attention.gif +0 -0
  86. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/back.gif +0 -0
  87. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/bck_table.gif +0 -0
  88. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/bkg_maligne_gauche_new.gif +0 -0
  89. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/bkg_maligne_new.gif +0 -0
  90. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/bottom.gif +0 -0
  91. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/bt_center.gif +0 -0
  92. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/bt_center_off.gif +0 -0
  93. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/bt_left.gif +0 -0
  94. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/bt_left_off.gif +0 -0
  95. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/bt_right.gif +0 -0
  96. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/bt_right_off.gif +0 -0
  97. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/contact.css +609 -0
  98. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/corner_bottom_left.gif +0 -0
  99. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/corner_bottom_right.gif +0 -0
  100. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/corner_left.gif +0 -0
  101. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/dispo_off.gif +0 -0
  102. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/dispo_on.gif +0 -0
  103. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/export1.gif +0 -0
  104. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/export2.gif +0 -0
  105. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/extraire.gif +0 -0
  106. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/favicon.ico +0 -0
  107. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/fleche.gif +0 -0
  108. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/flecheon.gif +0 -0
  109. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/import1.gif +0 -0
  110. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/import2.gif +0 -0
  111. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/import3.gif +0 -0
  112. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/imprimer.gif +0 -0
  113. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/index.css +611 -0
  114. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/index.dat +7 -0
  115. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/index.html +587 -0
  116. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/left_table.gif +0 -0
  117. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/line.gif +0 -0
  118. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/lineverti.gif +0 -0
  119. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/menu.css +88 -0
  120. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/modifier.gif +0 -0
  121. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/nav.gif +0 -0
  122. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/new.css +470 -0
  123. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/on_mobile.gif +0 -0
  124. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/on_sim_card.gif +0 -0
  125. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/onglet_1_2_on.gif +0 -0
  126. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/onglet_1_3_off.gif +0 -0
  127. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/onglet_2_1_on.gif +0 -0
  128. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/order_up.gif +0 -0
  129. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/picto_ecarte.gif +0 -0
  130. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/picto_email.gif +0 -0
  131. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/picto_fax.gif +0 -0
  132. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/picto_fax2.gif +0 -0
  133. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/picto_home.gif +0 -0
  134. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/picto_home2.gif +0 -0
  135. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/picto_messagerie.gif +0 -0
  136. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/picto_mobile.gif +0 -0
  137. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/picto_mobile2.gif +0 -0
  138. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/picto_secondaire.gif +0 -0
  139. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/picto_sms.gif +0 -0
  140. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/picto_supprimer.gif +0 -0
  141. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/picto_visio.gif +0 -0
  142. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/picto_work.gif +0 -0
  143. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/picto_work2.gif +0 -0
  144. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/point.gif +0 -0
  145. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/print.gif +0 -0
  146. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/profile_homme.gif +0 -0
  147. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/right_table.gif +0 -0
  148. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/right_table_fiche.gif +0 -0
  149. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/tt_encart_infos1.gif +0 -0
  150. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/tt_encart_infos2.gif +0 -0
  151. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/unlimited.gif +0 -0
  152. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/verifier.gif +0 -0
  153. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/vide.gif +0 -0
  154. data/demo/apache-struts-mesContacts/webapp/src/main/webapp/res/voir.gif +0 -0
  155. data/demo/core/README.txt +43 -0
  156. data/demo/core/demo-dsl/bpm.pprj +1745 -0
  157. data/demo/core/demo-dsl/bpm.rdf +140 -0
  158. data/demo/core/demo-dsl/bpm.rdfs +231 -0
  159. data/demo/core/demo-dsl/main_demo_dsl_structured.rb +60 -0
  160. data/demo/core/demo-dumpUMLMetaModel/demo_dump_uml2.rb +144 -0
  161. data/demo/core/demo-generateXML/README.txt +30 -0
  162. data/demo/core/demo-generateXML/main_demo_flatcode.rb +51 -0
  163. data/demo/core/demo-generateXML/main_demo_structured.rb +65 -0
  164. data/demo/core/demo-generateXML/main_demo_template.rb +62 -0
  165. data/demo/core/demo-uml-browsing/main_demo_uml_browsing.rb +49 -0
  166. data/demo/core/demo-umlStateMachine/demo_umlStateMachine.rb +169 -0
  167. data/demo/core/demo-umlStateMachine/model/.project +11 -0
  168. data/demo/core/demo-umlStateMachine/model/StateMachine.PNG +0 -0
  169. data/demo/core/demo-umlStateMachine/model/stateMachine.emx +594 -0
  170. data/demo/core/demo-umlStateMachine/model/stateMachine.emx.nt +2527 -0
  171. data/demo/core/model/README.txt +1 -0
  172. data/demo/core/model/model.emx +1779 -0
  173. data/demo/core/model/model.emx.nt +3575 -0
  174. data/demo/core/model/model.emx.nt_kb.pprj +1438 -0
  175. data/demo/core/model/model.emx.nt_kb.rdf +25 -0
  176. data/demo/java5/EnterpriseArchitect7.1/.classpath +6 -0
  177. data/demo/java5/EnterpriseArchitect7.1/.ontomde-java +17 -0
  178. data/demo/java5/EnterpriseArchitect7.1/.project +17 -0
  179. data/demo/java5/EnterpriseArchitect7.1/.xmda +2 -0
  180. data/demo/java5/EnterpriseArchitect7.1/1-generate.bat +3 -0
  181. data/demo/java5/EnterpriseArchitect7.1/1-generate.sh +3 -0
  182. data/demo/java5/EnterpriseArchitect7.1/2-generateJavadoc.bat +3 -0
  183. data/demo/java5/EnterpriseArchitect7.1/2-generateJavadoc.sh +3 -0
  184. data/demo/java5/EnterpriseArchitect7.1/pom.xml +160 -0
  185. data/demo/java5/EnterpriseArchitect7.1/src/main/mda/customDatatypes.rb +9 -0
  186. data/demo/java5/EnterpriseArchitect7.1/src/main/model/java5_demo.ea71.ea.xmi +4115 -0
  187. data/demo/java5/EnterpriseArchitect7.1/src/main/model/java5_demo.eap +0 -0
  188. data/demo/java5/README.txt +74 -0
  189. data/demo/java5/copyShared.sh +35 -0
  190. data/demo/java5/objecteering6/.classpath +6 -0
  191. data/demo/java5/objecteering6/.ontomde-java +17 -0
  192. data/demo/java5/objecteering6/.project +17 -0
  193. data/demo/java5/objecteering6/.xmda +2 -0
  194. data/demo/java5/objecteering6/1-generate.bat +3 -0
  195. data/demo/java5/objecteering6/1-generate.sh +3 -0
  196. data/demo/java5/objecteering6/2-generateJavadoc.bat +3 -0
  197. data/demo/java5/objecteering6/2-generateJavadoc.sh +3 -0
  198. data/demo/java5/objecteering6/pom.xml +160 -0
  199. data/demo/java5/objecteering6/src/main/mda/customDatatypes.rb +9 -0
  200. data/demo/java5/objecteering6/src/main/model/README.txt +4 -0
  201. data/demo/java5/objecteering6/src/main/model/README_OE.txt +5 -0
  202. data/demo/java5/objecteering6/src/main/model/java5_demo.oe600.nt +18 -0
  203. data/demo/java5/objecteering6/src/main/model/java5_demo.oe600.ofp +0 -0
  204. data/demo/java5/rationalSoftwareModeler6/.classpath +6 -0
  205. data/demo/java5/rationalSoftwareModeler6/.ontomde-java +17 -0
  206. data/demo/java5/rationalSoftwareModeler6/.project +17 -0
  207. data/demo/java5/rationalSoftwareModeler6/.xmda +2 -0
  208. data/demo/java5/rationalSoftwareModeler6/1-generate.bat +3 -0
  209. data/demo/java5/rationalSoftwareModeler6/1-generate.sh +3 -0
  210. data/demo/java5/rationalSoftwareModeler6/2-generateJavadoc.bat +3 -0
  211. data/demo/java5/rationalSoftwareModeler6/2-generateJavadoc.sh +3 -0
  212. data/demo/java5/rationalSoftwareModeler6/model.pdf +0 -0
  213. data/demo/java5/rationalSoftwareModeler6/pom.xml +167 -0
  214. data/demo/java5/rationalSoftwareModeler6/src/main/mda/customDatatypes.rb +9 -0
  215. data/demo/java5/rationalSoftwareModeler6/src/main/model/.project +11 -0
  216. data/demo/java5/rationalSoftwareModeler6/src/main/model/java5_demo.emx +3412 -0
  217. data/demo/java5/rationalSoftwareModeler6/src/main/model/java5_demo.emx.nt +4489 -0
  218. data/demo/java5/rationalSoftwareModeler6/src/main/model/rsm-shortcuts.emx +57 -0
  219. data/demo/jboss-jbpm/1-unpack.sh +5 -0
  220. data/demo/jboss-jbpm/2-generate.sh +5 -0
  221. data/demo/jboss-jbpm/3-start-app.sh +10 -0
  222. data/demo/jboss-jbpm/4-stop-app.sh +7 -0
  223. data/demo/jboss-jbpm/5-debug.sh +18 -0
  224. data/demo/jboss-jbpm/6-nodebug.sh +2 -0
  225. data/demo/jboss-jbpm/9-eclipse.bat +5 -0
  226. data/demo/jboss-jbpm/9-eclipse.sh +6 -0
  227. data/demo/jboss-jbpm/debug.sh +18 -0
  228. data/demo/jboss-jbpm/domain/pom.xml +110 -0
  229. data/demo/jboss-jbpm/domain/src/main/java/cas1/Magasinier.java +233 -0
  230. data/demo/jboss-jbpm/domain/src/main/java/cas2/Banquier.java +172 -0
  231. data/demo/jboss-jbpm/domain/src/main/java/cas2/Client.java +140 -0
  232. data/demo/jboss-jbpm/domain/src/main/java/cas2/Personne.java +225 -0
  233. data/demo/jboss-jbpm/domain/src/main/java/cas3/Commande.java +221 -0
  234. data/demo/jboss-jbpm/domain/src/main/java/cas3/ProcessusPreparation.java +382 -0
  235. data/demo/jboss-jbpm/domain/src/main/java/cas4/CommandeLivraison.java +325 -0
  236. data/demo/jboss-jbpm/domain/src/main/java/cas4/ProcessusLivraison.java +366 -0
  237. data/demo/jboss-jbpm/domain/src/main/java/cas4/TacheHumaine.java +225 -0
  238. data/demo/jboss-jbpm/domain/src/main/java/cas4/TacheSuiteErreurLivraison.java +201 -0
  239. data/demo/jboss-jbpm/domain/src/main/resources/META-INF/persistence.xml +25 -0
  240. data/demo/jboss-jbpm/ear/pom.xml +175 -0
  241. data/demo/jboss-jbpm/mda/clean-generated.sh +24 -0
  242. data/demo/jboss-jbpm/mda/pom.xml +227 -0
  243. data/demo/jboss-jbpm/mda/src/main/mda/customDataTypes.rb +1 -0
  244. data/demo/jboss-jbpm/mda/src/main/mda/dbDiscriminatorCache.rb +72 -0
  245. data/demo/jboss-jbpm/mda/src/main/model/.project +12 -0
  246. data/demo/jboss-jbpm/mda/src/main/model/model.emx +606 -0
  247. data/demo/jboss-jbpm/mda/src/main/model/model.emx.nt +2904 -0
  248. data/demo/jboss-jbpm/mda/src/main/model/model.emx.nt_kb.pprj +1432 -0
  249. data/demo/jboss-jbpm/mda/src/main/model/model.emx.nt_kb.rdf +73 -0
  250. data/demo/jboss-jbpm/mda/src/main/model/model.emx.nt_kb.rdfs +709 -0
  251. data/demo/jboss-jbpm/mda/src/main/process/.classpath +10 -0
  252. data/demo/jboss-jbpm/mda/src/main/process/.project +17 -0
  253. data/demo/jboss-jbpm/mda/src/main/process/processList.txt +2 -0
  254. data/demo/jboss-jbpm/mda/src/main/process/src/cas3.ProcessusPreparation/gpd.xml +43 -0
  255. data/demo/jboss-jbpm/mda/src/main/process/src/cas3.ProcessusPreparation/processdefinition.xml +40 -0
  256. data/demo/jboss-jbpm/mda/src/main/process/src/cas3.ProcessusPreparation/processimage.jpg +0 -0
  257. data/demo/jboss-jbpm/mda/src/main/process/src/cas4.ProcessusLivraison/gpd.xml +30 -0
  258. data/demo/jboss-jbpm/mda/src/main/process/src/cas4.ProcessusLivraison/processdefinition.xml +28 -0
  259. data/demo/jboss-jbpm/mda/src/main/process/src/cas4.ProcessusLivraison/processimage.jpg +0 -0
  260. data/demo/jboss-jbpm/mda/src/main/resources/formatter.properties +260 -0
  261. data/demo/jboss-jbpm/ontomde-bpm-ear-copy/pom.xml +128 -0
  262. data/demo/jboss-jbpm/pom.xml +127 -0
  263. data/demo/jboss-jbpm/projectbase/pom.xml +116 -0
  264. data/demo/jboss-jbpm/readme.txt +15 -0
  265. data/demo/jboss-jbpm/runMyApp.sh +22 -0
  266. data/demo/jboss-jbpm/setenv.sh-sample +7 -0
  267. data/demo/jboss-jbpm/stopMyApp.sh +15 -0
  268. data/demo/jboss-jbpm/stopdebug.sh +2 -0
  269. data/demo/jboss-jbpm/webapp/pom.xml +102 -0
  270. data/demo/spring-acegi/1-base.bat +6 -0
  271. data/demo/spring-acegi/1-base.sh +6 -0
  272. data/demo/spring-acegi/2-unpack.bat +6 -0
  273. data/demo/spring-acegi/2-unpack.sh +6 -0
  274. data/demo/spring-acegi/3-generate.bat +4 -0
  275. data/demo/spring-acegi/3-generate.sh +7 -0
  276. data/demo/spring-acegi/4-start-webapp-nosecurity.bat +4 -0
  277. data/demo/spring-acegi/4-start-webapp-nosecurity.sh +6 -0
  278. data/demo/spring-acegi/5-start-webapp.bat +7 -0
  279. data/demo/spring-acegi/5-start-webapp.sh +6 -0
  280. data/demo/spring-acegi/9-eclipse.bat +5 -0
  281. data/demo/spring-acegi/9-eclipse.sh +8 -0
  282. data/demo/spring-acegi/README.txt +79 -0
  283. data/demo/spring-acegi/doc/images/_Ea8UYu6FEdyp6cGW4pi6rw.GIF +0 -0
  284. data/demo/spring-acegi/doc/images/_XH8XYjuOEdyltIorAFYEcg.GIF +0 -0
  285. data/demo/spring-acegi/doc/images/_o7gEAsg1Edy3YZbvY96G9w.GIF +0 -0
  286. data/demo/spring-acegi/doc/images/_s1Mq8O6sEdyp6cGW4pi6rw.GIF +0 -0
  287. data/demo/spring-acegi/doc/ontomde-demo-acegi-run.wnk +0 -0
  288. data/demo/spring-acegi/domain/pom.xml +68 -0
  289. data/demo/spring-acegi/domain/src/main/java/administration/ApplicationUser.java +503 -0
  290. data/demo/spring-acegi/domain/src/main/java/administration/SecurityPanel.java +1177 -0
  291. data/demo/spring-acegi/domain/src/main/java/demo1GSMNetwork/BaseTransceiverStation.java +434 -0
  292. data/demo/spring-acegi/domain/src/main/java/demo2testModel/Client.java +839 -0
  293. data/demo/spring-acegi/domain/src/main/java/xmda/security/ProviderImpl.java +320 -0
  294. data/demo/spring-acegi/mda/.ontomde-java +71 -0
  295. data/demo/spring-acegi/mda/clean-generated.sh +24 -0
  296. data/demo/spring-acegi/mda/pom.xml +75 -0
  297. data/demo/spring-acegi/mda/src/main/mda/customDataTypes.rb +5 -0
  298. data/demo/spring-acegi/mda/src/main/mda/dbDiscriminatorCache.rb +94 -0
  299. data/demo/spring-acegi/mda/src/main/mda/mda.rb +0 -0
  300. data/demo/spring-acegi/mda/src/main/model/.project +12 -0
  301. data/demo/spring-acegi/mda/src/main/model/model.emx +3137 -0
  302. data/demo/spring-acegi/mda/src/main/model/model.emx.nt +5301 -0
  303. data/demo/spring-acegi/mda/src/main/model/model.emx.nt.pprj +1848 -0
  304. data/demo/spring-acegi/mda/src/main/model/model.emx.nt.rdf +271 -0
  305. data/demo/spring-acegi/mda/src/main/resources/formatter.properties +260 -0
  306. data/demo/spring-acegi/pom.xml +20 -0
  307. data/demo/spring-acegi/projectbase/pom.xml +117 -0
  308. data/demo/spring-acegi/webapp/pom.xml +167 -0
  309. data/demo/uml-profil-for-ibm-rsm6/.project +12 -0
  310. data/demo/uml-profil-for-ibm-rsm6/OntoMDE-profil.epx +1748 -0
  311. data/demo/uml-profil-for-ibm-rsm6/README.txt +4 -0
  312. data/lib/ontomde-demos.rb +3 -0
  313. metadata +379 -0
@@ -0,0 +1,140 @@
1
+ <?xml version='1.0' encoding='UTF-8'?>
2
+ <!DOCTYPE rdf:RDF [
3
+ <!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
4
+ <!ENTITY kb 'http://protege.stanford.edu/kb#'>
5
+ <!ENTITY bpm 'http://orange-ftgroup.com/2007/rd/xmda/bpm#'>
6
+ <!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#'>
7
+ ]>
8
+ <rdf:RDF xmlns:rdf="&rdf;"
9
+ xmlns:kb="&kb;"
10
+ xmlns:bpm="&bpm;"
11
+ xmlns:rdfs="&rdfs;">
12
+ <bpm:timeOutTransition rdf:about="&kb;bpm_Instance_6"
13
+ bpm:timeOutDuration="454.0"
14
+ bpm:timeOutIsBusinessDuration="false"
15
+ bpm:timeOutUnit="seconds"
16
+ bpm:transitionName="ccv">
17
+ <rdfs:label>DeliverMaterial (deliveryProcess)(end (deliveryProcess))454.0secondsfalse</rdfs:label>
18
+ <bpm:inverse_of_leavingTransition rdf:resource="&kb;deliveryProcess3"/>
19
+ <bpm:destinationNode rdf:resource="&kb;deliveryProcess5"/>
20
+ </bpm:timeOutTransition>
21
+ <bpm:timeOutTransition rdf:about="&kb;bpm_Instance_7"
22
+ rdfs:label="end (deliveryProcess)(start (deliveryProcess))">
23
+ <bpm:inverse_of_leavingTransition rdf:resource="&kb;deliveryProcess2"/>
24
+ <bpm:destinationNode rdf:resource="&kb;deliveryProcess3"/>
25
+ </bpm:timeOutTransition>
26
+ <bpm:process rdf:about="&kb;deliveryProcess1"
27
+ bpm:processName="deliveryProcess"
28
+ rdfs:label="deliveryProcess">
29
+ <bpm:processDefinition xml:space='preserve'><![CDATA[<?xml version="1.0" encoding="ISO-8859-1"?><process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="deliveryProcess"><start-state name="Start Process"><transition name="AfterStart" to="Material And Or Service Fork"/></start-state><fork name="Material And Or Service Fork"><transition name="SCAChoice" to="Any Service To Configure"></transition><transition name="MaterialDeliveryChoice" to="Any Material To Deliver"></transition></fork><join name="Service And Material Join"><transition name="AfterServiceAndMaterialJoin" to="Ok To Configure Billing"/></join><decision name="Any Service To Configure"><transition name="ToDoConfigureService" to="Configure And Activate Service"/><transition name="NoServiceConfiguration" to="SCA Reporting"/></decision><decision name="Any Material To Deliver"><transition name="ToDoDeliverMaterial" to="Deliver Material"/><transition name="NoMaterialDelivery" to="Material Delivery Reporting"/></decision><end-state name="End Process"/><state name="Configure And Activate Service"><transition name="AfterConfigureAndActivateService" to="SCA Reporting"/></state><state name="Deliver Material"><transition name="AfterDeliverMaterial" to="Material Delivery Reporting"/></state><state name="Configure Billing"><transition name="AfterConfigureBilling" to="End Process"/></state><decision name="Ok To Configure Billing"><transition name="ToDoConfigureBilling" to="Configure Billing"/><transition name="NoBillingConfiguration" to="End Process"/></decision><state name="Material Delivery Reporting"><transition name="AfterMaterialDeliveryReporting" to="Service And Material Join"/></state><state name="SCA Reporting"><transition name="AfterSCAReporting" to="Service And Material Join"/></state></process-definition>]]></bpm:processDefinition>
30
+ <bpm:processNode rdf:resource="&kb;deliveryProcess12"/>
31
+ <bpm:processNode rdf:resource="&kb;deliveryProcess15"/>
32
+ <bpm:processNode rdf:resource="&kb;deliveryProcess2"/>
33
+ <bpm:processNode rdf:resource="&kb;deliveryProcess3"/>
34
+ <bpm:processNode rdf:resource="&kb;deliveryProcess4"/>
35
+ <bpm:processNode rdf:resource="&kb;deliveryProcess5"/>
36
+ <bpm:processNode rdf:resource="&kb;deliveryProcess6"/>
37
+ <bpm:processNode rdf:resource="&kb;deliveryProcess7"/>
38
+ <bpm:processNode rdf:resource="&kb;deliveryProcess8"/>
39
+ <bpm:processNode rdf:resource="&kb;deliveryProcess9"/>
40
+ </bpm:process>
41
+ <bpm:transition rdf:about="&kb;deliveryProcess10"
42
+ bpm:transitionName="ToDoConfigureService">
43
+ <rdfs:label>ToDoConfigureService( ->ConfigureAndActivateService (deliveryProcess))</rdfs:label>
44
+ <bpm:destinationNode rdf:resource="&kb;deliveryProcess4"/>
45
+ <bpm:inverse_of_leavingTransition rdf:resource="&kb;deliveryProcess9"/>
46
+ </bpm:transition>
47
+ <bpm:transition rdf:about="&kb;deliveryProcess11"
48
+ bpm:transitionName="NoServiceConfiguration"
49
+ rdfs:label="NoServiceConfiguration( ->SCAReporting (deliveryProcess))">
50
+ <bpm:destinationNode rdf:resource="&kb;deliveryProcess8"/>
51
+ <bpm:inverse_of_leavingTransition rdf:resource="&kb;deliveryProcess9"/>
52
+ </bpm:transition>
53
+ <bpm:synchronousDecisionNode rdf:about="&kb;deliveryProcess12"
54
+ bpm:nodeName="AnyMaterialToDeliver"
55
+ rdfs:label="? AnyMaterialToDeliver ?">
56
+ <bpm:inverse_of_processNode rdf:resource="&kb;deliveryProcess1"/>
57
+ <bpm:leavingTransition rdf:resource="&kb;deliveryProcess13"/>
58
+ <bpm:leavingTransition rdf:resource="&kb;deliveryProcess14"/>
59
+ </bpm:synchronousDecisionNode>
60
+ <bpm:transition rdf:about="&kb;deliveryProcess13"
61
+ bpm:transitionName="ToDoDeliverMaterial"
62
+ rdfs:label="ToDoDeliverMaterial( ->DeliverMaterial (deliveryProcess))">
63
+ <bpm:inverse_of_leavingTransition rdf:resource="&kb;deliveryProcess12"/>
64
+ <bpm:destinationNode rdf:resource="&kb;deliveryProcess5"/>
65
+ </bpm:transition>
66
+ <bpm:transition rdf:about="&kb;deliveryProcess14"
67
+ bpm:transitionName="NoMaterialDelivery">
68
+ <rdfs:label>NoMaterialDelivery( ->MaterialDeliveryReporting (deliveryProcess))</rdfs:label>
69
+ <bpm:inverse_of_leavingTransition rdf:resource="&kb;deliveryProcess12"/>
70
+ <bpm:destinationNode rdf:resource="&kb;deliveryProcess7"/>
71
+ </bpm:transition>
72
+ <bpm:synchronousDecisionNode rdf:about="&kb;deliveryProcess15"
73
+ bpm:nodeName="OkToConfigureBilling"
74
+ rdfs:label="? OkToConfigureBilling ?">
75
+ <bpm:inverse_of_processNode rdf:resource="&kb;deliveryProcess1"/>
76
+ <bpm:leavingTransition rdf:resource="&kb;deliveryProcess16"/>
77
+ <bpm:leavingTransition rdf:resource="&kb;deliveryProcess17"/>
78
+ </bpm:synchronousDecisionNode>
79
+ <bpm:transition rdf:about="&kb;deliveryProcess16"
80
+ bpm:transitionName="ToDoConfigureBilling"
81
+ rdfs:label="ToDoConfigureBilling( ->ConfigureBilling (deliveryProcess))">
82
+ <bpm:inverse_of_leavingTransition rdf:resource="&kb;deliveryProcess15"/>
83
+ <bpm:destinationNode rdf:resource="&kb;deliveryProcess6"/>
84
+ </bpm:transition>
85
+ <bpm:transition rdf:about="&kb;deliveryProcess17"
86
+ bpm:transitionName="NoBillingConfiguration"
87
+ rdfs:label="NoBillingConfiguration( ->end (deliveryProcess))">
88
+ <bpm:inverse_of_leavingTransition rdf:resource="&kb;deliveryProcess15"/>
89
+ <bpm:destinationNode rdf:resource="&kb;deliveryProcess3"/>
90
+ </bpm:transition>
91
+ <bpm:startNode rdf:about="&kb;deliveryProcess2"
92
+ rdfs:label="start (deliveryProcess)">
93
+ <bpm:leavingTransition rdf:resource="&kb;bpm_Instance_7"/>
94
+ <bpm:inverse_of_processNode rdf:resource="&kb;deliveryProcess1"/>
95
+ </bpm:startNode>
96
+ <bpm:endNode rdf:about="&kb;deliveryProcess3"
97
+ rdfs:label="end (deliveryProcess)">
98
+ <bpm:inverse_of_destinationNode rdf:resource="&kb;bpm_Instance_7"/>
99
+ <bpm:inverse_of_processNode rdf:resource="&kb;deliveryProcess1"/>
100
+ <bpm:inverse_of_destinationNode rdf:resource="&kb;deliveryProcess17"/>
101
+ </bpm:endNode>
102
+ <bpm:asynchronousNode rdf:about="&kb;deliveryProcess4"
103
+ bpm:nodeName="ConfigureAndActivateService"
104
+ rdfs:label="ConfigureAndActivateService (deliveryProcess)">
105
+ <bpm:inverse_of_processNode rdf:resource="&kb;deliveryProcess1"/>
106
+ <bpm:inverse_of_destinationNode rdf:resource="&kb;deliveryProcess10"/>
107
+ </bpm:asynchronousNode>
108
+ <bpm:asynchronousNode rdf:about="&kb;deliveryProcess5"
109
+ bpm:nodeName="DeliverMaterial"
110
+ rdfs:label="DeliverMaterial (deliveryProcess)">
111
+ <bpm:inverse_of_destinationNode rdf:resource="&kb;bpm_Instance_6"/>
112
+ <bpm:inverse_of_processNode rdf:resource="&kb;deliveryProcess1"/>
113
+ <bpm:inverse_of_destinationNode rdf:resource="&kb;deliveryProcess13"/>
114
+ </bpm:asynchronousNode>
115
+ <bpm:asynchronousNode rdf:about="&kb;deliveryProcess6"
116
+ bpm:nodeName="ConfigureBilling"
117
+ rdfs:label="ConfigureBilling (deliveryProcess)">
118
+ <bpm:inverse_of_processNode rdf:resource="&kb;deliveryProcess1"/>
119
+ <bpm:inverse_of_destinationNode rdf:resource="&kb;deliveryProcess16"/>
120
+ </bpm:asynchronousNode>
121
+ <bpm:asynchronousNode rdf:about="&kb;deliveryProcess7"
122
+ bpm:nodeName="MaterialDeliveryReporting"
123
+ rdfs:label="MaterialDeliveryReporting (deliveryProcess)">
124
+ <bpm:inverse_of_processNode rdf:resource="&kb;deliveryProcess1"/>
125
+ <bpm:inverse_of_destinationNode rdf:resource="&kb;deliveryProcess14"/>
126
+ </bpm:asynchronousNode>
127
+ <bpm:asynchronousNode rdf:about="&kb;deliveryProcess8"
128
+ bpm:nodeName="SCAReporting"
129
+ rdfs:label="SCAReporting (deliveryProcess)">
130
+ <bpm:inverse_of_processNode rdf:resource="&kb;deliveryProcess1"/>
131
+ <bpm:inverse_of_destinationNode rdf:resource="&kb;deliveryProcess11"/>
132
+ </bpm:asynchronousNode>
133
+ <bpm:synchronousDecisionNode rdf:about="&kb;deliveryProcess9"
134
+ bpm:nodeName="AnyServiceToConfigure"
135
+ rdfs:label="? AnyServiceToConfigure ?">
136
+ <bpm:inverse_of_processNode rdf:resource="&kb;deliveryProcess1"/>
137
+ <bpm:leavingTransition rdf:resource="&kb;deliveryProcess10"/>
138
+ <bpm:leavingTransition rdf:resource="&kb;deliveryProcess11"/>
139
+ </bpm:synchronousDecisionNode>
140
+ </rdf:RDF>
@@ -0,0 +1,231 @@
1
+ <?xml version='1.0' encoding='UTF-8'?>
2
+ <!DOCTYPE rdf:RDF [
3
+ <!ENTITY rdf 'http://www.w3.org/1999/02/22-rdf-syntax-ns#'>
4
+ <!ENTITY a 'http://protege.stanford.edu/system#'>
5
+ <!ENTITY bpm 'http://orange-ftgroup.com/2007/rd/xmda/bpm#'>
6
+ <!ENTITY rdfs 'http://www.w3.org/2000/01/rdf-schema#'>
7
+ ]>
8
+ <rdf:RDF xmlns:rdf="&rdf;"
9
+ xmlns:a="&a;"
10
+ xmlns:bpm="&bpm;"
11
+ xmlns:rdfs="&rdfs;">
12
+ <rdfs:Class rdf:about="&bpm;BPM"
13
+ a:role="abstract"
14
+ rdfs:label="bpm:BPM">
15
+ <rdfs:subClassOf rdf:resource="&rdfs;Resource"/>
16
+ </rdfs:Class>
17
+ <rdfs:Class rdf:about="&bpm;abstractTransition"
18
+ a:role="abstract"
19
+ rdfs:label="bpm:abstractTransition">
20
+ <rdfs:subClassOf rdf:resource="&bpm;BPM"/>
21
+ </rdfs:Class>
22
+ <rdfs:Class rdf:about="&bpm;action_Node"
23
+ a:role="abstract"
24
+ rdfs:label="bpm:action_Node">
25
+ <rdfs:subClassOf rdf:resource="&bpm;named_Node"/>
26
+ </rdfs:Class>
27
+ <rdfs:Class rdf:about="&bpm;asynchronousDecisionNode"
28
+ rdfs:label="bpm:asynchronousDecisionNode">
29
+ <rdfs:subClassOf rdf:resource="&bpm;decision_Node"/>
30
+ <rdfs:subClassOf rdf:resource="&bpm;destination_Node"/>
31
+ </rdfs:Class>
32
+ <rdfs:Class rdf:about="&bpm;asynchronousNode"
33
+ rdfs:label="bpm:asynchronousNode">
34
+ <rdfs:subClassOf rdf:resource="&bpm;destination_Node"/>
35
+ <rdfs:subClassOf rdf:resource="&bpm;source_Node"/>
36
+ </rdfs:Class>
37
+ <rdfs:Class rdf:about="&bpm;decision_Node"
38
+ a:role="abstract"
39
+ rdfs:label="bpm:decision_Node">
40
+ <rdfs:subClassOf rdf:resource="&bpm;named_Node"/>
41
+ <rdfs:subClassOf rdf:resource="&bpm;source_Node"/>
42
+ </rdfs:Class>
43
+ <rdf:Property rdf:about="&bpm;destinationNode"
44
+ a:maxCardinality="1"
45
+ a:minCardinality="1"
46
+ rdfs:label="bpm:destinationNode">
47
+ <rdfs:domain rdf:resource="&bpm;abstractTransition"/>
48
+ <rdfs:range rdf:resource="&bpm;destination_Node"/>
49
+ <a:inverseProperty rdf:resource="&bpm;inverse_of_destinationNode"/>
50
+ </rdf:Property>
51
+ <rdfs:Class rdf:about="&bpm;destination_Node"
52
+ a:role="abstract"
53
+ rdfs:label="bpm:destination_Node">
54
+ <rdfs:subClassOf rdf:resource="&bpm;named_Node"/>
55
+ </rdfs:Class>
56
+ <rdfs:Class rdf:about="&bpm;endNode"
57
+ rdfs:label="bpm:endNode">
58
+ <rdfs:subClassOf rdf:resource="&bpm;destination_Node"/>
59
+ </rdfs:Class>
60
+ <rdfs:Class rdf:about="&bpm;forkNode"
61
+ rdfs:label="bpm:forkNode">
62
+ <rdfs:subClassOf rdf:resource="&bpm;destination_Node"/>
63
+ <rdfs:subClassOf rdf:resource="&bpm;passive_Node"/>
64
+ <rdfs:subClassOf rdf:resource="&bpm;source_Node"/>
65
+ </rdfs:Class>
66
+ <rdf:Property rdf:about="&bpm;inverse_of_destinationNode"
67
+ rdfs:label="bpm:inverse_of_destinationNode">
68
+ <rdfs:range rdf:resource="&bpm;abstractTransition"/>
69
+ <a:inverseProperty rdf:resource="&bpm;destinationNode"/>
70
+ <rdfs:domain rdf:resource="&bpm;destination_Node"/>
71
+ </rdf:Property>
72
+ <rdf:Property rdf:about="&bpm;inverse_of_leavingTransition"
73
+ a:maxCardinality="1"
74
+ a:minCardinality="1"
75
+ rdfs:label="bpm:inverse_of_leavingTransition">
76
+ <rdfs:domain rdf:resource="&bpm;abstractTransition"/>
77
+ <a:inverseProperty rdf:resource="&bpm;leavingTransition"/>
78
+ <rdfs:range rdf:resource="&bpm;source_Node"/>
79
+ </rdf:Property>
80
+ <rdf:Property rdf:about="&bpm;inverse_of_processNode"
81
+ a:maxCardinality="1"
82
+ a:minCardinality="1"
83
+ rdfs:label="bpm:inverse_of_processNode">
84
+ <rdfs:domain rdf:resource="&bpm;node"/>
85
+ <rdfs:range rdf:resource="&bpm;process"/>
86
+ <a:inverseProperty rdf:resource="&bpm;processNode"/>
87
+ </rdf:Property>
88
+ <rdfs:Class rdf:about="&bpm;joinNode"
89
+ rdfs:label="bpm:joinNode">
90
+ <rdfs:subClassOf rdf:resource="&bpm;destination_Node"/>
91
+ <rdfs:subClassOf rdf:resource="&bpm;passive_Node"/>
92
+ <rdfs:subClassOf rdf:resource="&bpm;source_Node"/>
93
+ </rdfs:Class>
94
+ <rdf:Property rdf:about="&bpm;leavingTransition"
95
+ rdfs:comment="Transition leaving this node"
96
+ rdfs:label="bpm:leavingTransition">
97
+ <rdfs:range rdf:resource="&bpm;abstractTransition"/>
98
+ <rdfs:domain rdf:resource="&bpm;decision_Node"/>
99
+ <a:inverseProperty rdf:resource="&bpm;inverse_of_leavingTransition"/>
100
+ <rdfs:domain rdf:resource="&bpm;source_Node"/>
101
+ </rdf:Property>
102
+ <rdfs:Class rdf:about="&bpm;named_Node"
103
+ a:role="abstract"
104
+ rdfs:label="bpm:named_Node">
105
+ <rdfs:subClassOf rdf:resource="&bpm;node"/>
106
+ </rdfs:Class>
107
+ <rdfs:Class rdf:about="&bpm;node"
108
+ a:role="abstract"
109
+ rdfs:label="bpm:node">
110
+ <rdfs:subClassOf rdf:resource="&bpm;BPM"/>
111
+ </rdfs:Class>
112
+ <rdf:Property rdf:about="&bpm;nodeName"
113
+ a:maxCardinality="1"
114
+ a:minCardinality="1"
115
+ rdfs:label="bpm:nodeName">
116
+ <rdfs:domain rdf:resource="&bpm;named_Node"/>
117
+ <rdfs:range rdf:resource="&rdfs;Literal"/>
118
+ </rdf:Property>
119
+ <rdfs:Class rdf:about="&bpm;passive_Node"
120
+ a:role="abstract"
121
+ rdfs:label="bpm:passive_Node">
122
+ <rdfs:subClassOf rdf:resource="&bpm;named_Node"/>
123
+ </rdfs:Class>
124
+ <rdfs:Class rdf:about="&bpm;process"
125
+ rdfs:label="bpm:process">
126
+ <rdfs:subClassOf rdf:resource="&bpm;BPM"/>
127
+ </rdfs:Class>
128
+ <rdf:Property rdf:about="&bpm;processDefinition"
129
+ a:maxCardinality="1"
130
+ rdfs:label="bpm:processDefinition">
131
+ <rdfs:domain rdf:resource="&bpm;process"/>
132
+ <rdfs:range rdf:resource="&rdfs;Literal"/>
133
+ </rdf:Property>
134
+ <rdf:Property rdf:about="&bpm;processName"
135
+ a:maxCardinality="1"
136
+ rdfs:label="bpm:processName">
137
+ <rdfs:domain rdf:resource="&bpm;process"/>
138
+ <rdfs:range rdf:resource="&rdfs;Literal"/>
139
+ </rdf:Property>
140
+ <rdf:Property rdf:about="&bpm;processNode"
141
+ rdfs:comment="Nodes owned by the process"
142
+ rdfs:label="bpm:processNode">
143
+ <a:inverseProperty rdf:resource="&bpm;inverse_of_processNode"/>
144
+ <rdfs:range rdf:resource="&bpm;node"/>
145
+ <rdfs:domain rdf:resource="&bpm;process"/>
146
+ </rdf:Property>
147
+ <rdf:Property rdf:about="&bpm;processReturnType"
148
+ a:maxCardinality="1"
149
+ rdfs:label="bpm:processReturnType">
150
+ <rdfs:domain rdf:resource="&bpm;process"/>
151
+ <rdfs:range rdf:resource="&rdfs;Literal"/>
152
+ </rdf:Property>
153
+ <rdfs:Class rdf:about="&bpm;source_Node"
154
+ a:role="abstract"
155
+ rdfs:label="bpm:source_Node">
156
+ <rdfs:subClassOf rdf:resource="&bpm;named_Node"/>
157
+ </rdfs:Class>
158
+ <rdfs:Class rdf:about="&bpm;startNode"
159
+ rdfs:label="bpm:startNode">
160
+ <rdfs:subClassOf rdf:resource="&bpm;source_Node"/>
161
+ </rdfs:Class>
162
+ <rdfs:Class rdf:about="&bpm;synchronousDecisionNode"
163
+ rdfs:label="bpm:synchronousDecisionNode">
164
+ <rdfs:subClassOf rdf:resource="&bpm;decision_Node"/>
165
+ <rdfs:subClassOf rdf:resource="&bpm;destination_Node"/>
166
+ </rdfs:Class>
167
+ <rdfs:Class rdf:about="&bpm;synchronousNode"
168
+ rdfs:label="bpm:synchronousNode">
169
+ <rdfs:subClassOf rdf:resource="&bpm;destination_Node"/>
170
+ <rdfs:subClassOf rdf:resource="&bpm;source_Node"/>
171
+ </rdfs:Class>
172
+ <rdf:Property rdf:about="&bpm;timeOutDuration"
173
+ a:maxCardinality="1"
174
+ a:minCardinality="1"
175
+ a:range="float"
176
+ rdfs:label="bpm:timeOutDuration">
177
+ <rdfs:comment>Example (literal)
178
+ 1 business day
179
+ 1 day
180
+ 1 business minute
181
+ ...</rdfs:comment>
182
+ <rdfs:domain rdf:resource="&bpm;timeOutTransition"/>
183
+ <rdfs:range rdf:resource="&rdfs;Literal"/>
184
+ </rdf:Property>
185
+ <rdf:Property rdf:about="&bpm;timeOutIsBusinessDuration"
186
+ a:maxCardinality="1"
187
+ a:minCardinality="1"
188
+ a:range="boolean"
189
+ rdfs:label="bpm:timeOutIsBusinessDuration">
190
+ <rdfs:domain rdf:resource="&bpm;timeOutTransition"/>
191
+ <rdfs:range rdf:resource="&rdfs;Literal"/>
192
+ </rdf:Property>
193
+ <rdfs:Class rdf:about="&bpm;timeOutTransition"
194
+ rdfs:label="bpm:timeOutTransition">
195
+ <rdfs:subClassOf rdf:resource="&bpm;abstractTransition"/>
196
+ </rdfs:Class>
197
+ <rdf:Property rdf:about="&bpm;timeOutUnit"
198
+ a:maxCardinality="1"
199
+ a:minCardinality="1"
200
+ a:range="symbol"
201
+ rdfs:label="bpm:timeOutUnit">
202
+ <rdfs:domain rdf:resource="&bpm;timeOutTransition"/>
203
+ <rdfs:range rdf:resource="&rdfs;Literal"/>
204
+ <a:allowedValues>day</a:allowedValues>
205
+ <a:allowedValues>days</a:allowedValues>
206
+ <a:allowedValues>hour</a:allowedValues>
207
+ <a:allowedValues>hours</a:allowedValues>
208
+ <a:allowedValues>minute</a:allowedValues>
209
+ <a:allowedValues>minutes</a:allowedValues>
210
+ <a:allowedValues>month</a:allowedValues>
211
+ <a:allowedValues>months</a:allowedValues>
212
+ <a:allowedValues>second</a:allowedValues>
213
+ <a:allowedValues>seconds</a:allowedValues>
214
+ <a:allowedValues>week</a:allowedValues>
215
+ <a:allowedValues>weeks</a:allowedValues>
216
+ <a:allowedValues>year</a:allowedValues>
217
+ <a:allowedValues>years</a:allowedValues>
218
+ </rdf:Property>
219
+ <rdfs:Class rdf:about="&bpm;transition"
220
+ rdfs:label="bpm:transition">
221
+ <rdfs:subClassOf rdf:resource="&bpm;abstractTransition"/>
222
+ </rdfs:Class>
223
+ <rdf:Property rdf:about="&bpm;transitionName"
224
+ a:maxCardinality="1"
225
+ a:minCardinality="1"
226
+ rdfs:comment="Name of the transition"
227
+ rdfs:label="bpm:transitionName">
228
+ <rdfs:domain rdf:resource="&bpm;abstractTransition"/>
229
+ <rdfs:range rdf:resource="&rdfs;Literal"/>
230
+ </rdf:Property>
231
+ </rdf:RDF>
@@ -0,0 +1,60 @@
1
+ # This file contains sample code for demonstrating ontomde-core dsl usage.
2
+ #
3
+ # This demo opens a DSL model created with Protege/2000 and browses it.
4
+ #
5
+ #==FEATURES
6
+ #* loading of a DSL model from a set of W3C RDF/RDFS files
7
+ #* model browsing
8
+
9
+
10
+ require 'ontomde-core'
11
+
12
+ module Mrdf_Repository
13
+ def demo_dsl_main
14
+ self.loadMetaModelFromFile('./bpm.rdfs',true)
15
+ #load elements from DSL file
16
+ self.loadModelFromFile('./bpm.rdf',true)
17
+ puts "repository contains #{self.length} elements"
18
+
19
+ # create additional elements programatically.
20
+ c1=Cbpm_forkNode.new(self,"uri://myUniqueUri1")
21
+ c1.bpm_nodeName="Programatically create node 1"
22
+
23
+ c2=Cbpm_forkNode.new(self,"uri://myUniqueUri2")
24
+ c2.bpm_nodeName="Programatically create node 2"
25
+
26
+ d=Cbpm_transition.new(self,"uri://myUniqueUri3")
27
+ d.bpm_transitionName="from node 1 to node 2"
28
+ c1.bpm_leavingTransition_add(d)
29
+ d.bpm_destinationNode=c2
30
+
31
+ each_value { |elt|
32
+ next unless elt.kind_of?(Mbpm_node)
33
+ elt.bpm_displayGraph
34
+ }
35
+ end
36
+ end
37
+
38
+ module Mbpm_node
39
+ def bpm_displayGraph
40
+ puts "\n*** Report for node #{self.to_s}"
41
+ end
42
+ def to_s
43
+ n=bpm_nodeName.to_s
44
+ return n=='' ? '--no-name--' : n
45
+ end
46
+ end
47
+
48
+ module Mbpm_decision_Node
49
+ def bpm_displayGraph
50
+ super
51
+ puts "NOTE: This node is a decision node"
52
+ bpm_leavingTransition.each {|t|
53
+ puts "transition: -> #{t.bpm_destinationNode}"
54
+ }
55
+ end
56
+ end
57
+
58
+ repo=Crdf_Repository.new
59
+ repo.demo_dsl_main
60
+
@@ -0,0 +1,144 @@
1
+ #
2
+ # OntoMDE handles meta-model in the same way as it handle models.
3
+ # This code demonstrate meta-model browsing.
4
+ #
5
+ # UML2 is taken as example, but any metamodel loaded from a DSL source would
6
+ # be handled exactly the same way.
7
+ #
8
+ # This program reads UML meta-model in repository
9
+ # and generate a Visual Basic UML2 export program skeleton.
10
+ #
11
+ # (this demo was extracted from a bootstrap
12
+ # code used to create Enterprise Architect UML2/RDF export plugin )
13
+ #
14
+
15
+ require 'ontomde-uml2'
16
+
17
+ module Mrdf_Repository
18
+ # call generate_export_method for each uml meta-class in model.
19
+ def generate_class_export_subs
20
+ self.each_value { |meta|
21
+ next unless meta.kind_of?(Crdfs_Class)
22
+ next unless meta.to_s =~ /^uml_/
23
+ next if meta.to_s=~ /^uml_UML$/
24
+ meta.generate_class_export_method
25
+ meta.generate_class_export_method_atom
26
+ }
27
+ end
28
+
29
+ # call generate_export_method for each uml property in model.
30
+ def generate_property_export_subs
31
+ self.each_value { |meta|
32
+ next unless meta.kind_of?(Crdf_Property)
33
+ next unless meta.to_s =~ /^uml_/
34
+ meta.generate_property_export_method
35
+ }
36
+ end
37
+
38
+ end
39
+
40
+ module Mrdfs_Class
41
+ # call block passed as parameter for each property attach to this class.
42
+ def eachProperties(&block)
43
+ rdf_Repository.each_value { |field|
44
+ # is field a property ?
45
+ next unless field.kind_of?(Crdf_Property)
46
+ # is field a property owned by current clas v
47
+ next unless field.rdfs_domain.include?(self)
48
+ yield(field)
49
+ }
50
+ end
51
+
52
+ # call block passed as parameter for each property attach to this class.
53
+ def hasProperties?
54
+ eachProperties { |field|
55
+ return true
56
+ }
57
+ return false
58
+ end
59
+
60
+ def export_method_name
61
+ return "Dump_class_#{self.to_s}"
62
+ end
63
+
64
+ #return every class, including myself I inherit for
65
+ #directly or indirectly
66
+ #(this pattern is used to avoid diamond-type multiple export
67
+ # due to possible diamon inheritance (exists in uml2))
68
+ def recursiveAllSubClass(ret=Set.new)
69
+ return if ret.include?(self)
70
+ ret.add(self)
71
+ self.rdfs_subClassOf.each {|sco|
72
+ next if sco.to_s=~ /^uml_UML$/
73
+ sco.recursiveAllSubClass(ret)
74
+ }
75
+ return ret
76
+ end
77
+
78
+ def generate_class_export_method
79
+ puts "Sub #{self.export_method_name}(element As EA.Element)"
80
+ metatypeURI=UriNamespace.instance.unalias(self.rdf_uri)
81
+ puts %{ writeRDFSType element, "#{metatypeURI}"}
82
+ puts "' Call direct and indirect sub-classes exports"
83
+ self.recursiveAllSubClass.each {|sco|
84
+ cm=sco.hasProperties? ? "" : "' (empty) "
85
+ puts " #{cm}#{sco.export_method_name}_atom element"
86
+ }
87
+ puts "End Sub"
88
+ end
89
+
90
+ # empty atom are commented out in an effort to optimize processing time.
91
+ def generate_class_export_method_atom
92
+ cm=hasProperties? ? "" : "' (empty) "
93
+ puts "#{cm}Sub #{self.export_method_name}_atom(element As EA.Element)"
94
+ self.eachProperties { |field|
95
+ puts " #{field.export_method_name} Element"
96
+ #puts "--> #{fieldsys_maxCardinality}"
97
+ }
98
+ puts "#{cm}End Sub"
99
+ end
100
+ end
101
+
102
+ module Mrdf_Property
103
+ #is property type a literal ? (or a reference)
104
+ def isLit?
105
+
106
+ rdfslit=rdf_Repository['rdfs_Literal']
107
+ return self.rdfs_range.include?(rdfslit)
108
+ end
109
+ # nil -> true
110
+ # 1 -> false
111
+ # others --> true
112
+ def isMany?
113
+ return true if @sys_maxCardinality.nil?
114
+ return false if @sys_maxCardinality.to_s=="1"
115
+ return false
116
+ end
117
+ def export_method_name
118
+ return %{Dump_field_#{isMany? ? "many_" : "one_" }#{isLit? ? "lit_" : "ref_"}#{self.to_s}}
119
+ end
120
+ def generate_property_export_method
121
+ puts "Sub #{self.export_method_name}(subject As Element, value As #{isLit? ? "String" : "EA.Element"})"
122
+
123
+ predicatURI=UriNamespace.instance.unalias(self.rdf_uri)
124
+ if isLit?
125
+ puts %{ writePredicatLit subject ,"#{predicatURI}", value}
126
+ else
127
+ puts %{ writePredicatRes subject ,"#{predicatURI}", value}
128
+ end
129
+ puts "End Sub"
130
+ end
131
+ end
132
+
133
+ puts "# start of program"
134
+ repo=Crdf_Repository.new
135
+ repo.loadUml2
136
+ repo.generate_class_export_subs
137
+ repo.generate_property_export_subs
138
+
139
+ # reference meta-model constants
140
+
141
+
142
+
143
+
144
+