Azure-Samples / Azure-Samples/digital-twins-explorer

Uploading twins of model with "minMultiplicity" in a relationship is not possible through spreadsheet

Open
#266 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
215
Forks
127
PR merge metrics
No merged PRs in 30d

Description

Hi,

When trying to define a twin which has a model with a relationship with `"minMultiplicity": 0`, the creation fails.
Example model part of https://github.com/Azure/opendigitaltwins-building/tree/21b1c19622e62e5b1f5e0e03744fa08a71da0764/Ontology:
```
{
"@id": "dtmi:digitaltwins:rec_3_3:business:TenantUnit;1",
"@type": "Interface",
"contents": [
{
"@type": "Relationship",
"description": {
"en": "Member entities of a collection; e.g., a Campus includes some Space, an Apartment includes some Room, etc. Inverse of: includedIn"
},
"displayName": {
"en": "includes"
},
"minMultiplicity": 0,
"name": "includes",
"target": "dtmi:digitaltwins:rec_3_3:core:Space;1"
},
{
"@type": "Component",
"displayName": {
"en": "address"
},
"name": "address",
"schema": "dtmi:digitaltwins:rec_3_3:addressing:Address;1"
}
],
"description": {
"en": "A tenant unit is an administrative grouping of spaces (buildings, building components, real estates, etc.) that are used for some purpose by a real estate holder or tenant."
},
"displayNam
[test.xlsx](https://github.com/Azure-Samples/digital-twins-explorer/files/8821579/test.xlsx)
e": {
"en": "Tenant unit"
},
"extends": "dtmi:digitaltwins:rec_3_3:core:SpaceCollection;1",
"@context": "dtmi:dtdl:context;2"
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.