Skip to content

Commit

Permalink
Digital Twin Graph
Browse files Browse the repository at this point in the history
  • Loading branch information
ashbeitz committed May 10, 2024
1 parent 6e90503 commit 7ed2c96
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,22 @@ note left
model_id: "dtmi:sdv:seat;1"
instance_id: "front left seat"
protocol: "grpc"
operations: ["get", "invoke"]
operations: ["Get", "Invoke"]
uri: Digital Twin Provider's uri
},
{
provider_id: "vehicle-core"
model_id: "dtmi:sdv:seat;1"
instance_id: "front right seat"
protocol: "grpc"
operations: ["get", "invoke"]
operations: ["Get", "Invoke"]
uri: Digital Twin Provider's uri
}
]
end note

loop Iterate over the results from the FindByModelId call
DIGITAL_TWIN_GRAPH -> PROVIDER: Ask(respond_uri: respond uri for Digital Twin Graph, ask_id: "1", payload: {instance_id: "front left seat", operation: "get" })
DIGITAL_TWIN_GRAPH -> PROVIDER: Ask(respond_uri: respond uri for Digital Twin Graph, ask_id: "1", payload: {instance_id: "front left seat", operation: "Get" })
DIGITAL_TWIN_GRAPH <- PROVIDER: Answer(ask_id: "1", payload: instance value as JSON-LD string)
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ note left
model_id : "dtmi:sdv:vehicle;1"
instance_id: "the vehicle"
protocol: "grpc"
operations: ["get"]
operations: ["Get"]
uri: Digital Twin Provider's uri
}
]
end note

DIGITAL_TWIN_GRAPH -> PROVIDER: Ask(respond_uri: respond uri for Digital Twin Graph, ask_id: "3", payload: {instance_id: "the vehicle", operation: "get", member_path: "vehicle_identification"})
DIGITAL_TWIN_GRAPH -> PROVIDER: Ask(respond_uri: respond uri for Digital Twin Graph, ask_id: "3", payload: {instance_id: "the vehicle", operation: "Get", member_path: "vehicle_identification"})
DIGITAL_TWIN_GRAPH <- PROVIDER: Answer(ask_id: "3", payload: instance value as JSON-LD string)

CONSUMER <- DIGITAL_TWIN_GRAPH: Get - response
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ note left
model_id : "dtmi:sdv:premium_airbag_seat_massager;1"
instance_id: "front left seat massager"
protocol: "grpc"
operations: ["get", "invoke"]
operations: ["Get", "Invoke"]
uri: Digital Twin Provider's uri
}
]

end note

DIGITAL_TWIN_GRAPH -> PROVIDER: Ask(respond_uri: respond uri for Digital Twin Graph, ask_id: "5", payload: {instance_id: "front left seat massager", operation: "invoke", member_path: "perform_step", payload: the request payload as JSON-LD string})
DIGITAL_TWIN_GRAPH -> PROVIDER: Ask(respond_uri: respond uri for Digital Twin Graph, ask_id: "5", payload: {instance_id: "front left seat massager", operation: "Invoke", member_path: "perform_step", payload: the request payload as JSON-LD string})
DIGITAL_TWIN_GRAPH <- PROVIDER: Answer(ask_id: "5", payload: response payload as JSON-LD string)

CONSUMER <- DIGITAL_TWIN_GRAPH: Invoke - response
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ note left
model_id : "dtmi:sdv:vehicle;1"
instance_id: "the vehicle"
protocol: "grpc"
operations: ["get"]
operations: ["Set"]
uri: Digital Twin Provider's uri
}
]
end note

DIGITAL_TWIN_GRAPH -> PROVIDER: Ask(respond_uri: respond uri for Digital Twin Graph, ask_id: "4", payload: {instance_id: "the vehicle", operation: "set", member_path: "vehicle_identification/vin", payload: the value as JSON-LD string})
DIGITAL_TWIN_GRAPH -> PROVIDER: Ask(respond_uri: respond uri for Digital Twin Graph, ask_id: "4", payload: {instance_id: "the vehicle", operation: "Set", member_path: "vehicle_identification/vin", payload: the value as JSON-LD string})
DIGITAL_TWIN_GRAPH <- PROVIDER: Answer(ask_id: "4", payload: "")

CONSUMER <- DIGITAL_TWIN_GRAPH: Set - response
Expand Down

0 comments on commit 7ed2c96

Please sign in to comment.