eclipse-tractusx / sldt-semantic-hub

Apache License 2.0
6 stars 9 forks source link

Semantic-hub model upload issue #237

Open agg3fe opened 5 months ago

agg3fe commented 5 months ago

Current Behavior

When trying to upload some random model, it shows error message.

example: When tried to upload DigitalProductPassport:3.0.0, it throws error: {"error":{"message":"Validation failed.","path":"/hub/api/v1/models","details":{"ERR_PROCESSING":"Resolution strategy returned a model which does not contain element definition for urn:samm:io.catenax.shared.quantity:1.0.0#LinearCharacteristic"}}}

link: https://github.com/eclipse-tractusx/sldt-semantic-models/actions/runs/8018829694/job/21905528698

Expected Behavior

Model should be uploaded successfully, as the dependent models are already present in DB.

The issue does not occur for every model, but only for few models.

Issue trace:

The validation of model fails in semantic-hub side. SAMMSdk.java class throws error: https://github.com/eclipse-tractusx/sldt-semantic-hub/blob/main/backend/src/main/java/org/eclipse/tractusx/semantics/hub/persistence/triplestore/SAMMSdk.java#L79 Seems something wrong with samm sdk, but not sure for now.