{"id":40148080,"url":"https://github.com/eclipse-esmf/esmf-sdk-demo","last_synced_at":"2026-01-19T15:02:43.043Z","repository":{"id":261366179,"uuid":"883028831","full_name":"eclipse-esmf/esmf-sdk-demo","owner":"eclipse-esmf","description":"Demonstrate usage of esmf-sdk","archived":false,"fork":false,"pushed_at":"2025-07-14T12:14:02.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-07-14T16:11:24.987Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eclipse-esmf.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-11-04T08:56:51.000Z","updated_at":"2025-07-14T12:14:06.000Z","dependencies_parsed_at":"2025-07-14T14:13:08.767Z","dependency_job_id":"d4379da6-5b9e-48d3-b4f9-e700a84504b8","html_url":"https://github.com/eclipse-esmf/esmf-sdk-demo","commit_stats":null,"previous_names":["eclipse-esmf/esmf-sdk-demo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/eclipse-esmf/esmf-sdk-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-esmf%2Fesmf-sdk-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-esmf%2Fesmf-sdk-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-esmf%2Fesmf-sdk-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-esmf%2Fesmf-sdk-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eclipse-esmf","download_url":"https://codeload.github.com/eclipse-esmf/esmf-sdk-demo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eclipse-esmf%2Fesmf-sdk-demo/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28572579,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T14:39:55.009Z","status":"ssl_error","status_checked_at":"2026-01-19T14:39:01.217Z","response_time":67,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-19T15:02:42.318Z","updated_at":"2026-01-19T15:02:43.031Z","avatar_url":"https://github.com/eclipse-esmf.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# esmf-sdk Demo\n\nDemonstrates various combinations of using the [esmf-sdk](https://github.com/eclipse-esmf/esmf-sdk) to access Aspect Model information and Aspect data.\n\nDemo code and generation of artifacts uses\nthe [PartAsPlanned 2.0.0](https://github.com/eclipse-tractusx/sldt-semantic-models/blob/main/io.catenax.part_as_planned/2.0.0/PartAsPlanned.ttl)\nAspect Model as defined by the Tractus-X project.\n\nTo run all generation steps and tests, run `mvn clean test`.\n\n## Generation of artifacts using the Maven Plugin\n\nIn this project, the pom.xml is configured to use the [\n`esmf-aspect-model-maven-plugin`](https://eclipse-esmf.github.io/esmf-developer-guide/tooling-guide/maven-plugin.html) to generate:\n\n* Java classes (POJOs)\n* Static Java classes\n* OpenAPI specification\n* JSON Schema\n\nAdditionally, the project uses the [openapi-generator](https://openapi-generator.tech/) project with the java-wiremock configuration to generate\na mockserver implementation for the Aspect's OpenAPI specification.\nAll generated code is located in the `src-gen` folder: After running `mvn clean test` you can have a look at the generated code in `src-gen/main/java`\nand the generated OpenAPI specification in `src-gen/main/resources`.\n\n## Demo of Java APIs\n\nIn the class `EsmfSdkTest` some functionalities of the Java API are demonstrated:\n\n* Load an Aspect Model from File, InputStream or directly via URN\n* Generate JSON sample payload for the Aspect, then use Jackson to parse it to create an instance of the\n  corresponding generated Java POJO\n* Programmatically generate HTML documentation for an Aspect Model\n* Usage of the generated static Java classes to navigate the Aspect Model in a type-safe way\n* Usage of static Java classes to access deserialized data\n\nIn the class `PartAsPlannedApiMockTest`, the generated mockserver implementation is used.\n\n* The mockserver is started for the Aspect's API\n* A HTTP request to the mock endpoint is done\n* The result is displayed\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feclipse-esmf%2Fesmf-sdk-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feclipse-esmf%2Fesmf-sdk-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feclipse-esmf%2Fesmf-sdk-demo/lists"}