Skip to content

Commit

Permalink
Merge pull request #1191 from benfrancis/subscribeallevents
Browse files Browse the repository at this point in the history
Add subscribeallevents and unsubscribeallevents operations - closes #1082
  • Loading branch information
sebastiankb authored Jul 14, 2021
2 parents 8dda72f + e254d2c commit e8d15f0
Show file tree
Hide file tree
Showing 10 changed files with 213 additions and 19 deletions.
2 changes: 2 additions & 0 deletions context/hypermedia-context.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
"unobserveallproperties": "td:unobserveAllProperties",
"invokeaction": "td:invokeAction",
"subscribeevent": "td:subscribeEvent",
"subscribeallevents": "td:subscribeAllEvents",
"unsubscribeevent": "td:unsubscribeEvent",
"unsubscribeallevents": "td:unsubscribeAllEvents",
"readallproperties": "td:readAllProperties",
"writeallproperties": "td:writeAllProperties",
"readmultipleproperties": "td:readMultipleProperties",
Expand Down
4 changes: 4 additions & 0 deletions context/td-context-1.1.jsonld
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,9 @@
"unobserveallproperties": "td:unobserveAllProperties",
"invokeaction": "td:invokeAction",
"subscribeevent": "td:subscribeEvent",
"subscribeallevents": "td:subscribeAllEvents",
"unsubscribeevent": "td:unsubscribeEvent",
"unsubscribeallevents": "td:unsubscribeAllEvents",
"readallproperties": "td:readAllProperties",
"writeallproperties": "td:writeAllProperties",
"readmultipleproperties": "td:readMultipleProperties",
Expand Down Expand Up @@ -495,7 +497,9 @@
"unobserveallproperties": "td:unobserveAllProperties",
"invokeaction": "td:invokeAction",
"subscribeevent": "td:subscribeEvent",
"subscribeallevents": "td:subscribeAllEvents",
"unsubscribeevent": "td:unsubscribeEvent",
"unsubscribeallevents": "td:unsubscribeAllEvents",
"readallproperties": "td:readAllProperties",
"writeallproperties": "td:writeAllProperties",
"readmultipleproperties": "td:readMultipleProperties",
Expand Down
160 changes: 160 additions & 0 deletions context/td-context.ttl

Large diffs are not rendered by default.

