Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

  1. Open the MagicDraw model (UAV_Graph.mdzip) or the Rhapsody model (UAV_Graph.rpy inside the UAV_Graph.zip) included in the Syndeia MagicDraw Plugin and Example folder or the Syndeia Rhapsody Plugin and Example folder in the deliverable package.
  2. The System package in the model includes sub-packages named Activity, Interactions, Requirements, State Machines, Stereotypes, Structure, and Use Cases, as shown in Figure 4 (MagicDraw) and Figure 5 (Rhapsody). The UAV structure is shown as a SysML BDD in the figure. As the name suggests, the packages include behavior, structure, and requirement representations of an example UAV system. The elements in these representations are interconnected, as you will see when you run the queries in the next section.




    Figure: UAV System model in MagicDraw



    Figure: UAV System model in Rhapsody

  3. Go to the Neo4j browser and run the following command to delete all nodes and edges in the graph.
    MATCH (n) OPTIONAL MATCH (n)-[r]-() DELETE n,r
  4. Right click on any element in MagicDraw / Rhapsody model tree and select Syndeia > Dashboard. Then, go to the Settings tab as shown in Figure 6 below. Specify all the settings to connect to Neo4j, as shown below, including the password. The default password is neo4j123. Then, click on the Apply button to save your settings.


    Figure 6: Specify information to connect to Neo4j graph database

  5. Right click on the A_without_connections::System package in the MagicDraw containment tree (Figure 6) or Rhapsody model browser (Figure 7) and select Syndeia > Utils > SysML > Graph to generate a graph in Neo4j for all SysML elements (recursively) in the context of the System package.



    Figure 6: Generate graph from SysML model in MagicDraw


    Figure 7: Generate graph from SysML model in Rhapsody

  6. Click Yes when prompted to confirm. 



  7.  After a few seconds, a graph will be generated in the Neo4j graph database from the SysML model and you will see a confirmation message as below. Click OK.



    Figure 9: Graph has been generated. Click OK to continue.
  • No labels