Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  1. Open Unzip the MagicDraw model (UAV_Graph.mdzip) or the Rhapsody model (zip file and open the 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 packagefile in Rhapsody.

  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 figure below. 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.
    Image Removed
    Image Added
    Image Removed

  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 select Syndeia > Dashboard. Then, go to the Settings tab as shown in Figure 6 below. Specify . Specify all the settings to connect to Neo4j, as shown below, including the password. The default password is neo4j123neo4j (unless you changed it during Neo4j installation). Ensure that the "Use graph service" option is checked. Then, click on the Apply button to save your settings.
    Image Removed

    Image Added

  5. If the "Use graph service" setting was unchecked (default) initially, then you will need to close and reopen the SysML project. 

  6. 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 > Graph Utils > SysML > Graph to  to generate a graph in Neo4j for all SysML elements (recursively) in the context of the System package.
    Image Removed
    Image Removed
    Image Added

  7. Click Yes when prompted to confirm. 



  8.  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.