Skip to content

Commit b18f949

Browse files
committed
Change expose() to produce(), to reflect creation, not exposure of ExposedThings. See also #64.
Signed-off-by: Zoltan Kis <[email protected]>
1 parent a814c2b commit b18f949

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

index.html

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
Exposing the <a>Thing</a> includes attaching to the protocol bindings in order to access lower level functionality.
178178
</li>>
179179
<li>
180-
Create a local <a>ExposedThing</a> to be exposed, based on a <a>Thing Description</a> provided as a URL, or a in string serialized format, or out of a template or an existing <a>ConsumedThing</a> object.</li>
180+
Create a local <a>ExposedThing</a> to be exposed, based on a <a>Thing Description</a> provided in string serialized format, or out of a template or an existing <a>ConsumedThing</a> object.</li>
181181
<li>Add a <a>Property</a> definition to the <a>Thing</a>.</li>
182182
<li>Add an <a>Event</a> definition to the <a>Thing</a>.</li>
183183
<li>Add an <a>Action</a> definition to the <a>Thing</a>.</li>
@@ -237,9 +237,10 @@ <h2>The <dfn>WoT</dfn> object</h2>
237237
Observable&lt;ConsumedThing&gt; discover(optional ThingFilter filter);
238238
Promise&lt;ThingDescription&gt; fetch(USVString url);
239239
ConsumedThing consume(ThingDescription td);
240-
ExposedThing expose(optional Dictionary template);
240+
ExposedThing produce(optional ThingModel model);
241241
};
242242
typedef USVString ThingDescription;
243+
typedef (ThingTemplate or ThingDescription or ConsumedThing) ThingModel;
243244
</pre>
244245

245246
<p class="ednote">
@@ -249,7 +250,7 @@ <h2>The <dfn>WoT</dfn> object</h2>
249250
<section data-dfn-for="ThingDescription">
250251
<h3>The <dfn>ThingDescription</dfn> type</h3>
251252
<p>
252-
WoT provides a unified representation for data exchange between <a>Thing</a>s, standardized in the [Wot Things Description](https://w3c.github.io/wot-thing-description/) specification.
253+
Representation of the <a>Thing Description</a>, a unified representation for data exchange between <a>Thing</a>s, standardized in the [Wot Things Description](https://w3c.github.io/wot-thing-description/) specification.
253254
</p>
254255
<p class="note">
255256
In this version of the API, <a>Thing Description</a>s are represented as opaque strings, denoting a serialized form, for instance JSON or JSON-LD. See [Issue 38](https://github.com/w3c/wot-scripting-api/issues/38) and [Issue 45](https://github.com/w3c/wot-scripting-api/issues/45).
@@ -287,8 +288,15 @@ <h3>The <dfn>SemanticType</dfn> dictionary</h3>
287288
<p>
288289
Represents a semantic type annotation, containing a name and a context.
289290
<ul>
290-
<li>The <dfn>name</dfn> attribute represents the name of the semantic type in the given context.</li>
291-
<li>The <dfn>context</dfn> attribute represents an URL link to the context of the semantic classification.</li>
291+
<li>
292+
The <dfn>name</dfn> attribute represents the name of the semantic type in the given context.
293+
</li>
294+
<li>
295+
The <dfn>context</dfn> attribute represents an URL link to the context of the semantic classification.
296+
</li>
297+
<li>
298+
The <dfn>prefix</dfn> attribute represents a short prefix associated with a context.
299+
</li>
292300
</ul>
293301
</p>
294302
<p class="ednote">
@@ -306,7 +314,9 @@ <h3>The <dfn>SemanticMetadata</dfn> dictionary</h3>
306314
</pre>
307315
<p>The <a>SemanticMetadata</a> dictionary describes the semantic metadata elements attached to a <a>Thing</a>:
308316
<ul>
309-
<li>The <dfn>type</dfn> attribute represents the semantic type name defined by a <a>SemanticType</a> object.</li>
317+
<li>
318+
The <dfn>type</dfn> attribute represents the semantic type name defined by a <a>SemanticType</a> object.
319+
</li>
310320
<li>The <dfn>value</dfn> attribute represents the metadata value.</li>
311321
</ul>
312322
</p>

0 commit comments

Comments
 (0)