-
Notifications
You must be signed in to change notification settings - Fork 34
sdk: Add tutorial for Submodel navigation #411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
Previously, we lacked a tutorial demonstrating how to navigate a Submodel's hierarchy using IdShorts and IdShortPaths. This adds a simple tutorial for Submodel navigation and updates the documentation to reference it. The end user is shown how to navigate SubmodelElements, such as simple Properties, Property Collections, Property Lists and Collection Lists. Fixes eclipse-basyx#351
I have two more questions about this topic:
|
* [`tutorial_aasx`](./basyx/aas/examples/tutorial_aasx.py): Export Asset Administration Shells with related objects and auxiliary files to AASX package files | ||
* [`tutorial_backend_couchdb`](./basyx/aas/examples/tutorial_backend_couchdb.py): Use the *Backends* interface (`update()/commit()` methods) to manage and retrieve AAS objects in a CouchDB document database | ||
* [`tutorial_aasx`](./basyx/aas/examples/tutorial_aasx.py): Export Asset Administration Shells with related objects and auxiliary files to AASX package files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you move the tutorial_aasx
down? In my head, it'd be a more logical order to first cover AASX and then CouchDB.
# through them using IdShorts and IdShortPaths. | ||
# | ||
# Step-by-Step Guide: | ||
# Step 1: Create a Submodel with a Property, a Property Collection, a Property List and a Collection List |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# Step 1: Create a Submodel with a Property, a Property Collection, a Property List and a Collection List | |
# Step 1: Create a Submodel with a Property, a SubmodelElementCollection of Properties, a SubmodelElementList of Properties and a SubmodelElementList of SubmodelElementCollections |
# Step 2: Navigate through the Submodel using IdShorts and IdShortPaths | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we could add a little "directory-tree" here to show the final layout of the created Submodel? Something like:
Submodel
| -- Property "idShort1"
| -- SMC "idShort2"
| | -- Property "idShort3"
| -- SML
...
tutorial_create_simple_aas | ||
tutorial_serialization_deserialization | ||
tutorial_navigate_aas | ||
tutorial_storage | ||
tutorial_serialization_deserialization | ||
tutorial_backend_couchdb | ||
tutorial_aasx |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should follow the same order as in the README.
@moritzsommer wrote here:
ad 1.) I agree that this is ugly, but not every ad 2.) This should be covered by the tutorial_storage. Maybe you can refer in this tutorial to it? |
Previously, we lacked a tutorial demonstrating how to navigate a Submodel's hierarchy using IdShorts and IdShortPaths.
This adds a simple tutorial for Submodel navigation and updates the documentation to reference it. The end user is shown how to navigate SubmodelElements, such as simple Properties, Property Collections, Property Lists and Collection Lists.
Fixes #351