Skip to content

Commit

Permalink
Fix relationship detail in DTDL README (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashbeitz authored Mar 6, 2024
1 parent 17b94e9 commit 19fbaf2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions digital-twin-model/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,17 @@ Here's an example of how a relationship might be represented in a DTDL instance:
"@id": "dtmi:com:example:Building:building1;1", // Unique identifier for the instance
"@type": "dtmi:com:example:Building;1", // The DTDL model that the instance is based on
"hasFloor": [
"dtmi:com:example:Floor:floor1;1",
"dtmi:com:example:Floor:floor2;1"
{
"@id": "dtmi:com:example:Floor:floor1;1"
},
{
"@id": "dtmi:com:example:Floor:floor2;1"
}
]
}
```

In this example, the `hasFloor` field is an array of identifiers for `Floor` instances that are related to the `Building` instance.
In this example, the `hasFloor` field is an array of objects that contain identifiers for `Floor` instances that are related to the `Building` instance.

## Using the Digital Twin Model in the Code

Expand Down

0 comments on commit 19fbaf2

Please sign in to comment.