From 66d299ca6b5ac9bc19cd21912325bc5adaf7c126 Mon Sep 17 00:00:00 2001 From: danielpeintner Date: Thu, 29 Sep 2022 15:40:52 +0200 Subject: [PATCH 1/2] fix: syntax highlighting of example 4 --- index.html | 4 ++-- index.template.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 84cdb6c09..9dcb7ece9 100644 --- a/index.html +++ b/index.html @@ -2893,7 +2893,7 @@

Omitting Default Values

with Default Values -
{
+
{
     "@context": "https://www.w3.org/2022/wot/td/v1.1",
     "id": "urn:uuid:645ab619-19ba-4b37-9933-8f0594398245",
     "title": "MyLampThing",
@@ -2931,7 +2931,7 @@ 

Omitting Default Values

} }
-
{
+
{
     "@context": "https://www.w3.org/2022/wot/td/v1.1",
     "id": "urn:uuid:014139c9-b267-4db5-9c61-cc2d2bfc217d",
     "title": "MyLampThing",
diff --git a/index.template.html b/index.template.html
index 6ee20cbee..96b620094 100644
--- a/index.template.html
+++ b/index.template.html
@@ -1617,7 +1617,7 @@ 

Omitting Default Values

with Default Values -
{
+
{
     "@context": "https://www.w3.org/2022/wot/td/v1.1",
     "id": "urn:uuid:645ab619-19ba-4b37-9933-8f0594398245",
     "title": "MyLampThing",
@@ -1655,7 +1655,7 @@ 

Omitting Default Values

} }
-
{
+
{
     "@context": "https://www.w3.org/2022/wot/td/v1.1",
     "id": "urn:uuid:014139c9-b267-4db5-9c61-cc2d2bfc217d",
     "title": "MyLampThing",

From c608e713dd39811eb8d5c0e8254251201d1779b4 Mon Sep 17 00:00:00 2001
From: danielpeintner 
Date: Wed, 5 Oct 2022 09:55:21 +0200
Subject: [PATCH 2/2] fix: examples 51, 52, 60, 61, 65, 66, and 71 also

---
 index.html          | 42 +++++++++++++++++++++---------------------
 index.template.html | 42 +++++++++++++++++++++---------------------
 2 files changed, 42 insertions(+), 42 deletions(-)

diff --git a/index.html b/index.html
index 9dcb7ece9..ff5c49c28 100644
--- a/index.html
+++ b/index.html
@@ -5620,7 +5620,7 @@ 

Protocol Binding based on HTTP

with default values for Protocol Binding based on HTTP -
{
+            
{
     "@context": "https://www.w3.org/2022/wot/td/v1.1",
     "id": "urn:uuid:3a559b69-cbec-4e7b-b543-bd8e6e41fd8b",
     "title": "MyLampThing",
@@ -5668,7 +5668,7 @@ 

Protocol Binding based on HTTP

} } }
-
{
+        
{
     "@context": "https://www.w3.org/2022/wot/td/v1.1",
     "id": "urn:uuid:3deca264-4f90-4321-a5ea-f197e6a1c7cf",
     "title": "MyLampThing",
@@ -5734,7 +5734,7 @@ 

Protocol Binding based on HTTP

extended forms in case of multiple values in op -
{
+            
{
     "@context": "https://www.w3.org/2022/wot/td/v1.1",
     "id": "urn:uuid:43e2081d-3fd9-41bf-803d-baaefb79c70f",
     "title": "MyLampThing",
@@ -5759,7 +5759,7 @@ 

Protocol Binding based on HTTP

} } }
-
{
+        
{
     "@context": "https://www.w3.org/2022/wot/td/v1.1",
     "id": "urn:uuid:9cd44eef-0b3f-4566-94b0-1358af3d86bd",
     "title": "MyLampThing",
@@ -6218,7 +6218,7 @@ 

Composition

-
+       
         {
             "@context": "https://www.w3.org/2022/wot/td/v1.1",
             "@type": "tm:ThingModel",
@@ -6243,7 +6243,7 @@ 

Composition

} }
-
+       
         {
             "@context": "https://www.w3.org/2022/wot/td/v1.1",
             "@type": "tm:ThingModel",
@@ -6264,7 +6264,7 @@ 

Composition

} }
-
+       
         {
             "@context": "https://www.w3.org/2022/wot/td/v1.1",
             "@type": "tm:ThingModel",
@@ -6336,7 +6336,7 @@ 

Composition

-
+       
         {
             "@context": "https://www.w3.org/2022/wot/td/v1.1",
             "title": "Smart Ventilator",
@@ -6381,7 +6381,7 @@ 

Composition

} }
-
+       
         {
             "@context": "https://www.w3.org/2022/wot/td/v1.1",
             "title": "Ventilator",
@@ -6428,7 +6428,7 @@ 

Composition

} }
-
+       
         {
             "@context": "https://www.w3.org/2022/wot/td/v1.1",
             "title": "LED Thing Model",
@@ -6761,7 +6761,7 @@ 

Placeholder

-
+    
 {
 	"@context": ["https://www.w3.org/2022/wot/td/v1.1"], 
 	"@type" : "tm:ThingModel",
@@ -6780,7 +6780,7 @@ 

Placeholder

... }
-
+    
 {
 	"THERMOSTATE_NUMBER": 4, 
 	"MQTT_BROKER_ADDRESS" : "192.168.178.72:1883",
@@ -6789,7 +6789,7 @@ 

Placeholder

"VERSION_INFO": {"instance": "1.0.1", "model": "2.0.0"} }
-
+    
 {
 	"@context": ["https://www.w3.org/2022/wot/td/v1.1"], 
 	"@type" : "Thing",
@@ -6861,20 +6861,20 @@ 

Derivation of Thing Description Instances

-
+           
 {
-	...
+	// ...
 	"@type": "tm:ThingModel",
 	"title": "Smart Pump",
 	"id" : "urn:example:{{RANDOM_ID_PATTERN}}",
 	"description": "Smart Pump live plant and simulator",
 	"version" : {"model" : "1.0.0" },
-	...
+	// ...
 }
 		
-
+        
 {
-	...
+	// ...
 	"@type": "Thing",
 	"title": "Smart Pump",
 	"id" : "urn:example:123-321-123-321",
@@ -6885,7 +6885,7 @@ 

Derivation of Thing Description Instances

"href" : "http://example.com/ThingModelPool/Pump", "type": "application/tm+json" }], - ... + // ... }
@@ -7787,7 +7787,7 @@

Webhook Event Example

-
+       
         {
             "@context": "http://www.w3.org/ns/td",
             "id": "urn:uuid:4778f80a-4c78-4cbb-a0e4-fa37b7d748df",
@@ -7845,7 +7845,7 @@ 

Webhook Event Example

} }
-
+       
         {
             "@context": "http://www.w3.org/ns/td",
             "id": "urn:uuid:3c1b4716-247f-4cda-ba53-d3307ac6feb0",
diff --git a/index.template.html b/index.template.html
index 96b620094..1e296b3aa 100644
--- a/index.template.html
+++ b/index.template.html
@@ -4344,7 +4344,7 @@ 

Protocol Binding based on HTTP

with default values for Protocol Binding based on HTTP -
{
+            
{
     "@context": "https://www.w3.org/2022/wot/td/v1.1",
     "id": "urn:uuid:3a559b69-cbec-4e7b-b543-bd8e6e41fd8b",
     "title": "MyLampThing",
@@ -4392,7 +4392,7 @@ 

Protocol Binding based on HTTP

} } }
-
{
+        
{
     "@context": "https://www.w3.org/2022/wot/td/v1.1",
     "id": "urn:uuid:3deca264-4f90-4321-a5ea-f197e6a1c7cf",
     "title": "MyLampThing",
@@ -4458,7 +4458,7 @@ 

Protocol Binding based on HTTP

extended forms in case of multiple values in op -
{
+            
{
     "@context": "https://www.w3.org/2022/wot/td/v1.1",
     "id": "urn:uuid:43e2081d-3fd9-41bf-803d-baaefb79c70f",
     "title": "MyLampThing",
@@ -4483,7 +4483,7 @@ 

Protocol Binding based on HTTP

} } }
-
{
+        
{
     "@context": "https://www.w3.org/2022/wot/td/v1.1",
     "id": "urn:uuid:9cd44eef-0b3f-4566-94b0-1358af3d86bd",
     "title": "MyLampThing",
@@ -4942,7 +4942,7 @@ 

Composition

-
+       
         {
             "@context": "https://www.w3.org/2022/wot/td/v1.1",
             "@type": "tm:ThingModel",
@@ -4967,7 +4967,7 @@ 

Composition

} }
-
+       
         {
             "@context": "https://www.w3.org/2022/wot/td/v1.1",
             "@type": "tm:ThingModel",
@@ -4988,7 +4988,7 @@ 

Composition

} }
-
+       
         {
             "@context": "https://www.w3.org/2022/wot/td/v1.1",
             "@type": "tm:ThingModel",
@@ -5060,7 +5060,7 @@ 

Composition

-
+       
         {
             "@context": "https://www.w3.org/2022/wot/td/v1.1",
             "title": "Smart Ventilator",
@@ -5105,7 +5105,7 @@ 

Composition

} }
-
+       
         {
             "@context": "https://www.w3.org/2022/wot/td/v1.1",
             "title": "Ventilator",
@@ -5152,7 +5152,7 @@ 

Composition

} }
-
+       
         {
             "@context": "https://www.w3.org/2022/wot/td/v1.1",
             "title": "LED Thing Model",
@@ -5485,7 +5485,7 @@ 

Placeholder

-
+    
 {
 	"@context": ["https://www.w3.org/2022/wot/td/v1.1"], 
 	"@type" : "tm:ThingModel",
@@ -5504,7 +5504,7 @@ 

Placeholder

... }
-
+    
 {
 	"THERMOSTATE_NUMBER": 4, 
 	"MQTT_BROKER_ADDRESS" : "192.168.178.72:1883",
@@ -5513,7 +5513,7 @@ 

Placeholder

"VERSION_INFO": {"instance": "1.0.1", "model": "2.0.0"} }
-
+    
 {
 	"@context": ["https://www.w3.org/2022/wot/td/v1.1"], 
 	"@type" : "Thing",
@@ -5585,20 +5585,20 @@ 

Derivation of Thing Description Instances

-
+           
 {
-	...
+	// ...
 	"@type": "tm:ThingModel",
 	"title": "Smart Pump",
 	"id" : "urn:example:{{RANDOM_ID_PATTERN}}",
 	"description": "Smart Pump live plant and simulator",
 	"version" : {"model" : "1.0.0" },
-	...
+	// ...
 }
 		
-
+        
 {
-	...
+	// ...
 	"@type": "Thing",
 	"title": "Smart Pump",
 	"id" : "urn:example:123-321-123-321",
@@ -5609,7 +5609,7 @@ 

Derivation of Thing Description Instances

"href" : "http://example.com/ThingModelPool/Pump", "type": "application/tm+json" }], - ... + // ... }
@@ -6509,7 +6509,7 @@

Webhook Event Example

-
+       
         {
             "@context": "http://www.w3.org/ns/td",
             "id": "urn:uuid:4778f80a-4c78-4cbb-a0e4-fa37b7d748df",
@@ -6567,7 +6567,7 @@ 

Webhook Event Example

} }
-
+       
         {
             "@context": "http://www.w3.org/ns/td",
             "id": "urn:uuid:3c1b4716-247f-4cda-ba53-d3307ac6feb0",