diff --git a/index.html b/index.html index 22ebe147..51c992c4 100644 --- a/index.html +++ b/index.html @@ -92,6 +92,65 @@ }, }; + +
@@ -369,7 +428,6 @@@@ -423,12 +481,20 @@
+ typedef object ExposedThingInit; + partial namespace WOT { - Promise<ExposedThing> produce(ThingDescription td); + Promise<ExposedThing> produce(ExposedThingInit init); };
securityDefinitions
check if it is supported by at least one Protocol Binding.
+ If not remove scheme security
is defined but it is not contained in securityDefinitions
remove
+ security
authority
it is not recognized by the runtime as a valid
+ remove |href| from |form|. The editors find this step vague. It will be improved or removed in the next iteration.
+title
generate a runtime unique name and assign to title
.@context
assign the latest supported Thing Description context URI.instance
assign the string 1.0.0
.forms
generate a list of Forms using the available Protocol Bindings and content types
+ encoders. Then assign the obtained list to forms
.security
assign the label of the first supported SecurityScheme in securityDefinitions
field.
+ If no SecurityScheme is found generate a NoSecurityScheme called nosec
and assing the string nosec
+ to security
.
+ The discussion about how to properly generate a value for security
is still open.
+ See issue #299
href
define |formStub| as the partial Form that does not have href
. Generate a valid |url:URL| using the first Protocol Binding
+ that satisfy the requirements of |formStub|. Assign |url| to href
. If not Protocol Binding can be found remove |formStub| from |td|. title
, @context
,
+ instance
, forms
, security
, and href
. required
execute the following steps:
+ Array
then remove all its elements equal to the elements in |optional|string
then if |value| is equal to one of the elements in |optional| remove |key| from |exposedThingInitSchema|Thevalidating an object with JSON Schema steps are still under discussion. + Currently this specification reference to the validation process of JSONSchema. Please + follow this document + when validating |init| with |exposedThingInitSchema|. Notice that the working group is evaluating an alternative formal approach. +
++ The following will cover a set of examples for the generation of a Thing Description from + an ExposedThingInit using expand an ExposedThingInit steps. As hypothesis the runtime + supports HTTP and COAP protocol bindings and it is hosted at 192.168.0.1. +
++ The next example shows how to exploit a ExposedThingInit to create a simple Thing Description + with one Property with the default values. +
+ ++ TODO: add more examples where the ExposedThingInit contains suggested values that are replaced by the algorithm. +
@@ -3702,9 +3905,10 @@- The generic WoT terminology is defined in [[!WOT-ARCHITECTURE]]: Thing, Thing Description (in short TD), Web of Things (in short WoT), WoT Interface, Protocol Bindings, WoT Runtime, Consuming a Thing Description, Thing Directory, Property, Action, Event, + The generic WoT terminology is defined in [[!WOT-ARCHITECTURE]]: Thing, Thing Description (in short TD), Partial TD, Web of Things (in short WoT), WoT Interface, Protocol Bindings, WoT Runtime, Consuming a Thing Description, Thing Directory, Property, Action, Event, - DataSchema, Form etc. + DataSchema, Form, + SecurityScheme, NoSecurityScheme etc.
WoT Interaction is a synonym for Interaction Affordance.