You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: draft-ietf-asdf-instance-information.md
+96Lines changed: 96 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -766,6 +766,102 @@ sdfInstance:
766
766
{:sdf #code-snapshot-with-actions-and-events
767
767
title="Example of an SDF Snapshot Messages that reports an action and an event history."}
768
768
769
+
# Model and Message Conversion
770
+
771
+
SDF messages increase the semantic capabilities of SDF, which means that it can cover more ecosystem-specific concepts when used as a conversion input or output.
772
+
This allows us to better cover description formats that use instance-related information in their data models, but poses a challenge when the distinction from model-related information is not clearly drawn.
773
+
774
+
{{code-wot-td-example}} shows an initial example from the Web of Things (WoT) ecosystem that uses a CoAP Protocol Binding in its property affordance `status`.
775
+
Analyzing this model, we can quickly see that most of the information contained is actually model-related information that could apply to other lamps as well.
776
+
This includes the schema information for the status, the security mode (or lack thereof) as well as the protocol binding information.
777
+
Important exceptions are the hostname or (in this case) the IP address of the Thing, its `id` as well as its `title` that are specific to this device.
title="WoT TD example showcasing a mix of model and instance information."}
805
+
806
+
{{code-sdf-model-for-wot-example}} illustrates how an SDF model can cover the model-related information from the WoT TD example.
807
+
Note that this example contains a separate `ipAddress` property that is used for this piece of context information that serves as a paramter for resolved CoAP URL.
title="SDF message containing the instance-related information from the previous WoT example."}
860
+
861
+
While these examples highlight the potential of instance-related messages for a clean separation of model and instance information, they also raise a number of questions, for example about the role of namespaces for SDF conversion results and the location where the resulting SDF models may be stored to potentially make them accessible to consumers.
862
+
In practice, these questions may not be as relevant when converting from SDF to (in this case) WoT or when using SDF only as an internal translation medium for bridging between two ecosystems.
863
+
However, these considerations emphasize the need for a set of standardized, reusable building blocks that can also be used for model and message conversion.
0 commit comments