- 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.
- 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.
- 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 - 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.
- 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.
- Click Yes when prompted to confirm.
- 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.
General
Content
Integrations