From 444772b6435e13625c9083f00f4402edf8291afa Mon Sep 17 00:00:00 2001 From: Manas Bajaj Date: Sat, 18 Jun 2022 11:33:44 -0400 Subject: [PATCH 1/4] Add a summary of recipes in Readme --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 4f665fe..5eab3c9 100644 --- a/README.md +++ b/README.md @@ -2,3 +2,17 @@ The SysML v2 API Cookbook repository is a collection of API recipes to demonstrate patterns and examples for using the [SysML v2 API & Services](https://github.com/Systems-Modeling/SysML-v2-API-Services). In the current release, the cookbook contains recipes that use the SysML v2 REST/HTTP API (PSM). Each recipe is a [Jupyter notebook](https://jupyter.org/) with a sequence of API calls to the SysML v2 REST/HTTP API. + +## Description of recipes + +### Requirement, Structure, Behavior decomposition recipe +This recipe shows patterns and examples for navigating the decomposition of requirements, structure, and behavior elements using the SysML v2 API. The SysML v2 meta-model has harmonized the concepts related to element decomposition and the same concepts are used when decomposing requirements, structure, and behavior releated elements. This recipe shows the use of a common recursive function to navigate the decomposition of requirements, structure, and behavior elements. + +See the Jupyter notebook Req_Str_Beh_Decomposition_Recipe.ipynb for details. + +### Project, Commit, Branch, and Tag recipe +This recipe shows patterns and examples for fetching and creating commits, branches, and tags in a project. It shows an example scenario for SysML v2 project evolution over time with concurrent users working on different branches, creating new commits, and creating tags for baseline or milestone releases of the project. + +See the Jupyter notebook Project_Commit_Branch_Tag_Recipe.ipynb for details. + + From 6e253635c43f283da4d3b734517cbdd1ae6f4725 Mon Sep 17 00:00:00 2001 From: Manas Bajaj Date: Sat, 18 Jun 2022 11:35:12 -0400 Subject: [PATCH 2/4] Refine recipe descriptions in Readme. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5eab3c9..1460070 100644 --- a/README.md +++ b/README.md @@ -8,11 +8,11 @@ In the current release, the cookbook contains recipes that use the SysML v2 REST ### Requirement, Structure, Behavior decomposition recipe This recipe shows patterns and examples for navigating the decomposition of requirements, structure, and behavior elements using the SysML v2 API. The SysML v2 meta-model has harmonized the concepts related to element decomposition and the same concepts are used when decomposing requirements, structure, and behavior releated elements. This recipe shows the use of a common recursive function to navigate the decomposition of requirements, structure, and behavior elements. -See the Jupyter notebook Req_Str_Beh_Decomposition_Recipe.ipynb for details. +See the Jupyter notebook [Req_Str_Beh_Decomposition_Recipe.ipynb](https://github.com/Systems-Modeling/SysML-v2-API-Cookbook/blob/main/Req_Str_Beh_Decomposition_Recipe.ipynb) for details. ### Project, Commit, Branch, and Tag recipe This recipe shows patterns and examples for fetching and creating commits, branches, and tags in a project. It shows an example scenario for SysML v2 project evolution over time with concurrent users working on different branches, creating new commits, and creating tags for baseline or milestone releases of the project. -See the Jupyter notebook Project_Commit_Branch_Tag_Recipe.ipynb for details. +See the Jupyter notebook [Project_Commit_Branch_Tag_Recipe.ipynb](https://github.com/Systems-Modeling/SysML-v2-API-Cookbook/blob/main/Project_Commit_Branch_Tag_Recipe.ipynb) for details. From b9f4a7858a6379f146576cca592316efad489a3f Mon Sep 17 00:00:00 2001 From: Manas Bajaj Date: Thu, 21 Jul 2022 16:38:42 -0400 Subject: [PATCH 3/4] Update README.md --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1460070..90b65e5 100644 --- a/README.md +++ b/README.md @@ -8,11 +8,14 @@ In the current release, the cookbook contains recipes that use the SysML v2 REST ### Requirement, Structure, Behavior decomposition recipe This recipe shows patterns and examples for navigating the decomposition of requirements, structure, and behavior elements using the SysML v2 API. The SysML v2 meta-model has harmonized the concepts related to element decomposition and the same concepts are used when decomposing requirements, structure, and behavior releated elements. This recipe shows the use of a common recursive function to navigate the decomposition of requirements, structure, and behavior elements. -See the Jupyter notebook [Req_Str_Beh_Decomposition_Recipe.ipynb](https://github.com/Systems-Modeling/SysML-v2-API-Cookbook/blob/main/Req_Str_Beh_Decomposition_Recipe.ipynb) for details. +See the Jupyter notebook **Req_Str_Beh_Decomposition_Recipe.ipynb** for details. ### Project, Commit, Branch, and Tag recipe This recipe shows patterns and examples for fetching and creating commits, branches, and tags in a project. It shows an example scenario for SysML v2 project evolution over time with concurrent users working on different branches, creating new commits, and creating tags for baseline or milestone releases of the project. -See the Jupyter notebook [Project_Commit_Branch_Tag_Recipe.ipynb](https://github.com/Systems-Modeling/SysML-v2-API-Cookbook/blob/main/Project_Commit_Branch_Tag_Recipe.ipynb) for details. +See the Jupyter notebook **Project_Commit_Branch_Tag_Recipe.ipynb** for details. +### Queries recipe +This recipe shows patterns and examples for formulating and executing queries in a project. Examples show queries with multiple constraints. +See the Jupyter notebook **Queries.ipynb** for details. From 7a7d92939e6c68533d61bbd8d308037e814abd96 Mon Sep 17 00:00:00 2001 From: Manas Bajaj Date: Mon, 10 Mar 2025 17:30:33 -0400 Subject: [PATCH 4/4] Fixed host for requirement structure decomposition recipe --- Req_Str_Beh_Decomposition_Recipe.ipynb | 585 ++----------------------- 1 file changed, 27 insertions(+), 558 deletions(-) diff --git a/Req_Str_Beh_Decomposition_Recipe.ipynb b/Req_Str_Beh_Decomposition_Recipe.ipynb index 1a30087..8e936fd 100644 --- a/Req_Str_Beh_Decomposition_Recipe.ipynb +++ b/Req_Str_Beh_Decomposition_Recipe.ipynb @@ -10,7 +10,7 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": null, "id": "6b5fef59", "metadata": {}, "outputs": [], @@ -37,407 +37,10 @@ }, { "cell_type": "code", - "execution_count": 18, + "execution_count": null, "id": "78788ed9", "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "
\n", - "\n", - "\n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - " \n", - "
Project NameProject ID
0Spacecraft project with Element CRUD - 2022-09...0659c128-afd5-42a1-912b-962068f1f053
117b-Sequence-Modeling Fri Sep 09 17:37:26 EDT ...0f7045bd-9a1c-4b54-90d9-775c0f642e1b
23a-Function-based Behavior-2 Fri Sep 09 17:26:...128710cd-978f-4c6f-93ac-8afbbd194185
310c-Fuel Economy Analysis Fri Sep 09 17:30:43 ...2909d482-a659-4307-9803-bdfcbe0a7989
4PartTest Fri Sep 09 17:22:13 EDT 20222a2a4d7d-cd9e-41ec-bec0-2bf6fcea6767
515_05-Unification of Expression and Constraint...39dcf070-668c-4711-a231-c2640b9f7f88
615_19-Materials with Properties Fri Sep 09 17:...3bd937e0-ab2e-47a6-8f66-0458df9f29de
7Spacecraft project with branches and tags - 20...3c293f80-a0aa-46a5-8cde-25a31ec697e0
83a-Function-based Behavior-1 Wed Sep 21 11:44:...413e8b6e-a4c7-483e-a212-eb25e7c47aff
914b-Language Extensions Fri Sep 09 17:35:06 ED...431cd401-010c-401f-9101-115240312d24
1013b-Safety and Security Features Element Group...46b226ce-8519-42de-96b4-07ff1045d0dd
11Spacecraft project with Element CRUD - 2022-09...4853c38b-85c5-40e5-9e83-b69c2e73415a
123a-Function-based Behavior-3 Fri Sep 09 17:26:...48f9a623-2451-4150-8b98-58e3b3c515cd
1312a-Dependency Fri Sep 09 17:32:29 EDT 202249a60e69-b509-4191-b1c3-240de628110b
144a-Functional Allocation Wed Sep 21 11:45:43 E...4f6c6172-ab0c-4572-b549-6b7da7e9e5fb
157b-Variant Configurations Fri Sep 09 17:28:59 ...59c86238-ef81-434e-a389-5393312ba0d7
161c-Parts Tree Redefinition Wed Sep 21 11:43:30...5b5474b6-68b8-43bf-b0f6-7d455bffa63d
1717a-Sequence-Modeling Fri Sep 09 17:37:07 EDT ...653c5173-770d-4ea6-90dc-c173d049258c
1813a-Model Containment Fri Sep 09 17:33:03 EDT ...6699f5e0-403b-414a-87c9-46671e702fab
19Spacecraft project with Element CRUD - 2022-09...77dd61e8-456a-425b-ac05-385bf6c20161
2011b-Safety and Security Feature Views Fri Sep ...84f30a8f-f839-4a71-aee9-dff2a2d28dbf
211c-Parts Tree Redefinition Fri Sep 09 17:25:05...85d874ae-1f68-4949-9b16-378f1cbc477e
222a-Parts Interconnection Wed Sep 21 11:43:57 E...887e0281-066f-4667-a67b-d50e886d031c
2314a-Language Extensions Fri Sep 09 17:34:49 ED...8f0bc3b3-a580-40fd-b99b-0e8865984c4f
246-Individual and Snapshots Fri Sep 09 17:28:35...913dab3f-4d5d-482d-9238-7491aead3e1a
25PartTest Fri Sep 09 17:21:50 EDT 202291b2be09-16de-4d35-87a4-589f3274ce55
2611a-View-Viewpoint Fri Sep 09 17:31:42 EDT 202291fd6db5-4cfa-4970-b115-05010053ec72
2713b-Safety and Security Features Element Group...95bfcea3-8ed7-4bd4-9e98-3d6ed311091e
28Spacecraft project with branches and tags - 20...978d0199-4e44-4090-8cb6-4253fd79e315
293a-Function-based Behavior-1 Fri Sep 09 17:26:...9da34b47-38d0-4630-bcb4-c387d5fac1da
30sysml Fri Sep 16 14:36:21 EDT 20229f7efdc8-e6d1-4cf4-a132-532e2f136e7f
319-Verification-simplified Fri Sep 09 17:29:54 ...a9a02019-b810-4fcb-9a9c-5cad061db29f
3210b-Trade-off Among Alternative Configurations...ada6b9b6-3534-43b3-a567-f97092ac26f1
3312b-Allocation Fri Sep 09 17:32:45 EDT 2022b4c01f6d-8173-4d43-abd1-596bdb89d6d4
34Spacecraft project with Element CRUD - 2022-09...b67ebee6-b55e-4088-b059-c2f102989ac2
358-Requirements Fri Sep 09 17:29:27 EDT 2022b6a3450b-8624-45c2-8dd9-68d301a439fe
3615_10-Primitive Data Types Fri Sep 09 17:36:20...bb65a453-67bc-4e6c-92c7-29734c80bab1
37sysml Fri Sep 16 14:49:18 EDT 2022c60d5b4d-5f36-4083-ae1a-e61ed2be0e78
382a-Parts Interconnection Fri Sep 09 17:23:32 E...c64923aa-79f4-419c-b983-6244fee741d6
395-State-based Behavior-1 Fri Sep 09 17:27:37 E...c6b1d4d6-a66e-4097-8752-5307ecd9ebaf
402a-Parts Interconnection Fri Sep 09 17:25:35 E...cb4e467e-772b-4054-849e-26e4b0e1e0c0
4110d-Dynamics Analysis Fri Sep 09 17:31:13 EDT ...cceed28a-64fb-4401-81da-afcadd96d1d6
4213b-Safety and Security Features Element Group...d4c21bc8-6778-4a97-b389-48b1e7b23260
435-State-based Behavior-1a Fri Sep 09 17:28:06 ...d63b8882-f41e-40ef-a4a2-cf74fa47f6dc
4414c-Language Extensions Fri Sep 09 17:35:25 ED...da4e65b6-460d-447b-8cf9-56a3ad44e514
453a-Function-based Behavior-2 Wed Sep 21 11:44:...e27d992a-91e6-450a-b6f6-b79196ebeeb9
463a-Function-based Behavior-3 Wed Sep 21 11:45:...e4966bc8-bd9f-4c63-a43d-2c21fe512d31
474a-Functional Allocation Fri Sep 09 17:27:13 E...e7090e9d-74f0-4b63-a4a6-6dd8647b5bdd
48Spacecraft project with Element CRUD - 2022-09...f0594c9c-55ef-49f6-9591-d27d12cc0afb
49Spacecraft project with Element CRUD - 2022-09...f8161e56-586e-44ae-ab12-53ad1fc972de
5018-Use Case Fri Sep 09 17:37:44 EDT 2022ff0dfcc3-cf11-4d4f-961a-ae42326f6b12
\n", - "
" - ], - "text/plain": [ - " Project Name \\\n", - "0 Spacecraft project with Element CRUD - 2022-09... \n", - "1 17b-Sequence-Modeling Fri Sep 09 17:37:26 EDT ... \n", - "2 3a-Function-based Behavior-2 Fri Sep 09 17:26:... \n", - "3 10c-Fuel Economy Analysis Fri Sep 09 17:30:43 ... \n", - "4 PartTest Fri Sep 09 17:22:13 EDT 2022 \n", - "5 15_05-Unification of Expression and Constraint... \n", - "6 15_19-Materials with Properties Fri Sep 09 17:... \n", - "7 Spacecraft project with branches and tags - 20... \n", - "8 3a-Function-based Behavior-1 Wed Sep 21 11:44:... \n", - "9 14b-Language Extensions Fri Sep 09 17:35:06 ED... \n", - "10 13b-Safety and Security Features Element Group... \n", - "11 Spacecraft project with Element CRUD - 2022-09... \n", - "12 3a-Function-based Behavior-3 Fri Sep 09 17:26:... \n", - "13 12a-Dependency Fri Sep 09 17:32:29 EDT 2022 \n", - "14 4a-Functional Allocation Wed Sep 21 11:45:43 E... \n", - "15 7b-Variant Configurations Fri Sep 09 17:28:59 ... \n", - "16 1c-Parts Tree Redefinition Wed Sep 21 11:43:30... \n", - "17 17a-Sequence-Modeling Fri Sep 09 17:37:07 EDT ... \n", - "18 13a-Model Containment Fri Sep 09 17:33:03 EDT ... \n", - "19 Spacecraft project with Element CRUD - 2022-09... \n", - "20 11b-Safety and Security Feature Views Fri Sep ... \n", - "21 1c-Parts Tree Redefinition Fri Sep 09 17:25:05... \n", - "22 2a-Parts Interconnection Wed Sep 21 11:43:57 E... \n", - "23 14a-Language Extensions Fri Sep 09 17:34:49 ED... \n", - "24 6-Individual and Snapshots Fri Sep 09 17:28:35... \n", - "25 PartTest Fri Sep 09 17:21:50 EDT 2022 \n", - "26 11a-View-Viewpoint Fri Sep 09 17:31:42 EDT 2022 \n", - "27 13b-Safety and Security Features Element Group... \n", - "28 Spacecraft project with branches and tags - 20... \n", - "29 3a-Function-based Behavior-1 Fri Sep 09 17:26:... \n", - "30 sysml Fri Sep 16 14:36:21 EDT 2022 \n", - "31 9-Verification-simplified Fri Sep 09 17:29:54 ... \n", - "32 10b-Trade-off Among Alternative Configurations... \n", - "33 12b-Allocation Fri Sep 09 17:32:45 EDT 2022 \n", - "34 Spacecraft project with Element CRUD - 2022-09... \n", - "35 8-Requirements Fri Sep 09 17:29:27 EDT 2022 \n", - "36 15_10-Primitive Data Types Fri Sep 09 17:36:20... \n", - "37 sysml Fri Sep 16 14:49:18 EDT 2022 \n", - "38 2a-Parts Interconnection Fri Sep 09 17:23:32 E... \n", - "39 5-State-based Behavior-1 Fri Sep 09 17:27:37 E... \n", - "40 2a-Parts Interconnection Fri Sep 09 17:25:35 E... \n", - "41 10d-Dynamics Analysis Fri Sep 09 17:31:13 EDT ... \n", - "42 13b-Safety and Security Features Element Group... \n", - "43 5-State-based Behavior-1a Fri Sep 09 17:28:06 ... \n", - "44 14c-Language Extensions Fri Sep 09 17:35:25 ED... \n", - "45 3a-Function-based Behavior-2 Wed Sep 21 11:44:... \n", - "46 3a-Function-based Behavior-3 Wed Sep 21 11:45:... \n", - "47 4a-Functional Allocation Fri Sep 09 17:27:13 E... \n", - "48 Spacecraft project with Element CRUD - 2022-09... \n", - "49 Spacecraft project with Element CRUD - 2022-09... \n", - "50 18-Use Case Fri Sep 09 17:37:44 EDT 2022 \n", - "\n", - " Project ID \n", - "0 0659c128-afd5-42a1-912b-962068f1f053 \n", - "1 0f7045bd-9a1c-4b54-90d9-775c0f642e1b \n", - "2 128710cd-978f-4c6f-93ac-8afbbd194185 \n", - "3 2909d482-a659-4307-9803-bdfcbe0a7989 \n", - "4 2a2a4d7d-cd9e-41ec-bec0-2bf6fcea6767 \n", - "5 39dcf070-668c-4711-a231-c2640b9f7f88 \n", - "6 3bd937e0-ab2e-47a6-8f66-0458df9f29de \n", - "7 3c293f80-a0aa-46a5-8cde-25a31ec697e0 \n", - "8 413e8b6e-a4c7-483e-a212-eb25e7c47aff \n", - "9 431cd401-010c-401f-9101-115240312d24 \n", - "10 46b226ce-8519-42de-96b4-07ff1045d0dd \n", - "11 4853c38b-85c5-40e5-9e83-b69c2e73415a \n", - "12 48f9a623-2451-4150-8b98-58e3b3c515cd \n", - "13 49a60e69-b509-4191-b1c3-240de628110b \n", - "14 4f6c6172-ab0c-4572-b549-6b7da7e9e5fb \n", - "15 59c86238-ef81-434e-a389-5393312ba0d7 \n", - "16 5b5474b6-68b8-43bf-b0f6-7d455bffa63d \n", - "17 653c5173-770d-4ea6-90dc-c173d049258c \n", - "18 6699f5e0-403b-414a-87c9-46671e702fab \n", - "19 77dd61e8-456a-425b-ac05-385bf6c20161 \n", - "20 84f30a8f-f839-4a71-aee9-dff2a2d28dbf \n", - "21 85d874ae-1f68-4949-9b16-378f1cbc477e \n", - "22 887e0281-066f-4667-a67b-d50e886d031c \n", - "23 8f0bc3b3-a580-40fd-b99b-0e8865984c4f \n", - "24 913dab3f-4d5d-482d-9238-7491aead3e1a \n", - "25 91b2be09-16de-4d35-87a4-589f3274ce55 \n", - "26 91fd6db5-4cfa-4970-b115-05010053ec72 \n", - "27 95bfcea3-8ed7-4bd4-9e98-3d6ed311091e \n", - "28 978d0199-4e44-4090-8cb6-4253fd79e315 \n", - "29 9da34b47-38d0-4630-bcb4-c387d5fac1da \n", - "30 9f7efdc8-e6d1-4cf4-a132-532e2f136e7f \n", - "31 a9a02019-b810-4fcb-9a9c-5cad061db29f \n", - "32 ada6b9b6-3534-43b3-a567-f97092ac26f1 \n", - "33 b4c01f6d-8173-4d43-abd1-596bdb89d6d4 \n", - "34 b67ebee6-b55e-4088-b059-c2f102989ac2 \n", - "35 b6a3450b-8624-45c2-8dd9-68d301a439fe \n", - "36 bb65a453-67bc-4e6c-92c7-29734c80bab1 \n", - "37 c60d5b4d-5f36-4083-ae1a-e61ed2be0e78 \n", - "38 c64923aa-79f4-419c-b983-6244fee741d6 \n", - "39 c6b1d4d6-a66e-4097-8752-5307ecd9ebaf \n", - "40 cb4e467e-772b-4054-849e-26e4b0e1e0c0 \n", - "41 cceed28a-64fb-4401-81da-afcadd96d1d6 \n", - "42 d4c21bc8-6778-4a97-b389-48b1e7b23260 \n", - "43 d63b8882-f41e-40ef-a4a2-cf74fa47f6dc \n", - "44 da4e65b6-460d-447b-8cf9-56a3ad44e514 \n", - "45 e27d992a-91e6-450a-b6f6-b79196ebeeb9 \n", - "46 e4966bc8-bd9f-4c63-a43d-2c21fe512d31 \n", - "47 e7090e9d-74f0-4b63-a4a6-6dd8647b5bdd \n", - "48 f0594c9c-55ef-49f6-9591-d27d12cc0afb \n", - "49 f8161e56-586e-44ae-ab12-53ad1fc972de \n", - "50 ff0dfcc3-cf11-4d4f-961a-ae42326f6b12 " - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], + "outputs": [], "source": [ "projects_url = f\"{host}/projects\" \n", "projects_response = requests.get(projects_url)\n", @@ -462,7 +65,7 @@ }, { "cell_type": "code", - "execution_count": 19, + "execution_count": null, "id": "24ec6146", "metadata": {}, "outputs": [], @@ -497,22 +100,10 @@ }, { "cell_type": "code", - "execution_count": 20, + "execution_count": null, "id": "482ddfe4", "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "[{'@id': '3fed527b-cd9f-4e7c-a0f3-360b8f02085d',\n", - " '@type': 'Commit',\n", - " 'owningProject': {'@id': '85d874ae-1f68-4949-9b16-378f1cbc477e'},\n", - " 'previousCommit': None,\n", - " 'timestamp': '2022-09-09T17:24:55.229447-04:00'}]\n" - ] - } - ], + "outputs": [], "source": [ "parts_tree_project_id = '85d874ae-1f68-4949-9b16-378f1cbc477e'\n", "parts_tree_commit_id = ''\n", @@ -535,21 +126,10 @@ }, { "cell_type": "code", - "execution_count": 21, + "execution_count": null, "id": "3d724e27", "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "[{'@id': 'b4f3d464-1319-45ee-a779-82d1b2252c3a',\n", - " '@type': 'PartUsage',\n", - " 'name': 'vehicle1',\n", - " 'owner': {'@id': 'ff4e8415-ed73-491d-8b7a-797caadcdf54'}}]\n" - ] - } - ], + "outputs": [], "source": [ "# Query vehicle1 (PartUsage) in the \n", "data = {\n", @@ -600,24 +180,10 @@ }, { "cell_type": "code", - "execution_count": 22, + "execution_count": null, "id": "406504bf", "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - " - vehicle1 (id = b4f3d464-1319-45ee-a779-82d1b2252c3a, type = PartUsage)\n", - " - frontAxleAssembly (id = b7011eae-20bd-4cb6-b3e4-ead27a509f47, type = PartUsage)\n", - " - frontAxle (id = 0974ffce-137c-443b-a187-c6a049d2f2b3, type = PartUsage)\n", - " - frontWheel (id = 08e6ee25-0118-4b14-b4f6-7e728401fad3, type = PartUsage)\n", - " - rearAxleAssembly (id = 62e9d93a-aa5a-4a3c-ac22-22cea9f2db3a, type = PartUsage)\n", - " - rearAxle (id = b72abb4c-11a3-428a-85ea-a9457f429989, type = PartUsage)\n", - " - rearWheel (id = 9d35829f-eb02-46b1-a284-cab4c77ad529, type = PartUsage)\n" - ] - } - ], + "outputs": [], "source": [ "get_member_features(parts_tree_project_id,parts_tree_commit_id,vehicle1_id,'PartUsage',\" \")" ] @@ -632,21 +198,10 @@ }, { "cell_type": "code", - "execution_count": 23, + "execution_count": null, "id": "5c13178f", "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "[{'@id': 'c0b96198-597c-489f-a026-bdac2c13444b',\n", - " '@type': 'PartUsage',\n", - " 'name': 'vehicle1_c1',\n", - " 'owner': {'@id': 'ff4e8415-ed73-491d-8b7a-797caadcdf54'}}]\n" - ] - } - ], + "outputs": [], "source": [ "\n", "data = {\n", @@ -696,28 +251,10 @@ }, { "cell_type": "code", - "execution_count": 24, + "execution_count": null, "id": "1dbfe8f6", "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - " - vehicle1_c1 (id = c0b96198-597c-489f-a026-bdac2c13444b, type = PartUsage)\n", - " - frontAxleAssembly_c1 (id = c85cf569-e305-4c9d-8503-f65aaa11e56c, type = PartUsage)\n", - " - frontAxle_c1 (id = 6ae2d0f5-3ad5-4413-8939-e1488d520644, type = PartUsage)\n", - " - frontWheel_1 (id = 6da39a5b-74f4-4bb4-b56a-3ec60a455e69, type = PartUsage)\n", - " - frontWheel_2 (id = d151d807-fe16-40e7-833b-d0985470aa88, type = PartUsage)\n", - " - frontWheel (id = 08e6ee25-0118-4b14-b4f6-7e728401fad3, type = PartUsage)\n", - " - rearAxleAssembly_c1 (id = 8f4829e8-49af-4802-9435-44145e61b533, type = PartUsage)\n", - " - rearAxle_c1 (id = 92a3c5e6-1652-4365-8383-28b79958c974, type = PartUsage)\n", - " - rearWheel_1 (id = 21c018fe-a614-4089-9ee8-348af9f550c0, type = PartUsage)\n", - " - rearWheel_2 (id = 090eafcd-7970-404f-8c81-d36403d558ca, type = PartUsage)\n", - " - rearWheel (id = 9d35829f-eb02-46b1-a284-cab4c77ad529, type = PartUsage)\n" - ] - } - ], + "outputs": [], "source": [ "get_member_features(parts_tree_project_id,parts_tree_commit_id,vehicle1_c1_id,'PartUsage',\" \")" ] @@ -732,22 +269,10 @@ }, { "cell_type": "code", - "execution_count": 25, + "execution_count": null, "id": "c9c96cbe", "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "[{'@id': 'f934f9e3-8686-4e81-9918-66ab72394e8f',\n", - " '@type': 'Commit',\n", - " 'owningProject': {'@id': '128710cd-978f-4c6f-93ac-8afbbd194185'},\n", - " 'previousCommit': None,\n", - " 'timestamp': '2022-09-09T17:26:11.688211-04:00'}]\n" - ] - } - ], + "outputs": [], "source": [ "behavior_project_id = '128710cd-978f-4c6f-93ac-8afbbd194185'\n", "behavior_project_commit_id = ''\n", @@ -770,21 +295,10 @@ }, { "cell_type": "code", - "execution_count": 26, + "execution_count": null, "id": "d5a63113", "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "[{'@id': '2619c029-185a-456f-9ea9-12b94171e1b1',\n", - " '@type': 'ActionUsage',\n", - " 'name': 'provide power',\n", - " 'owner': {'@id': '9a44fd3f-9173-418a-8f61-f01ec86a2fd7'}}]\n" - ] - } - ], + "outputs": [], "source": [ "data = {\n", " '@type':'Query',\n", @@ -834,23 +348,10 @@ }, { "cell_type": "code", - "execution_count": 27, + "execution_count": null, "id": "91193b07", "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - " - provide power (id = 2619c029-185a-456f-9ea9-12b94171e1b1, type = ActionUsage)\n", - " - generate torque (id = 5a353b3d-6b09-40b4-b86c-24a2eb5bbccc, type = ActionUsage)\n", - " - amplify torque (id = aa7783bb-641c-4860-9f5e-399b693bc918, type = ActionUsage)\n", - " - transfer torque (id = 4abcd2c6-a7a6-4b3e-9e07-19faea837303, type = ActionUsage)\n", - " - distribute torque (id = 72cf307d-af84-477a-8cb5-34f58b3d1952, type = ActionUsage)\n", - " - start (id = ac7a1de9-82ed-4e08-bcc5-361ec1aa5365, type = ActionUsage)\n" - ] - } - ], + "outputs": [], "source": [ "get_member_features(behavior_project_id, behavior_project_commit_id, provide_power_id,\"ActionUsage\",\" \")" ] @@ -865,33 +366,21 @@ }, { "cell_type": "code", - "execution_count": 28, + "execution_count": null, "id": "89840b26", "metadata": {}, "outputs": [], "source": [ "simple_vehicle_model_project = '8b377f03-9f29-4ae9-b60b-d266dc4a8180'\n", - "vehicle_commit = '10f84681-3d17-43be-b59a-89c480d1abeb'\n", - "host = \"http://sysml2-sst.intercax.com:9000/"" + "vehicle_commit = '10f84681-3d17-43be-b59a-89c480d1abeb'" ] }, { "cell_type": "code", - "execution_count": 29, + "execution_count": null, "id": "5fa94a05-c45e-4d93-a145-7e5967a87cd9", "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "[{'@id': 'e397abe0-85b1-46df-87b8-69128a583c7c',\n", - " '@type': 'RequirementUsage',\n", - " 'name': 'vehicleSpecification',\n", - " 'owner': None}]\n" - ] - } - ], + "outputs": [], "source": [ "data = {\n", " '@type':'Query',\n", @@ -933,33 +422,13 @@ }, { "cell_type": "code", - "execution_count": 30, + "execution_count": null, "id": "bd2276aa", "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - " - vehicleSpecification (id = e397abe0-85b1-46df-87b8-69128a583c7c, type = RequirementUsage)\n", - " - vehicleMassRequirement (id = 9e144d15-af6c-4113-861f-29376923ee94, type = RequirementUsage)\n", - " - vehicleFuelEconomyRequirements (id = 11aa2bdc-43f9-4576-aae5-7f8d679a0d8f, type = RequirementUsage)\n", - " - cityFuelEconomyRequirement (id = 0e37be64-b3bd-4f24-b5c5-156b17eb0c90, type = RequirementUsage)\n", - " - highwayFuelEconomyRequirement (id = 8163dc3d-7145-470d-80f4-64dd67317a43, type = RequirementUsage)\n" - ] - } - ], + "outputs": [], "source": [ "get_member_features(simple_vehicle_model_project, vehicle_commit, vehicle_specification_id,\"RequirementUsage\",\" \")" ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "ee934c22-4fb4-4409-804d-91010d3cebab", - "metadata": {}, - "outputs": [], - "source": [] } ], "metadata": { @@ -978,7 +447,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.13" + "version": "3.8.16" } }, "nbformat": 4,