Added "BaSyx Hello World" Java example#1029
Conversation
aaronzi
left a comment
There was a problem hiding this comment.
Thanks for the example. Please have a look at my remarks below.
| <dependencies> | ||
| <dependency> | ||
| <groupId>org.eclipse.digitaltwin.basyx</groupId> | ||
| <artifactId>basyx.aasenvironment-client</artifactId> | ||
| <version>2.0.0-milestone-04</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.eclipse.digitaltwin.basyx</groupId> | ||
| <artifactId>basyx.aasrepository-client</artifactId> | ||
| <version>2.0.0-milestone-08</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.eclipse.digitaltwin.basyx</groupId> | ||
| <artifactId>basyx.submodelrepository-client</artifactId> | ||
| <version>2.0.0-milestone-08</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.eclipse.digitaltwin.basyx</groupId> | ||
| <artifactId>basyx.aasservice-client</artifactId> | ||
| <version>2.0.0-milestone-08</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.eclipse.digitaltwin.basyx</groupId> | ||
| <artifactId>basyx.submodelservice-client</artifactId> | ||
| <version>2.0.0-milestone-08</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.eclipse.digitaltwin.aas4j</groupId> | ||
| <artifactId>aas4j-dataformat-aasx</artifactId> | ||
| <version>2.0.1</version> | ||
| </dependency> | ||
| </dependencies> |
There was a problem hiding this comment.
Any reason for using old milestones here and even different ones?
| </dependency> | ||
| </dependencies> | ||
|
|
||
| </project> No newline at end of file |
|
|
||
| In this tutorial you will learn how to: | ||
|
|
||
| 1. Connect to a BaSyx environment |
There was a problem hiding this comment.
| 1. Connect to a BaSyx environment | |
| 1. Connect to a BaSyx AAS Environment |
| 4. Add Submodel Elements | ||
| 5. Create Operations | ||
| 6. Update and read data | ||
| 7. Delete elements |
There was a problem hiding this comment.
| 7. Delete elements | |
| 7. Delete Submodel Elements |
| >Create AAS | ||
| >↓ | ||
| >Create Submodel | ||
| >↓ | ||
| >Add Elements | ||
| >↓ | ||
| >Add Operations | ||
| >↓ | ||
| >Interact / Update | ||
| >↓ | ||
| >Invoke Operations | ||
| >↓ | ||
| >Delete Elements | ||
| >↓ | ||
| >Delete Submodel | ||
| >↓ | ||
| >Delete AAS |
There was a problem hiding this comment.
Why not use a mermaid chart for this?
| - AAS Repository | ||
| - Submodel Repository |
There was a problem hiding this comment.
In the beginning you say an AAS Environment is used
| - AAS Registry | ||
| - Submodel Registry |
There was a problem hiding this comment.
The intro never says AAS and Submodel Registration is also part of this example
There was a problem hiding this comment.
This file includes a few places with multiple consecutive empty lines. Please remove those
| ## Step 2 – Configure BaSyx Environment | ||
|
|
||
| Configure BaSyx by editing the file: | ||
|
|
||
| `basyx/aas-env.properties` | ||
|
|
||
| Use the following configuration: | ||
|
|
||
| ```properties | ||
| server.port=8081 | ||
| basyx.backend=InMemory | ||
| basyx.environment=file:aas | ||
| basyx.cors.allowed-origins=* | ||
| basyx.cors.allowed-methods=GET,POST,PATCH,DELETE,PUT,OPTIONS,HEAD | ||
| spring.servlet.multipart.max-file-size=500MB | ||
| spring.servlet.multipart.max-request-size=500MB | ||
| ``` |
There was a problem hiding this comment.
Is that meant for the server-side config? Why change that if it already defines those?
| ```xml | ||
| <dependencies> | ||
| <dependency> | ||
| <groupId>org.eclipse.digitaltwin.basyx</groupId> | ||
| <artifactId>basyx.aasenvironment-client</artifactId> | ||
| <version>2.0.0-milestone-04</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.eclipse.digitaltwin.basyx</groupId> | ||
| <artifactId>basyx.aasrepository-client</artifactId> | ||
| <version>2.0.0-milestone-08</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.eclipse.digitaltwin.basyx</groupId> | ||
| <artifactId>basyx.submodelrepository-client</artifactId> | ||
| <version>2.0.0-milestone-08</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.eclipse.digitaltwin.basyx</groupId> | ||
| <artifactId>basyx.aasservice-client</artifactId> | ||
| <version>2.0.0-milestone-08</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.eclipse.digitaltwin.basyx</groupId> | ||
| <artifactId>basyx.submodelservice-client</artifactId> | ||
| <version>2.0.0-milestone-08</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.eclipse.digitaltwin.aas4j</groupId> | ||
| <artifactId>aas4j-dataformat-aasx</artifactId> | ||
| <version>2.0.1</version> | ||
| </dependency> | ||
| </dependencies> | ||
| ``` |
There was a problem hiding this comment.
See same comment as in the pom.xml
Pull Request Template
Description of Changes
Added "BaSyx Hello World" Java example code with README.md Wiki page and POM.xml