19 changes: 12 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1325,11 +1325,12 @@ <h2>Core Vocabulary Definitions</h2>
types</em>: <code>readallproperties</code>,
<code>writeallproperties</code>,
<code>readmultipleproperties</code>,
<code>writemultipleproperties</code>, <code>observeallproperties</code>, or
<code>unobserveallproperties</code>.</span> (See
<code>writemultipleproperties</code>, <code>observeallproperties</code>,
<code>unobserveallproperties</code>, <code>subscribeallevents</code>, or
<code>unsubscribeallevents</code>.</span> (See
<a href="#td-forms-readall-example">an example</a> for an
usage of <code>form</code> in a Thing instance.)</p>
<p>The data schema for each of these meta-interactions is
<p>The data schema for each of the property meta-interactions is
constructed by combining the data schemas of each
<code>PropertyAffordance</code> instance in a single
<code>ObjectSchema</code> instance, where the
Expand Down Expand Up @@ -2135,7 +2136,7 @@ <h2>Hypermedia Controls Vocabulary Definitions</h2>
the correct form for the operation required. op can
be assigned one or more interaction verb(s) each
representing a semantic intention of an
operation.</td><td>optional</td><td><a href="http://www.w3.org/TR/2012/REC-xmlschema11-2-20120405/#string"><code>string</code></a> or <a>Array</a> of <a href="http://www.w3.org/TR/2012/REC-xmlschema11-2-20120405/#string"><code>string</code></a> (one of <code>readproperty</code>, <code>writeproperty</code>, <code>observeproperty</code>, <code>unobserveproperty</code>, <code>invokeaction</code>, <code>subscribeevent</code>, <code>unsubscribeevent</code>, <code>readallproperties</code>, <code>writeallproperties</code>, <code>readmultipleproperties</code>, <code>writemultipleproperties</code>, <code>observeallproperties</code>, or <code>unobserveallproperties</code>)</td></tr></tbody></table><p>Possible values for the <code>contentCoding</code>
operation.</td><td>optional</td><td><a href="http://www.w3.org/TR/2012/REC-xmlschema11-2-20120405/#string"><code>string</code></a> or <a>Array</a> of <a href="http://www.w3.org/TR/2012/REC-xmlschema11-2-20120405/#string"><code>string</code></a> (one of <code>readproperty</code>, <code>writeproperty</code>, <code>observeproperty</code>, <code>unobserveproperty</code>, <code>invokeaction</code>, <code>subscribeevent</code>, <code>unsubscribeevent</code>, <code>readallproperties</code>, <code>writeallproperties</code>, <code>readmultipleproperties</code>, <code>writemultipleproperties</code>, <code>observeallproperties</code>, <code>unobserveallproperties</code>, <code>subscribeallevents</code>, or <code>unsubscribeallevents</code>)</td></tr></tbody></table><p>Possible values for the <code>contentCoding</code>
property can be found, e.g., in the <a href=
"https://www.iana.org/assignments/http-parameters/http-parameters.xhtml#content-coding">
IANA HTTP content coding registry</a>.</p>
Expand Down Expand Up @@ -6956,7 +6957,9 @@ <h1>JSON Schema for TD Instance Validation</h1>
"readmultipleproperties",
"writemultipleproperties",
"observeallproperties",
"unobserveallproperties"
"unobserveallproperties",
"subscribeallevents",
"unsubscribeallevents"
]
},
{
Expand All @@ -6969,7 +6972,9 @@ <h1>JSON Schema for TD Instance Validation</h1>
"readmultipleproperties",
"writemultipleproperties",
"observeallproperties",
"unobserveallproperties"
"unobserveallproperties",
"subscribeallevents",
"unsubscribeallevents"
]
}
}
Expand Down Expand Up @@ -7950,7 +7955,7 @@ <h2 id="changes-from-fpwd">Changes from First Public Working Draft 24 November 2
<li>In section <a href="#form"></a>:
<ul>
<li>A new term <code>additionalResponses</code> was added. It can be used to define error responses.</li>
<li><code>observeallproperties</code> and <code>unobserveallproperties</code> were added to the definition of <code>op</code>.</li>
<li><code>observeallproperties</code>, <code>unobserveallproperties</code>, <code>subscribeallevents</code> and <code>unsubscribeallevents</code> were added to the definition of <code>op</code>.</li>
<li>Type definitions for terms <code>contentType</code>, <code>contentCoding</code>, <code>security</code>, <code>op</code> were changed.</li>
<li>A paragraph was added to describe how a Consumer can behave given multiple form choices.</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion index.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -5660,7 +5660,7 @@ <h2 id="changes-from-fpwd">Changes from First Public Working Draft 24 November 2
<li>In section <a href="#form"></a>:
<ul>
<li>A new term <code>additionalResponses</code> was added. It can be used to define error responses.</li>
<li><code>observeallproperties</code> and <code>unobserveallproperties</code> were added to the definition of <code>op</code>.</li>
<li><code>observeallproperties</code>, <code>unobserveallproperties</code>, <code>subscribeallevents</code> and <code>unsubscribeallevents</code> were added to the definition of <code>op</code>.</li>
<li>Type definitions for terms <code>contentType</code>, <code>contentCoding</code>, <code>security</code>, <code>op</code> were changed.</li>
<li>A paragraph was added to describe how a Consumer can behave given multiple form choices.</li>
</ul>
Expand Down
Loading

0 comments on commit e8d15f0

Please sign in to comment.