Skip to content
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

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

Open
mwdhont opened this issue Jun 2, 2022 · 1 comment

Comments

@mwdhont
Copy link

mwdhont commented Jun 2, 2022

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"
}
@mwdhont
Copy link
Author

mwdhont commented Jun 2, 2022

test.xlsx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant