Research Article

A Model of Socially Connected Web Objects for IoT Applications

Algorithm 2

Composition of objects based on social relationship.
Require: (), (), ()
(1) Output: (Composite Service)
(2) M List all objects available (Microservices, CVOs, VOs) in model
(3)   executeQueryStatement (M, )
(4) ℤ←executeQueryStatement (M, )
(5) for All   do
(6)for All   do
(7) if    any   in then
(8) add to
(9) store
(10) end if
(11) end for
(12) for All do
(13)if    any   in   then
(14) ∂← ranking (Assign rank to each service)
(15) add to
(16) store
(17) end if
(18) end for
(19) for All do
(20) if    then
(21) add to Wf
(22) Pq assign to queue
(23) Sort Pq
(24) Formulate Wf
(25) end if
(26) end for