Skip to content

Commit d02cf7b

Browse files
committed
replace full IRI with term mapping
1 parent 4b5a545 commit d02cf7b

File tree

4 files changed

+61
-16
lines changed

4 files changed

+61
-16
lines changed

context/json-schema-context.jsonld

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@
115115
"properties": {
116116
"@id": "jsonschema:properties",
117117
"@container": "@index",
118-
"@index": "https://www.w3.org/2019/wot/json-schema#propertyName"
118+
"@index": "propertyName"
119+
},
120+
"propertyName": {
121+
"@id": "jsonschema:propertyName"
119122
},
120123
"unit": {
121124
"@id" : "schema:unitCode",

context/td-context-1.1.jsonld

Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"@id": "td:hasPropertyAffordance",
1919
"@type": "@id",
2020
"@container": "@index",
21-
"@index": "https://www.w3.org/2019/wot/td#name",
21+
"@index": "name",
2222
"@context": {
2323
"td": "https://www.w3.org/2019/wot/td#",
2424
"jsonschema": "https://www.w3.org/2019/wot/json-schema#",
@@ -135,15 +135,18 @@
135135
"properties": {
136136
"@id": "jsonschema:properties",
137137
"@container": "@index",
138-
"@index": "https://www.w3.org/2019/wot/td#name",
138+
"@index": "name",
139139
"@context": {
140140
"properties": {
141141
"@id": "jsonschema:properties",
142142
"@container": "@index",
143-
"@index": "https://www.w3.org/2019/wot/json-schema#propertyName"
143+
"@index": "propertyName"
144144
}
145145
}
146146
},
147+
"propertyName": {
148+
"@id": "jsonschema:propertyName"
149+
},
147150
"unit": {
148151
"@id": "schema:unitCode",
149152
"@type": "@vocab"
@@ -154,13 +157,13 @@
154157
"@id": "td:hasActionAffordance",
155158
"@type": "@id",
156159
"@container": "@index",
157-
"@index": "https://www.w3.org/2019/wot/td#name"
160+
"@index": "name"
158161
},
159162
"events": {
160163
"@id": "td:hasEventAffordance",
161164
"@type": "@id",
162165
"@container": "@index",
163-
"@index": "https://www.w3.org/2019/wot/td#name"
166+
"@index": "name"
164167
},
165168
"security": {
166169
"@id": "td:hasSecurityConfiguration",
@@ -467,7 +470,7 @@
467470
"@id": "td:hasUriTemplateSchema",
468471
"@type": "@id",
469472
"@container": "@index",
470-
"@index": "https://www.w3.org/2019/wot/td#name"
473+
"@index": "td:name"
471474
},
472475
"safe": {
473476
"@id": "td:isSafe"
@@ -606,7 +609,10 @@
606609
"properties": {
607610
"@id": "jsonschema:properties",
608611
"@container": "@index",
609-
"@index": "https://www.w3.org/2019/wot/json-schema#propertyName"
612+
"@index": "propertyName"
613+
},
614+
"propertyName": {
615+
"@id": "jsonschema:propertyName"
610616
},
611617
"unit": {
612618
"@id": "schema:unitCode",
@@ -733,7 +739,10 @@
733739
"properties": {
734740
"@id": "jsonschema:properties",
735741
"@container": "@index",
736-
"@index": "https://www.w3.org/2019/wot/json-schema#propertyName"
742+
"@index": "propertyName"
743+
},
744+
"propertyName": {
745+
"@id": "jsonschema:propertyName"
737746
},
738747
"unit": {
739748
"@id": "schema:unitCode",
@@ -860,7 +869,10 @@
860869
"properties": {
861870
"@id": "jsonschema:properties",
862871
"@container": "@index",
863-
"@index": "https://www.w3.org/2019/wot/json-schema#propertyName"
872+
"@index": "propertyName"
873+
},
874+
"propertyName": {
875+
"@id": "jsonschema:propertyName"
864876
},
865877
"unit": {
866878
"@id": "schema:unitCode",
@@ -987,7 +999,10 @@
987999
"properties": {
9881000
"@id": "jsonschema:properties",
9891001
"@container": "@index",
990-
"@index": "https://www.w3.org/2019/wot/json-schema#propertyName"
1002+
"@index": "propertyName"
1003+
},
1004+
"propertyName": {
1005+
"@id": "jsonschema:propertyName"
9911006
},
9921007
"unit": {
9931008
"@id": "schema:unitCode",
@@ -1114,7 +1129,10 @@
11141129
"properties": {
11151130
"@id": "jsonschema:properties",
11161131
"@container": "@index",
1117-
"@index": "https://www.w3.org/2019/wot/json-schema#propertyName"
1132+
"@index": "propertyName"
1133+
},
1134+
"propertyName": {
1135+
"@id": "jsonschema:propertyName"
11181136
},
11191137
"unit": {
11201138
"@id": "schema:unitCode",

context/td-context.jsonld

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@
1818
"@id" : "td:hasPropertyAffordance",
1919
"@type" : "@id",
2020
"@container": "@index",
21-
"@index": "https://www.w3.org/2019/wot/td#name"
21+
"@index": "name"
2222
},
2323
"actions" : {
2424
"@id" : "td:hasActionAffordance",
2525
"@type" : "@id",
2626
"@container": "@index",
27-
"@index": "https://www.w3.org/2019/wot/td#name"
27+
"@index": "name"
2828
},
2929
"events" : {
3030
"@id" : "td:hasEventAffordance",
3131
"@type" : "@id",
3232
"@container": "@index",
33-
"@index": "https://www.w3.org/2019/wot/td#name"
33+
"@index": "name"
3434
},
3535
"security" : {
3636
"@id" : "td:hasSecurityConfiguration",
@@ -97,7 +97,7 @@
9797
"@id" : "td:hasUriTemplateSchema",
9898
"@type": "@id",
9999
"@container": "@index",
100-
"@index": "https://www.w3.org/2019/wot/td#name"
100+
"@index": "td:name"
101101
},
102102
"safe" : {
103103
"@id" : "td:isSafe"

context/td-context.ttl

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,10 @@ _:properties-properties <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http:
243243
_:properties-properties <http://www.w3.org/ns/json-ld#term> "properties" .
244244
_:properties-properties <http://www.w3.org/ns/json-ld#iri> <jsonschema:properties> .
245245
_:properties-properties <http://www.w3.org/ns/json-ld#container> <http://www.w3.org/ns/json-ld#index> .
246+
_:hasPropertyAffordance-context <http://www.w3.org/ns/json-ld#definition> _:hasPropertyAffordance-propertyName .
247+
_:hasPropertyAffordance-propertyName <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/json-ld#Mapping> .
248+
_:hasPropertyAffordance-propertyName <http://www.w3.org/ns/json-ld#term> "propertyName" .
249+
_:hasPropertyAffordance-propertyName <http://www.w3.org/ns/json-ld#iri> <https://www.w3.org/2019/wot/json-schema#propertyName> .
246250
_:hasPropertyAffordance-context <http://www.w3.org/ns/json-ld#definition> _:hasPropertyAffordance-unit .
247251
_:hasPropertyAffordance-unit <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/json-ld#Mapping> .
248252
_:hasPropertyAffordance-unit <http://www.w3.org/ns/json-ld#term> "unit" .
@@ -994,6 +998,10 @@ _:hasInputSchema-properties <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <h
994998
_:hasInputSchema-properties <http://www.w3.org/ns/json-ld#term> "properties" .
995999
_:hasInputSchema-properties <http://www.w3.org/ns/json-ld#iri> <https://www.w3.org/2019/wot/json-schema#properties> .
9961000
_:hasInputSchema-properties <http://www.w3.org/ns/json-ld#container> <http://www.w3.org/ns/json-ld#index> .
1001+
_:hasInputSchema-context <http://www.w3.org/ns/json-ld#definition> _:hasInputSchema-propertyName .
1002+
_:hasInputSchema-propertyName <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/json-ld#Mapping> .
1003+
_:hasInputSchema-propertyName <http://www.w3.org/ns/json-ld#term> "propertyName" .
1004+
_:hasInputSchema-propertyName <http://www.w3.org/ns/json-ld#iri> <https://www.w3.org/2019/wot/json-schema#propertyName> .
9971005
_:hasInputSchema-context <http://www.w3.org/ns/json-ld#definition> _:hasInputSchema-unit .
9981006
_:hasInputSchema-unit <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/json-ld#Mapping> .
9991007
_:hasInputSchema-unit <http://www.w3.org/ns/json-ld#term> "unit" .
@@ -1190,6 +1198,10 @@ _:hasOutputSchema-properties <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <
11901198
_:hasOutputSchema-properties <http://www.w3.org/ns/json-ld#term> "properties" .
11911199
_:hasOutputSchema-properties <http://www.w3.org/ns/json-ld#iri> <https://www.w3.org/2019/wot/json-schema#properties> .
11921200
_:hasOutputSchema-properties <http://www.w3.org/ns/json-ld#container> <http://www.w3.org/ns/json-ld#index> .
1201+
_:hasOutputSchema-context <http://www.w3.org/ns/json-ld#definition> _:hasOutputSchema-propertyName .
1202+
_:hasOutputSchema-propertyName <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/json-ld#Mapping> .
1203+
_:hasOutputSchema-propertyName <http://www.w3.org/ns/json-ld#term> "propertyName" .
1204+
_:hasOutputSchema-propertyName <http://www.w3.org/ns/json-ld#iri> <https://www.w3.org/2019/wot/json-schema#propertyName> .
11931205
_:hasOutputSchema-context <http://www.w3.org/ns/json-ld#definition> _:hasOutputSchema-unit .
11941206
_:hasOutputSchema-unit <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/json-ld#Mapping> .
11951207
_:hasOutputSchema-unit <http://www.w3.org/ns/json-ld#term> "unit" .
@@ -1386,6 +1398,10 @@ _:hasSubscriptionSchema-properties <http://www.w3.org/1999/02/22-rdf-syntax-ns#t
13861398
_:hasSubscriptionSchema-properties <http://www.w3.org/ns/json-ld#term> "properties" .
13871399
_:hasSubscriptionSchema-properties <http://www.w3.org/ns/json-ld#iri> <https://www.w3.org/2019/wot/json-schema#properties> .
13881400
_:hasSubscriptionSchema-properties <http://www.w3.org/ns/json-ld#container> <http://www.w3.org/ns/json-ld#index> .
1401+
_:hasSubscriptionSchema-context <http://www.w3.org/ns/json-ld#definition> _:hasSubscriptionSchema-propertyName .
1402+
_:hasSubscriptionSchema-propertyName <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/json-ld#Mapping> .
1403+
_:hasSubscriptionSchema-propertyName <http://www.w3.org/ns/json-ld#term> "propertyName" .
1404+
_:hasSubscriptionSchema-propertyName <http://www.w3.org/ns/json-ld#iri> <https://www.w3.org/2019/wot/json-schema#propertyName> .
13891405
_:hasSubscriptionSchema-context <http://www.w3.org/ns/json-ld#definition> _:hasSubscriptionSchema-unit .
13901406
_:hasSubscriptionSchema-unit <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/json-ld#Mapping> .
13911407
_:hasSubscriptionSchema-unit <http://www.w3.org/ns/json-ld#term> "unit" .
@@ -1582,6 +1598,10 @@ _:hasNotificationSchema-properties <http://www.w3.org/1999/02/22-rdf-syntax-ns#t
15821598
_:hasNotificationSchema-properties <http://www.w3.org/ns/json-ld#term> "properties" .
15831599
_:hasNotificationSchema-properties <http://www.w3.org/ns/json-ld#iri> <https://www.w3.org/2019/wot/json-schema#properties> .
15841600
_:hasNotificationSchema-properties <http://www.w3.org/ns/json-ld#container> <http://www.w3.org/ns/json-ld#index> .
1601+
_:hasNotificationSchema-context <http://www.w3.org/ns/json-ld#definition> _:hasNotificationSchema-propertyName .
1602+
_:hasNotificationSchema-propertyName <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/json-ld#Mapping> .
1603+
_:hasNotificationSchema-propertyName <http://www.w3.org/ns/json-ld#term> "propertyName" .
1604+
_:hasNotificationSchema-propertyName <http://www.w3.org/ns/json-ld#iri> <https://www.w3.org/2019/wot/json-schema#propertyName> .
15851605
_:hasNotificationSchema-context <http://www.w3.org/ns/json-ld#definition> _:hasNotificationSchema-unit .
15861606
_:hasNotificationSchema-unit <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/json-ld#Mapping> .
15871607
_:hasNotificationSchema-unit <http://www.w3.org/ns/json-ld#term> "unit" .
@@ -1778,6 +1798,10 @@ _:hasCancellationSchema-properties <http://www.w3.org/1999/02/22-rdf-syntax-ns#t
17781798
_:hasCancellationSchema-properties <http://www.w3.org/ns/json-ld#term> "properties" .
17791799
_:hasCancellationSchema-properties <http://www.w3.org/ns/json-ld#iri> <https://www.w3.org/2019/wot/json-schema#properties> .
17801800
_:hasCancellationSchema-properties <http://www.w3.org/ns/json-ld#container> <http://www.w3.org/ns/json-ld#index> .
1801+
_:hasCancellationSchema-context <http://www.w3.org/ns/json-ld#definition> _:hasCancellationSchema-propertyName .
1802+
_:hasCancellationSchema-propertyName <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/json-ld#Mapping> .
1803+
_:hasCancellationSchema-propertyName <http://www.w3.org/ns/json-ld#term> "propertyName" .
1804+
_:hasCancellationSchema-propertyName <http://www.w3.org/ns/json-ld#iri> <https://www.w3.org/2019/wot/json-schema#propertyName> .
17811805
_:hasCancellationSchema-context <http://www.w3.org/ns/json-ld#definition> _:hasCancellationSchema-unit .
17821806
_:hasCancellationSchema-unit <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/ns/json-ld#Mapping> .
17831807
_:hasCancellationSchema-unit <http://www.w3.org/ns/json-ld#term> "unit" .

0 commit comments

Comments
 (0)