@twin.org/standards-schema-org 0.0.3-next.6 → 0.0.3-next.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/es/dataTypes/schemaOrgDataTypes.js +21 -21
- package/dist/es/dataTypes/schemaOrgDataTypes.js.map +1 -1
- package/dist/es/models/schemaOrgContexts.js +10 -4
- package/dist/es/models/schemaOrgContexts.js.map +1 -1
- package/dist/types/models/schemaOrgContexts.d.ts +10 -4
- package/docs/changelog.md +469 -67
- package/docs/examples.md +26 -1
- package/docs/reference/classes/SchemaOrgDataTypes.md +2 -2
- package/docs/reference/classes/SchemaOrgValidation.md +1 -1
- package/docs/reference/variables/SchemaOrgContexts.md +14 -6
- package/docs/reference/variables/SchemaOrgTypes.md +14 -14
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# TWIN Schema.org
|
|
1
|
+
# TWIN Standards Schema.org
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This package provides data models for [Schema.org vocabularies](https://schema.org/), supporting a common semantic layer for entities, events, and relationships across domains.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -15,14 +15,14 @@ export class SchemaOrgDataTypes {
|
|
|
15
15
|
* Register the JSON-LD Redirects.
|
|
16
16
|
*/
|
|
17
17
|
static registerRedirects() {
|
|
18
|
-
JsonLdProcessor.addRedirect(/https?:\/\/schema.org\/?/, SchemaOrgContexts.
|
|
18
|
+
JsonLdProcessor.addRedirect(/https?:\/\/schema.org\/?/, SchemaOrgContexts.JsonLdContext);
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Register all the data types.
|
|
22
22
|
*/
|
|
23
23
|
static registerTypes() {
|
|
24
|
-
DataTypeHandlerFactory.register(`${SchemaOrgContexts.
|
|
25
|
-
|
|
24
|
+
DataTypeHandlerFactory.register(`${SchemaOrgContexts.Namespace}${SchemaOrgTypes.Text}`, () => ({
|
|
25
|
+
namespace: SchemaOrgContexts.Namespace,
|
|
26
26
|
type: SchemaOrgTypes.Text,
|
|
27
27
|
defaultValue: "",
|
|
28
28
|
jsonSchema: async () => ({
|
|
@@ -30,8 +30,8 @@ export class SchemaOrgDataTypes {
|
|
|
30
30
|
}),
|
|
31
31
|
validate: async (propertyName, value, failures, container) => Validation.string(propertyName, value, failures)
|
|
32
32
|
}));
|
|
33
|
-
DataTypeHandlerFactory.register(`${SchemaOrgContexts.
|
|
34
|
-
|
|
33
|
+
DataTypeHandlerFactory.register(`${SchemaOrgContexts.Namespace}${SchemaOrgTypes.Integer}`, () => ({
|
|
34
|
+
namespace: SchemaOrgContexts.Namespace,
|
|
35
35
|
type: SchemaOrgTypes.Integer,
|
|
36
36
|
defaultValue: 0,
|
|
37
37
|
jsonSchema: async () => ({
|
|
@@ -39,8 +39,8 @@ export class SchemaOrgDataTypes {
|
|
|
39
39
|
}),
|
|
40
40
|
validate: async (propertyName, value, failures, container) => Validation.integer(propertyName, value, failures)
|
|
41
41
|
}));
|
|
42
|
-
DataTypeHandlerFactory.register(`${SchemaOrgContexts.
|
|
43
|
-
|
|
42
|
+
DataTypeHandlerFactory.register(`${SchemaOrgContexts.Namespace}${SchemaOrgTypes.Float}`, () => ({
|
|
43
|
+
namespace: SchemaOrgContexts.Namespace,
|
|
44
44
|
type: SchemaOrgTypes.Float,
|
|
45
45
|
defaultValue: 0,
|
|
46
46
|
jsonSchema: async () => ({
|
|
@@ -48,8 +48,8 @@ export class SchemaOrgDataTypes {
|
|
|
48
48
|
}),
|
|
49
49
|
validate: async (propertyName, value, failures, container) => Validation.number(propertyName, value, failures)
|
|
50
50
|
}));
|
|
51
|
-
DataTypeHandlerFactory.register(`${SchemaOrgContexts.
|
|
52
|
-
|
|
51
|
+
DataTypeHandlerFactory.register(`${SchemaOrgContexts.Namespace}${SchemaOrgTypes.Boolean}`, () => ({
|
|
52
|
+
namespace: SchemaOrgContexts.Namespace,
|
|
53
53
|
type: SchemaOrgTypes.Boolean,
|
|
54
54
|
defaultValue: true,
|
|
55
55
|
jsonSchema: async () => ({
|
|
@@ -57,8 +57,8 @@ export class SchemaOrgDataTypes {
|
|
|
57
57
|
}),
|
|
58
58
|
validate: async (propertyName, value, failures, container) => Validation.boolean(propertyName, value, failures)
|
|
59
59
|
}));
|
|
60
|
-
DataTypeHandlerFactory.register(`${SchemaOrgContexts.
|
|
61
|
-
|
|
60
|
+
DataTypeHandlerFactory.register(`${SchemaOrgContexts.Namespace}${SchemaOrgTypes.URL}`, () => ({
|
|
61
|
+
namespace: SchemaOrgContexts.Namespace,
|
|
62
62
|
type: SchemaOrgTypes.URL,
|
|
63
63
|
defaultValue: "",
|
|
64
64
|
jsonSchema: async () => ({
|
|
@@ -67,8 +67,8 @@ export class SchemaOrgDataTypes {
|
|
|
67
67
|
}),
|
|
68
68
|
validate: async (propertyName, value, failures, container) => Url.validate(propertyName, value, failures)
|
|
69
69
|
}));
|
|
70
|
-
DataTypeHandlerFactory.register(`${SchemaOrgContexts.
|
|
71
|
-
|
|
70
|
+
DataTypeHandlerFactory.register(`${SchemaOrgContexts.Namespace}${SchemaOrgTypes.Date}`, () => ({
|
|
71
|
+
namespace: SchemaOrgContexts.Namespace,
|
|
72
72
|
type: SchemaOrgTypes.Date,
|
|
73
73
|
defaultValue: new Date(),
|
|
74
74
|
jsonSchema: async () => ({
|
|
@@ -77,8 +77,8 @@ export class SchemaOrgDataTypes {
|
|
|
77
77
|
}),
|
|
78
78
|
validate: async (propertyName, value, failures, container) => Validation.dateString(propertyName, value, failures)
|
|
79
79
|
}));
|
|
80
|
-
DataTypeHandlerFactory.register(`${SchemaOrgContexts.
|
|
81
|
-
|
|
80
|
+
DataTypeHandlerFactory.register(`${SchemaOrgContexts.Namespace}${SchemaOrgTypes.DateTime}`, () => ({
|
|
81
|
+
namespace: SchemaOrgContexts.Namespace,
|
|
82
82
|
type: SchemaOrgTypes.DateTime,
|
|
83
83
|
defaultValue: new Date(),
|
|
84
84
|
jsonSchema: async () => ({
|
|
@@ -87,8 +87,8 @@ export class SchemaOrgDataTypes {
|
|
|
87
87
|
}),
|
|
88
88
|
validate: async (propertyName, value, failures, container) => Validation.dateTimeString(propertyName, value, failures)
|
|
89
89
|
}));
|
|
90
|
-
DataTypeHandlerFactory.register(`${SchemaOrgContexts.
|
|
91
|
-
|
|
90
|
+
DataTypeHandlerFactory.register(`${SchemaOrgContexts.Namespace}${SchemaOrgTypes.Time}`, () => ({
|
|
91
|
+
namespace: SchemaOrgContexts.Namespace,
|
|
92
92
|
type: SchemaOrgTypes.Time,
|
|
93
93
|
defaultValue: new Date(),
|
|
94
94
|
jsonSchema: async () => ({
|
|
@@ -97,8 +97,8 @@ export class SchemaOrgDataTypes {
|
|
|
97
97
|
}),
|
|
98
98
|
validate: async (propertyName, value, failures, container) => Validation.timeString(propertyName, value, failures)
|
|
99
99
|
}));
|
|
100
|
-
DataTypeHandlerFactory.register(`${SchemaOrgContexts.
|
|
101
|
-
|
|
100
|
+
DataTypeHandlerFactory.register(`${SchemaOrgContexts.Namespace}${SchemaOrgTypes.Image}`, () => ({
|
|
101
|
+
namespace: SchemaOrgContexts.Namespace,
|
|
102
102
|
type: SchemaOrgTypes.Image,
|
|
103
103
|
defaultValue: "",
|
|
104
104
|
jsonSchema: async () => ({
|
|
@@ -107,8 +107,8 @@ export class SchemaOrgDataTypes {
|
|
|
107
107
|
}),
|
|
108
108
|
validate: async (propertyName, value, failures, container) => Url.validate(propertyName, value, failures)
|
|
109
109
|
}));
|
|
110
|
-
DataTypeHandlerFactory.register(`${SchemaOrgContexts.
|
|
111
|
-
|
|
110
|
+
DataTypeHandlerFactory.register(`${SchemaOrgContexts.Namespace}${SchemaOrgTypes.GeoCoordinates}`, () => ({
|
|
111
|
+
namespace: SchemaOrgContexts.Namespace,
|
|
112
112
|
type: SchemaOrgTypes.GeoCoordinates,
|
|
113
113
|
defaultValue: { longitude: 0, latitude: 0 },
|
|
114
114
|
jsonSchema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,WAAW;YACtC,IAAI,EAAE,cAAc,CAAC,KAAK;YAC1B,YAAY,EAAE,EAAE;YAChB,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;gBACxB,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,KAAK;aACb,CAAC;YACF,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,CAC5D,GAAG,CAAC,QAAQ,CAAC,YAAY,EAAE,KAAK,EAAE,QAAQ,CAAC;SAC5C,CAAC,CACF,CAAC;QAEF,sBAAsB,CAAC,QAAQ,CAC9B,GAAG,iBAAiB,CAAC,WAAW,GAAG,cAAc,CAAC,cAAc,EAAE,EAClE,GAAG,EAAE,CAAC,CAAC;YACN,OAAO,EAAE,iBAAiB,CAAC,WAAW;YACtC,IAAI,EAAE,cAAc,CAAC,cAAc;YACnC,YAAY,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE;YAC3C,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,oBAAmC;YAC3D,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,CAC5D,mBAAmB,CAAC,cAAc,CAAC,YAAY,EAAE,KAAK,EAAE,QAAQ,CAAC;SAClE,CAAC,CACF,CAAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { Url, Validation } from \"@twin.org/core\";\nimport { DataTypeHandlerFactory, type IJsonSchema } from \"@twin.org/data-core\";\nimport { JsonLdProcessor } from \"@twin.org/data-json-ld\";\nimport { SchemaOrgContexts } from \"../models/schemaOrgContexts.js\";\nimport { SchemaOrgTypes } from \"../models/schemaOrgTypes.js\";\nimport GeoCoordinatesSchema from \"../schemas/GeoCoordinates.json\" with { type: \"json\" };\nimport { SchemaOrgValidation } from \"../utils/schemaOrgValidation.js\";\n\n/**\n * Handle all the data types for schema.org.\n */\nexport class SchemaOrgDataTypes {\n\t/**\n\t * Register the JSON-LD Redirects.\n\t */\n\tpublic static registerRedirects(): void {\n\t\tJsonLdProcessor.addRedirect(/https?:\\/\\/schema.org\\/?/, SchemaOrgContexts.ContextRedirect);\n\t}\n\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${SchemaOrgContexts.ContextRoot}${SchemaOrgTypes.Text}`,\n\t\t\t() => ({\n\t\t\t\tcontext: SchemaOrgContexts.ContextRoot,\n\t\t\t\ttype: SchemaOrgTypes.Text,\n\t\t\t\tdefaultValue: \"\",\n\t\t\t\tjsonSchema: async () => ({\n\t\t\t\t\ttype: \"string\"\n\t\t\t\t}),\n\t\t\t\tvalidate: async (propertyName, value, failures, container) =>\n\t\t\t\t\tValidation.string(propertyName, value, failures)\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${SchemaOrgContexts.ContextRoot}${SchemaOrgTypes.Integer}`,\n\t\t\t() => ({\n\t\t\t\tcontext: SchemaOrgContexts.ContextRoot,\n\t\t\t\ttype: SchemaOrgTypes.Integer,\n\t\t\t\tdefaultValue: 0,\n\t\t\t\tjsonSchema: async () => ({\n\t\t\t\t\ttype: \"integer\"\n\t\t\t\t}),\n\t\t\t\tvalidate: async (propertyName, value, failures, container) =>\n\t\t\t\t\tValidation.integer(propertyName, value, failures)\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${SchemaOrgContexts.ContextRoot}${SchemaOrgTypes.Float}`,\n\t\t\t() => ({\n\t\t\t\tcontext: SchemaOrgContexts.ContextRoot,\n\t\t\t\ttype: SchemaOrgTypes.Float,\n\t\t\t\tdefaultValue: 0,\n\t\t\t\tjsonSchema: async () => ({\n\t\t\t\t\ttype: \"number\"\n\t\t\t\t}),\n\t\t\t\tvalidate: async (propertyName, value, failures, container) =>\n\t\t\t\t\tValidation.number(propertyName, value, failures)\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${SchemaOrgContexts.ContextRoot}${SchemaOrgTypes.Boolean}`,\n\t\t\t() => ({\n\t\t\t\tcontext: SchemaOrgContexts.ContextRoot,\n\t\t\t\ttype: SchemaOrgTypes.Boolean,\n\t\t\t\tdefaultValue: true,\n\t\t\t\tjsonSchema: async () => ({\n\t\t\t\t\ttype: \"boolean\"\n\t\t\t\t}),\n\t\t\t\tvalidate: async (propertyName, value, failures, container) =>\n\t\t\t\t\tValidation.boolean(propertyName, value, failures)\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${SchemaOrgContexts.ContextRoot}${SchemaOrgTypes.URL}`,\n\t\t\t() => ({\n\t\t\t\tcontext: SchemaOrgContexts.ContextRoot,\n\t\t\t\ttype: SchemaOrgTypes.URL,\n\t\t\t\tdefaultValue: \"\",\n\t\t\t\tjsonSchema: async () => ({\n\t\t\t\t\ttype: \"string\",\n\t\t\t\t\tformat: \"uri\"\n\t\t\t\t}),\n\t\t\t\tvalidate: async (propertyName, value, failures, container) =>\n\t\t\t\t\tUrl.validate(propertyName, value, failures)\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${SchemaOrgContexts.ContextRoot}${SchemaOrgTypes.Date}`,\n\t\t\t() => ({\n\t\t\t\tcontext: SchemaOrgContexts.ContextRoot,\n\t\t\t\ttype: SchemaOrgTypes.Date,\n\t\t\t\tdefaultValue: new Date(),\n\t\t\t\tjsonSchema: async () => ({\n\t\t\t\t\ttype: \"string\",\n\t\t\t\t\tformat: \"date\"\n\t\t\t\t}),\n\t\t\t\tvalidate: async (propertyName, value, failures, container) =>\n\t\t\t\t\tValidation.dateString(propertyName, value, failures)\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${SchemaOrgContexts.ContextRoot}${SchemaOrgTypes.DateTime}`,\n\t\t\t() => ({\n\t\t\t\tcontext: SchemaOrgContexts.ContextRoot,\n\t\t\t\ttype: SchemaOrgTypes.DateTime,\n\t\t\t\tdefaultValue: new Date(),\n\t\t\t\tjsonSchema: async () => ({\n\t\t\t\t\ttype: \"string\",\n\t\t\t\t\tformat: \"date-time\"\n\t\t\t\t}),\n\t\t\t\tvalidate: async (propertyName, value, failures, container) =>\n\t\t\t\t\tValidation.dateTimeString(propertyName, value, failures)\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${SchemaOrgContexts.ContextRoot}${SchemaOrgTypes.Time}`,\n\t\t\t() => ({\n\t\t\t\tcontext: SchemaOrgContexts.ContextRoot,\n\t\t\t\ttype: SchemaOrgTypes.Time,\n\t\t\t\tdefaultValue: new Date(),\n\t\t\t\tjsonSchema: async () => ({\n\t\t\t\t\ttype: \"string\",\n\t\t\t\t\tformat: \"time\"\n\t\t\t\t}),\n\t\t\t\tvalidate: async (propertyName, value, failures, container) =>\n\t\t\t\t\tValidation.timeString(propertyName, value, failures)\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${SchemaOrgContexts.ContextRoot}${SchemaOrgTypes.Image}`,\n\t\t\t() => ({\n\t\t\t\tcontext: SchemaOrgContexts.ContextRoot,\n\t\t\t\ttype: SchemaOrgTypes.Image,\n\t\t\t\tdefaultValue: \"\",\n\t\t\t\tjsonSchema: async () => ({\n\t\t\t\t\ttype: \"string\",\n\t\t\t\t\tformat: \"uri\"\n\t\t\t\t}),\n\t\t\t\tvalidate: async (propertyName, value, failures, container) =>\n\t\t\t\t\tUrl.validate(propertyName, value, failures)\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${SchemaOrgContexts.ContextRoot}${SchemaOrgTypes.GeoCoordinates}`,\n\t\t\t() => ({\n\t\t\t\tcontext: SchemaOrgContexts.ContextRoot,\n\t\t\t\ttype: SchemaOrgTypes.GeoCoordinates,\n\t\t\t\tdefaultValue: { longitude: 0, latitude: 0 },\n\t\t\t\tjsonSchema: async () => GeoCoordinatesSchema as IJsonSchema,\n\t\t\t\tvalidate: async (propertyName, value, failures, container) =>\n\t\t\t\t\tSchemaOrgValidation.geoCoordinates(propertyName, value, failures)\n\t\t\t})\n\t\t);\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"schemaOrgDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/schemaOrgDataTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,oBAAoB,MAAM,gCAAgC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACxF,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAEtE;;GAEG;AACH,MAAM,OAAO,kBAAkB;IAC9B;;OAEG;IACI,MAAM,CAAC,iBAAiB;QAC9B,eAAe,CAAC,WAAW,CAAC,0BAA0B,EAAE,iBAAiB,CAAC,aAAa,CAAC,CAAC;IAC1F,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,aAAa;QAC1B,sBAAsB,CAAC,QAAQ,CAAC,GAAG,iBAAiB,CAAC,SAAS,GAAG,cAAc,CAAC,IAAI,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;YAC9F,SAAS,EAAE,iBAAiB,CAAC,SAAS;YACtC,IAAI,EAAE,cAAc,CAAC,IAAI;YACzB,YAAY,EAAE,EAAE;YAChB,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;g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QAAQ,CAAC;SACrD,CAAC,CAAC,CAAC;QAEJ,sBAAsB,CAAC,QAAQ,CAC9B,GAAG,iBAAiB,CAAC,SAAS,GAAG,cAAc,CAAC,KAAK,EAAE,EACvD,GAAG,EAAE,CAAC,CAAC;YACN,SAAS,EAAE,iBAAiB,CAAC,SAAS;YACtC,IAAI,EAAE,cAAc,CAAC,KAAK;YAC1B,YAAY,EAAE,EAAE;YAChB,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;gBACxB,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE,KAAK;aACb,CAAC;YACF,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,CAC5D,GAAG,CAAC,QAAQ,CAAC,YAAY,EAAE,KAAK,EAAE,QAAQ,CAAC;SAC5C,CAAC,CACF,CAAC;QAEF,sBAAsB,CAAC,QAAQ,CAC9B,GAAG,iBAAiB,CAAC,SAAS,GAAG,cAAc,CAAC,cAAc,EAAE,EAChE,GAAG,EAAE,CAAC,CAAC;YACN,SAAS,EAAE,iBAAiB,CAAC,SAAS;YACtC,IAAI,EAAE,cAAc,CAAC,cAAc;YACnC,YAAY,EAAE,EAAE,SAAS,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE;YAC3C,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,oBAAoB;YAC5C,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,CAC5D,mBAAmB,CAAC,cAAc,CAAC,YAAY,EAAE,KAAK,EAAE,QAAQ,CAAC;SAClE,CAAC,CACF,CAAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { Url, Validation } from \"@twin.org/core\";\nimport { DataTypeHandlerFactory } from \"@twin.org/data-core\";\nimport { JsonLdProcessor } from \"@twin.org/data-json-ld\";\nimport { SchemaOrgContexts } from \"../models/schemaOrgContexts.js\";\nimport { SchemaOrgTypes } from \"../models/schemaOrgTypes.js\";\nimport GeoCoordinatesSchema from \"../schemas/GeoCoordinates.json\" with { type: \"json\" };\nimport { SchemaOrgValidation } from \"../utils/schemaOrgValidation.js\";\n\n/**\n * Handle all the data types for schema.org.\n */\nexport class SchemaOrgDataTypes {\n\t/**\n\t * Register the JSON-LD Redirects.\n\t */\n\tpublic static registerRedirects(): void {\n\t\tJsonLdProcessor.addRedirect(/https?:\\/\\/schema.org\\/?/, SchemaOrgContexts.JsonLdContext);\n\t}\n\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tDataTypeHandlerFactory.register(`${SchemaOrgContexts.Namespace}${SchemaOrgTypes.Text}`, () => ({\n\t\t\tnamespace: SchemaOrgContexts.Namespace,\n\t\t\ttype: SchemaOrgTypes.Text,\n\t\t\tdefaultValue: \"\",\n\t\t\tjsonSchema: async () => ({\n\t\t\t\ttype: \"string\"\n\t\t\t}),\n\t\t\tvalidate: async (propertyName, value, failures, container) =>\n\t\t\t\tValidation.string(propertyName, value, failures)\n\t\t}));\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${SchemaOrgContexts.Namespace}${SchemaOrgTypes.Integer}`,\n\t\t\t() => ({\n\t\t\t\tnamespace: SchemaOrgContexts.Namespace,\n\t\t\t\ttype: SchemaOrgTypes.Integer,\n\t\t\t\tdefaultValue: 0,\n\t\t\t\tjsonSchema: async () => ({\n\t\t\t\t\ttype: \"integer\"\n\t\t\t\t}),\n\t\t\t\tvalidate: async (propertyName, value, failures, container) =>\n\t\t\t\t\tValidation.integer(propertyName, value, failures)\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${SchemaOrgContexts.Namespace}${SchemaOrgTypes.Float}`,\n\t\t\t() => ({\n\t\t\t\tnamespace: SchemaOrgContexts.Namespace,\n\t\t\t\ttype: SchemaOrgTypes.Float,\n\t\t\t\tdefaultValue: 0,\n\t\t\t\tjsonSchema: async () => ({\n\t\t\t\t\ttype: \"number\"\n\t\t\t\t}),\n\t\t\t\tvalidate: async (propertyName, value, failures, container) =>\n\t\t\t\t\tValidation.number(propertyName, value, failures)\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${SchemaOrgContexts.Namespace}${SchemaOrgTypes.Boolean}`,\n\t\t\t() => ({\n\t\t\t\tnamespace: SchemaOrgContexts.Namespace,\n\t\t\t\ttype: SchemaOrgTypes.Boolean,\n\t\t\t\tdefaultValue: true,\n\t\t\t\tjsonSchema: async () => ({\n\t\t\t\t\ttype: \"boolean\"\n\t\t\t\t}),\n\t\t\t\tvalidate: async (propertyName, value, failures, container) =>\n\t\t\t\t\tValidation.boolean(propertyName, value, failures)\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(`${SchemaOrgContexts.Namespace}${SchemaOrgTypes.URL}`, () => ({\n\t\t\tnamespace: SchemaOrgContexts.Namespace,\n\t\t\ttype: SchemaOrgTypes.URL,\n\t\t\tdefaultValue: \"\",\n\t\t\tjsonSchema: async () => ({\n\t\t\t\ttype: \"string\",\n\t\t\t\tformat: \"uri\"\n\t\t\t}),\n\t\t\tvalidate: async (propertyName, value, failures, container) =>\n\t\t\t\tUrl.validate(propertyName, value, failures)\n\t\t}));\n\n\t\tDataTypeHandlerFactory.register(`${SchemaOrgContexts.Namespace}${SchemaOrgTypes.Date}`, () => ({\n\t\t\tnamespace: SchemaOrgContexts.Namespace,\n\t\t\ttype: SchemaOrgTypes.Date,\n\t\t\tdefaultValue: new Date(),\n\t\t\tjsonSchema: async () => ({\n\t\t\t\ttype: \"string\",\n\t\t\t\tformat: \"date\"\n\t\t\t}),\n\t\t\tvalidate: async (propertyName, value, failures, container) =>\n\t\t\t\tValidation.dateString(propertyName, value, failures)\n\t\t}));\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${SchemaOrgContexts.Namespace}${SchemaOrgTypes.DateTime}`,\n\t\t\t() => ({\n\t\t\t\tnamespace: SchemaOrgContexts.Namespace,\n\t\t\t\ttype: SchemaOrgTypes.DateTime,\n\t\t\t\tdefaultValue: new Date(),\n\t\t\t\tjsonSchema: async () => ({\n\t\t\t\t\ttype: \"string\",\n\t\t\t\t\tformat: \"date-time\"\n\t\t\t\t}),\n\t\t\t\tvalidate: async (propertyName, value, failures, container) =>\n\t\t\t\t\tValidation.dateTimeString(propertyName, value, failures)\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(`${SchemaOrgContexts.Namespace}${SchemaOrgTypes.Time}`, () => ({\n\t\t\tnamespace: SchemaOrgContexts.Namespace,\n\t\t\ttype: SchemaOrgTypes.Time,\n\t\t\tdefaultValue: new Date(),\n\t\t\tjsonSchema: async () => ({\n\t\t\t\ttype: \"string\",\n\t\t\t\tformat: \"time\"\n\t\t\t}),\n\t\t\tvalidate: async (propertyName, value, failures, container) =>\n\t\t\t\tValidation.timeString(propertyName, value, failures)\n\t\t}));\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${SchemaOrgContexts.Namespace}${SchemaOrgTypes.Image}`,\n\t\t\t() => ({\n\t\t\t\tnamespace: SchemaOrgContexts.Namespace,\n\t\t\t\ttype: SchemaOrgTypes.Image,\n\t\t\t\tdefaultValue: \"\",\n\t\t\t\tjsonSchema: async () => ({\n\t\t\t\t\ttype: \"string\",\n\t\t\t\t\tformat: \"uri\"\n\t\t\t\t}),\n\t\t\t\tvalidate: async (propertyName, value, failures, container) =>\n\t\t\t\t\tUrl.validate(propertyName, value, failures)\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${SchemaOrgContexts.Namespace}${SchemaOrgTypes.GeoCoordinates}`,\n\t\t\t() => ({\n\t\t\t\tnamespace: SchemaOrgContexts.Namespace,\n\t\t\t\ttype: SchemaOrgTypes.GeoCoordinates,\n\t\t\t\tdefaultValue: { longitude: 0, latitude: 0 },\n\t\t\t\tjsonSchema: async () => GeoCoordinatesSchema,\n\t\t\t\tvalidate: async (propertyName, value, failures, container) =>\n\t\t\t\t\tSchemaOrgValidation.geoCoordinates(propertyName, value, failures)\n\t\t\t})\n\t\t);\n\t}\n}\n"]}
|
|
@@ -6,12 +6,18 @@
|
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
7
|
export const SchemaOrgContexts = {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* The canonical RDF namespace URI.
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
Namespace: "https://schema.org/",
|
|
12
12
|
/**
|
|
13
|
-
* The
|
|
13
|
+
* The value to use in @context.
|
|
14
|
+
* Note: Context differs from Namespace (no trailing slash) as per schema.org specification.
|
|
15
|
+
* The schema.org JSON-LD context URL format does not include a trailing slash.
|
|
14
16
|
*/
|
|
15
|
-
|
|
17
|
+
Context: "https://schema.org",
|
|
18
|
+
/**
|
|
19
|
+
* The JSON-LD Context URL.
|
|
20
|
+
*/
|
|
21
|
+
JsonLdContext: "https://schema.org/docs/jsonldcontext.json"
|
|
16
22
|
};
|
|
17
23
|
//# sourceMappingURL=schemaOrgContexts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemaOrgContexts.js","sourceRoot":"","sources":["../../../src/models/schemaOrgContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAChC;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"schemaOrgContexts.js","sourceRoot":"","sources":["../../../src/models/schemaOrgContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAChC;;OAEG;IACH,SAAS,EAAE,qBAAqB;IAEhC;;;;OAIG;IACH,OAAO,EAAE,oBAAoB;IAE7B;;OAEG;IACH,aAAa,EAAE,4CAA4C;CAClD,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The contexts of schema.org data.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const SchemaOrgContexts = {\n\t/**\n\t * The canonical RDF namespace URI.\n\t */\n\tNamespace: \"https://schema.org/\",\n\n\t/**\n\t * The value to use in @context.\n\t * Note: Context differs from Namespace (no trailing slash) as per schema.org specification.\n\t * The schema.org JSON-LD context URL format does not include a trailing slash.\n\t */\n\tContext: \"https://schema.org\",\n\n\t/**\n\t * The JSON-LD Context URL.\n\t */\n\tJsonLdContext: \"https://schema.org/docs/jsonldcontext.json\"\n} as const;\n\n/**\n * The contexts of schema.org data.\n */\nexport type SchemaOrgContexts = (typeof SchemaOrgContexts)[keyof typeof SchemaOrgContexts];\n"]}
|
|
@@ -3,13 +3,19 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare const SchemaOrgContexts: {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* The canonical RDF namespace URI.
|
|
7
7
|
*/
|
|
8
|
-
readonly
|
|
8
|
+
readonly Namespace: "https://schema.org/";
|
|
9
9
|
/**
|
|
10
|
-
* The
|
|
10
|
+
* The value to use in @context.
|
|
11
|
+
* Note: Context differs from Namespace (no trailing slash) as per schema.org specification.
|
|
12
|
+
* The schema.org JSON-LD context URL format does not include a trailing slash.
|
|
11
13
|
*/
|
|
12
|
-
readonly
|
|
14
|
+
readonly Context: "https://schema.org";
|
|
15
|
+
/**
|
|
16
|
+
* The JSON-LD Context URL.
|
|
17
|
+
*/
|
|
18
|
+
readonly JsonLdContext: "https://schema.org/docs/jsonldcontext.json";
|
|
13
19
|
};
|
|
14
20
|
/**
|
|
15
21
|
* The contexts of schema.org data.
|
package/docs/changelog.md
CHANGED
|
@@ -1,289 +1,691 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Changelog
|
|
2
2
|
|
|
3
|
-
## [0.0.3-next.
|
|
3
|
+
## [0.0.3-next.61](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.60...standards-schema-org-v0.0.3-next.61) (2026-05-11)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* typescript 6 update ([79bfb52](https://github.com/iotaledger/twin-standards/commit/79bfb52e3dcb24689cec7b201dde822bcee970c5))
|
|
9
|
+
|
|
10
|
+
## [0.0.3-next.60](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.59...standards-schema-org-v0.0.3-next.60) (2026-04-21)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Miscellaneous Chores
|
|
14
|
+
|
|
15
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
16
|
+
|
|
17
|
+
## [0.0.3-next.59](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.58...standards-schema-org-v0.0.3-next.59) (2026-04-07)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### Miscellaneous Chores
|
|
21
|
+
|
|
22
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
23
|
+
|
|
24
|
+
## [0.0.3-next.58](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.57...standards-schema-org-v0.0.3-next.58) (2026-03-25)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Features
|
|
28
|
+
|
|
29
|
+
* adding a test to verify the link discovery ([#207](https://github.com/iotaledger/twin-standards/issues/207)) ([07b36a8](https://github.com/iotaledger/twin-standards/commit/07b36a85e5e7f7117cc59747242f7715640f070c))
|
|
30
|
+
|
|
31
|
+
## [0.0.3-next.57](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.56...standards-schema-org-v0.0.3-next.57) (2026-03-20)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Miscellaneous Chores
|
|
35
|
+
|
|
36
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
37
|
+
|
|
38
|
+
## [0.0.3-next.56](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.55...standards-schema-org-v0.0.3-next.56) (2026-03-20)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Miscellaneous Chores
|
|
42
|
+
|
|
43
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
44
|
+
|
|
45
|
+
## [0.0.3-next.55](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.54...standards-schema-org-v0.0.3-next.55) (2026-03-19)
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
### Features
|
|
49
|
+
|
|
50
|
+
* update to new ts-ts-schema and generic constructs ([4dff991](https://github.com/iotaledger/twin-standards/commit/4dff991fb70de4320668641ed94abf8e9b06acad))
|
|
51
|
+
|
|
52
|
+
## [0.0.3-next.54](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.53...standards-schema-org-v0.0.3-next.54) (2026-03-12)
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### Miscellaneous Chores
|
|
56
|
+
|
|
57
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
58
|
+
|
|
59
|
+
## [0.0.3-next.53](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.52...standards-schema-org-v0.0.3-next.53) (2026-03-11)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
### Miscellaneous Chores
|
|
63
|
+
|
|
64
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
65
|
+
|
|
66
|
+
## [0.0.3-next.52](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.51...standards-schema-org-v0.0.3-next.52) (2026-03-10)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
### Miscellaneous Chores
|
|
70
|
+
|
|
71
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
72
|
+
|
|
73
|
+
## [0.0.3-next.51](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.50...standards-schema-org-v0.0.3-next.51) (2026-03-10)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
### Miscellaneous Chores
|
|
77
|
+
|
|
78
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
79
|
+
|
|
80
|
+
## [0.0.3-next.50](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.49...standards-schema-org-v0.0.3-next.50) (2026-03-09)
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
### Miscellaneous Chores
|
|
84
|
+
|
|
85
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
86
|
+
|
|
87
|
+
## [0.0.3-next.49](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.48...standards-schema-org-v0.0.3-next.49) (2026-03-06)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
### Miscellaneous Chores
|
|
91
|
+
|
|
92
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
93
|
+
|
|
94
|
+
## [0.0.3-next.48](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.47...standards-schema-org-v0.0.3-next.48) (2026-03-06)
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
### Miscellaneous Chores
|
|
98
|
+
|
|
99
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
100
|
+
|
|
101
|
+
## [0.0.3-next.47](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.46...standards-schema-org-v0.0.3-next.47) (2026-03-06)
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
### Miscellaneous Chores
|
|
105
|
+
|
|
106
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
107
|
+
|
|
108
|
+
## [0.0.3-next.46](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.45...standards-schema-org-v0.0.3-next.46) (2026-03-05)
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
### Miscellaneous Chores
|
|
112
|
+
|
|
113
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
114
|
+
|
|
115
|
+
## [0.0.3-next.45](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.44...standards-schema-org-v0.0.3-next.45) (2026-03-04)
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
### Miscellaneous Chores
|
|
119
|
+
|
|
120
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
121
|
+
|
|
122
|
+
## [0.0.3-next.44](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.43...standards-schema-org-v0.0.3-next.44) (2026-03-04)
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
### Miscellaneous Chores
|
|
126
|
+
|
|
127
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
128
|
+
|
|
129
|
+
## [0.0.3-next.43](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.42...standards-schema-org-v0.0.3-next.43) (2026-02-25)
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
### Miscellaneous Chores
|
|
133
|
+
|
|
134
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
135
|
+
|
|
136
|
+
## [0.0.3-next.42](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.41...standards-schema-org-v0.0.3-next.42) (2026-02-25)
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
### Miscellaneous Chores
|
|
140
|
+
|
|
141
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
142
|
+
|
|
143
|
+
## [0.0.3-next.41](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.40...standards-schema-org-v0.0.3-next.41) (2026-02-23)
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
### Miscellaneous Chores
|
|
147
|
+
|
|
148
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
149
|
+
|
|
150
|
+
## [0.0.3-next.40](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.39...standards-schema-org-v0.0.3-next.40) (2026-02-18)
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
### Miscellaneous Chores
|
|
154
|
+
|
|
155
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
156
|
+
|
|
157
|
+
## [0.0.3-next.39](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.38...standards-schema-org-v0.0.3-next.39) (2026-02-13)
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
### Miscellaneous Chores
|
|
161
|
+
|
|
162
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
163
|
+
|
|
164
|
+
## [0.0.3-next.38](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.37...standards-schema-org-v0.0.3-next.38) (2026-02-13)
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
### Miscellaneous Chores
|
|
168
|
+
|
|
169
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
170
|
+
|
|
171
|
+
## [0.0.3-next.37](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.36...standards-schema-org-v0.0.3-next.37) (2026-02-12)
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
### Miscellaneous Chores
|
|
175
|
+
|
|
176
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
177
|
+
|
|
178
|
+
## [0.0.3-next.36](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.35...standards-schema-org-v0.0.3-next.36) (2026-02-11)
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
### Miscellaneous Chores
|
|
182
|
+
|
|
183
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
184
|
+
|
|
185
|
+
## [0.0.3-next.35](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.34...standards-schema-org-v0.0.3-next.35) (2026-02-10)
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
### Miscellaneous Chores
|
|
189
|
+
|
|
190
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
191
|
+
|
|
192
|
+
## [0.0.3-next.34](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.33...standards-schema-org-v0.0.3-next.34) (2026-02-10)
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
### Miscellaneous Chores
|
|
196
|
+
|
|
197
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
198
|
+
|
|
199
|
+
## [0.0.3-next.33](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.32...standards-schema-org-v0.0.3-next.33) (2026-02-06)
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
### Features
|
|
203
|
+
|
|
204
|
+
* add context id features ([#64](https://github.com/iotaledger/twin-standards/issues/64)) ([e68bb87](https://github.com/iotaledger/twin-standards/commit/e68bb87a215f3c3956cfd6400a5e1e2a16256085))
|
|
205
|
+
* add ItemList, ItemListElement and NextItem types ([19d7baf](https://github.com/iotaledger/twin-standards/commit/19d7baf31a3e6385c68051da75835d917d134deb))
|
|
206
|
+
* add ItemList, ItemListElement and NextItem types ([fb40e25](https://github.com/iotaledger/twin-standards/commit/fb40e25bd3552760452cc31d654d3f0596482ae9))
|
|
207
|
+
* add validate-locales ([838389c](https://github.com/iotaledger/twin-standards/commit/838389c1daf62ed42397d5758d267c3d1a37fa4d))
|
|
208
|
+
* data types registered with full qualified names ([d64bd08](https://github.com/iotaledger/twin-standards/commit/d64bd082084172da543e9bfaffb78cdc34e6641d))
|
|
209
|
+
* eslint migration to flat config ([648c1a1](https://github.com/iotaledger/twin-standards/commit/648c1a1e69d99b6b0cf69358ec6bdeecdbe3a5ea))
|
|
210
|
+
* improved namespaces and contexts ([#102](https://github.com/iotaledger/twin-standards/issues/102)) ([c74c370](https://github.com/iotaledger/twin-standards/commit/c74c370cd8145d6166ca4454353f3774c302ac3b))
|
|
211
|
+
* normalise type outputs ([0b3aed7](https://github.com/iotaledger/twin-standards/commit/0b3aed7df0802cd609423bbd7fda6bde601d3ceb))
|
|
212
|
+
* unused dependencies ([f8bc5bf](https://github.com/iotaledger/twin-standards/commit/f8bc5bfbccdc6036cbac9a3b3ff91e3de90c8a9b))
|
|
213
|
+
* update framework core ([58c0c3d](https://github.com/iotaledger/twin-standards/commit/58c0c3dd6cea0e4c2393dc0e3e1eb33a6d06f617))
|
|
214
|
+
* update to latest JSON schema spec ([7a23930](https://github.com/iotaledger/twin-standards/commit/7a2393032d7f48bfb20d3a484f981fb6dd83a92c))
|
|
215
|
+
* use shared store mechanism ([#11](https://github.com/iotaledger/twin-standards/issues/11)) ([96fa237](https://github.com/iotaledger/twin-standards/commit/96fa23735f69c1fc7e3d0019b527634fa0a042d9))
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
### Bug Fixes
|
|
219
|
+
|
|
220
|
+
* modifying the schema of the namespace and adding the context ([#112](https://github.com/iotaledger/twin-standards/issues/112)) ([3fc06fc](https://github.com/iotaledger/twin-standards/commit/3fc06fcc4e76450499679b8bc12c361526c06146))
|
|
221
|
+
* updating the missing packages ([#114](https://github.com/iotaledger/twin-standards/issues/114)) ([90b03f8](https://github.com/iotaledger/twin-standards/commit/90b03f8bdcd81506284d74a445840386c2da2d35))
|
|
222
|
+
|
|
223
|
+
## [0.0.3-next.32](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.31...standards-schema-org-v0.0.3-next.32) (2026-02-06)
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
### Miscellaneous Chores
|
|
227
|
+
|
|
228
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
229
|
+
|
|
230
|
+
## [0.0.3-next.31](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.30...standards-schema-org-v0.0.3-next.31) (2026-02-05)
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
### Miscellaneous Chores
|
|
234
|
+
|
|
235
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
236
|
+
|
|
237
|
+
## [0.0.3-next.30](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.29...standards-schema-org-v0.0.3-next.30) (2026-02-04)
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
### Miscellaneous Chores
|
|
241
|
+
|
|
242
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
243
|
+
|
|
244
|
+
## [0.0.3-next.29](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.28...standards-schema-org-v0.0.3-next.29) (2026-02-03)
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
### Miscellaneous Chores
|
|
248
|
+
|
|
249
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
250
|
+
|
|
251
|
+
## [0.0.3-next.28](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.27...standards-schema-org-v0.0.3-next.28) (2026-02-03)
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
### Miscellaneous Chores
|
|
255
|
+
|
|
256
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
257
|
+
|
|
258
|
+
## [0.0.3-next.27](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.26...standards-schema-org-v0.0.3-next.27) (2026-02-03)
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
### Miscellaneous Chores
|
|
262
|
+
|
|
263
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
264
|
+
|
|
265
|
+
## [0.0.3-next.26](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.25...standards-schema-org-v0.0.3-next.26) (2026-02-02)
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
### Miscellaneous Chores
|
|
269
|
+
|
|
270
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
271
|
+
|
|
272
|
+
## [0.0.3-next.25](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.24...standards-schema-org-v0.0.3-next.25) (2026-02-02)
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
### Miscellaneous Chores
|
|
276
|
+
|
|
277
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
278
|
+
|
|
279
|
+
## [0.0.3-next.24](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.23...standards-schema-org-v0.0.3-next.24) (2026-01-30)
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
### Miscellaneous Chores
|
|
283
|
+
|
|
284
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
285
|
+
|
|
286
|
+
## [0.0.3-next.23](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.22...standards-schema-org-v0.0.3-next.23) (2026-01-30)
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
### Miscellaneous Chores
|
|
290
|
+
|
|
291
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
292
|
+
|
|
293
|
+
## [0.0.3-next.22](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.21...standards-schema-org-v0.0.3-next.22) (2026-01-29)
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
### Miscellaneous Chores
|
|
297
|
+
|
|
298
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
299
|
+
|
|
300
|
+
## [0.0.3-next.21](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.20...standards-schema-org-v0.0.3-next.21) (2026-01-23)
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
### Miscellaneous Chores
|
|
304
|
+
|
|
305
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
306
|
+
|
|
307
|
+
## [0.0.3-next.20](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.19...standards-schema-org-v0.0.3-next.20) (2026-01-21)
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
### Miscellaneous Chores
|
|
311
|
+
|
|
312
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
313
|
+
|
|
314
|
+
## [0.0.3-next.19](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.18...standards-schema-org-v0.0.3-next.19) (2026-01-21)
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
### Miscellaneous Chores
|
|
318
|
+
|
|
319
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
320
|
+
|
|
321
|
+
## [0.0.3-next.18](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.17...standards-schema-org-v0.0.3-next.18) (2026-01-21)
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
### Miscellaneous Chores
|
|
325
|
+
|
|
326
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
327
|
+
|
|
328
|
+
## [0.0.3-next.17](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.16...standards-schema-org-v0.0.3-next.17) (2026-01-21)
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
### Bug Fixes
|
|
332
|
+
|
|
333
|
+
* updating the missing packages ([#114](https://github.com/iotaledger/twin-standards/issues/114)) ([90b03f8](https://github.com/iotaledger/twin-standards/commit/90b03f8bdcd81506284d74a445840386c2da2d35))
|
|
334
|
+
|
|
335
|
+
## [0.0.3-next.16](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.15...standards-schema-org-v0.0.3-next.16) (2026-01-19)
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
### Bug Fixes
|
|
339
|
+
|
|
340
|
+
* modifying the schema of the namespace and adding the context ([#112](https://github.com/iotaledger/twin-standards/issues/112)) ([3fc06fc](https://github.com/iotaledger/twin-standards/commit/3fc06fcc4e76450499679b8bc12c361526c06146))
|
|
341
|
+
|
|
342
|
+
## [0.0.3-next.15](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.14...standards-schema-org-v0.0.3-next.15) (2026-01-16)
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
### Miscellaneous Chores
|
|
346
|
+
|
|
347
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
348
|
+
|
|
349
|
+
## [0.0.3-next.14](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.13...standards-schema-org-v0.0.3-next.14) (2026-01-15)
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
### Miscellaneous Chores
|
|
353
|
+
|
|
354
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
355
|
+
|
|
356
|
+
## [0.0.3-next.13](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.12...standards-schema-org-v0.0.3-next.13) (2026-01-14)
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
### Miscellaneous Chores
|
|
360
|
+
|
|
361
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
362
|
+
|
|
363
|
+
## [0.0.3-next.12](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.11...standards-schema-org-v0.0.3-next.12) (2026-01-14)
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
### Miscellaneous Chores
|
|
367
|
+
|
|
368
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
369
|
+
|
|
370
|
+
## [0.0.3-next.11](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.10...standards-schema-org-v0.0.3-next.11) (2026-01-14)
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
### Features
|
|
374
|
+
|
|
375
|
+
* improved namespaces and contexts ([#102](https://github.com/iotaledger/twin-standards/issues/102)) ([c74c370](https://github.com/iotaledger/twin-standards/commit/c74c370cd8145d6166ca4454353f3774c302ac3b))
|
|
376
|
+
|
|
377
|
+
## [0.0.3-next.10](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.9...standards-schema-org-v0.0.3-next.10) (2026-01-13)
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
### Miscellaneous Chores
|
|
381
|
+
|
|
382
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
383
|
+
|
|
384
|
+
## [0.0.3-next.9](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.8...standards-schema-org-v0.0.3-next.9) (2026-01-09)
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
### Miscellaneous Chores
|
|
388
|
+
|
|
389
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
390
|
+
|
|
391
|
+
## [0.0.3-next.8](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.7...standards-schema-org-v0.0.3-next.8) (2026-01-08)
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
### Miscellaneous Chores
|
|
395
|
+
|
|
396
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
397
|
+
|
|
398
|
+
## [0.0.3-next.7](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.6...standards-schema-org-v0.0.3-next.7) (2026-01-06)
|
|
399
|
+
|
|
400
|
+
|
|
401
|
+
### Miscellaneous Chores
|
|
402
|
+
|
|
403
|
+
* **standards-schema-org:** Synchronize repo versions
|
|
404
|
+
|
|
405
|
+
## [0.0.3-next.6](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.5...standards-schema-org-v0.0.3-next.6) (2025-12-03)
|
|
4
406
|
|
|
5
407
|
|
|
6
408
|
### Miscellaneous Chores
|
|
7
409
|
|
|
8
410
|
* **standards-schema-org:** Synchronize repo versions
|
|
9
411
|
|
|
10
|
-
## [0.0.3-next.5](https://github.com/
|
|
412
|
+
## [0.0.3-next.5](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.4...standards-schema-org-v0.0.3-next.5) (2025-11-28)
|
|
11
413
|
|
|
12
414
|
|
|
13
415
|
### Miscellaneous Chores
|
|
14
416
|
|
|
15
417
|
* **standards-schema-org:** Synchronize repo versions
|
|
16
418
|
|
|
17
|
-
## [0.0.3-next.4](https://github.com/
|
|
419
|
+
## [0.0.3-next.4](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.3...standards-schema-org-v0.0.3-next.4) (2025-11-18)
|
|
18
420
|
|
|
19
421
|
|
|
20
422
|
### Miscellaneous Chores
|
|
21
423
|
|
|
22
424
|
* **standards-schema-org:** Synchronize repo versions
|
|
23
425
|
|
|
24
|
-
## [0.0.3-next.3](https://github.com/
|
|
426
|
+
## [0.0.3-next.3](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.2...standards-schema-org-v0.0.3-next.3) (2025-11-18)
|
|
25
427
|
|
|
26
428
|
|
|
27
429
|
### Miscellaneous Chores
|
|
28
430
|
|
|
29
431
|
* **standards-schema-org:** Synchronize repo versions
|
|
30
432
|
|
|
31
|
-
## [0.0.3-next.2](https://github.com/
|
|
433
|
+
## [0.0.3-next.2](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.1...standards-schema-org-v0.0.3-next.2) (2025-11-11)
|
|
32
434
|
|
|
33
435
|
|
|
34
436
|
### Miscellaneous Chores
|
|
35
437
|
|
|
36
438
|
* **standards-schema-org:** Synchronize repo versions
|
|
37
439
|
|
|
38
|
-
## [0.0.3-next.1](https://github.com/
|
|
440
|
+
## [0.0.3-next.1](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.3-next.0...standards-schema-org-v0.0.3-next.1) (2025-11-10)
|
|
39
441
|
|
|
40
442
|
|
|
41
443
|
### Features
|
|
42
444
|
|
|
43
|
-
* add context id features ([#64](https://github.com/
|
|
44
|
-
* add ItemList, ItemListElement and NextItem types ([19d7baf](https://github.com/
|
|
45
|
-
* add ItemList, ItemListElement and NextItem types ([fb40e25](https://github.com/
|
|
46
|
-
* add validate-locales ([838389c](https://github.com/
|
|
47
|
-
* data types registered with full qualified names ([d64bd08](https://github.com/
|
|
48
|
-
* eslint migration to flat config ([648c1a1](https://github.com/
|
|
49
|
-
* normalise type outputs ([0b3aed7](https://github.com/
|
|
50
|
-
* unused dependencies ([f8bc5bf](https://github.com/
|
|
51
|
-
* update framework core ([58c0c3d](https://github.com/
|
|
52
|
-
* update to latest JSON schema spec ([7a23930](https://github.com/
|
|
53
|
-
* use shared store mechanism ([#11](https://github.com/
|
|
445
|
+
* add context id features ([#64](https://github.com/iotaledger/twin-standards/issues/64)) ([e68bb87](https://github.com/iotaledger/twin-standards/commit/e68bb87a215f3c3956cfd6400a5e1e2a16256085))
|
|
446
|
+
* add ItemList, ItemListElement and NextItem types ([19d7baf](https://github.com/iotaledger/twin-standards/commit/19d7baf31a3e6385c68051da75835d917d134deb))
|
|
447
|
+
* add ItemList, ItemListElement and NextItem types ([fb40e25](https://github.com/iotaledger/twin-standards/commit/fb40e25bd3552760452cc31d654d3f0596482ae9))
|
|
448
|
+
* add validate-locales ([838389c](https://github.com/iotaledger/twin-standards/commit/838389c1daf62ed42397d5758d267c3d1a37fa4d))
|
|
449
|
+
* data types registered with full qualified names ([d64bd08](https://github.com/iotaledger/twin-standards/commit/d64bd082084172da543e9bfaffb78cdc34e6641d))
|
|
450
|
+
* eslint migration to flat config ([648c1a1](https://github.com/iotaledger/twin-standards/commit/648c1a1e69d99b6b0cf69358ec6bdeecdbe3a5ea))
|
|
451
|
+
* normalise type outputs ([0b3aed7](https://github.com/iotaledger/twin-standards/commit/0b3aed7df0802cd609423bbd7fda6bde601d3ceb))
|
|
452
|
+
* unused dependencies ([f8bc5bf](https://github.com/iotaledger/twin-standards/commit/f8bc5bfbccdc6036cbac9a3b3ff91e3de90c8a9b))
|
|
453
|
+
* update framework core ([58c0c3d](https://github.com/iotaledger/twin-standards/commit/58c0c3dd6cea0e4c2393dc0e3e1eb33a6d06f617))
|
|
454
|
+
* update to latest JSON schema spec ([7a23930](https://github.com/iotaledger/twin-standards/commit/7a2393032d7f48bfb20d3a484f981fb6dd83a92c))
|
|
455
|
+
* use shared store mechanism ([#11](https://github.com/iotaledger/twin-standards/issues/11)) ([96fa237](https://github.com/iotaledger/twin-standards/commit/96fa23735f69c1fc7e3d0019b527634fa0a042d9))
|
|
54
456
|
|
|
55
|
-
## [0.0.2-next.16](https://github.com/
|
|
457
|
+
## [0.0.2-next.16](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.2-next.15...standards-schema-org-v0.0.2-next.16) (2025-10-09)
|
|
56
458
|
|
|
57
459
|
|
|
58
460
|
### Miscellaneous Chores
|
|
59
461
|
|
|
60
462
|
* **standards-schema-org:** Synchronize repo versions
|
|
61
463
|
|
|
62
|
-
## [0.0.2-next.15](https://github.com/
|
|
464
|
+
## [0.0.2-next.15](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.2-next.14...standards-schema-org-v0.0.2-next.15) (2025-10-09)
|
|
63
465
|
|
|
64
466
|
|
|
65
467
|
### Features
|
|
66
468
|
|
|
67
|
-
* add validate-locales ([838389c](https://github.com/
|
|
469
|
+
* add validate-locales ([838389c](https://github.com/iotaledger/twin-standards/commit/838389c1daf62ed42397d5758d267c3d1a37fa4d))
|
|
68
470
|
|
|
69
|
-
## [0.0.2-next.14](https://github.com/
|
|
471
|
+
## [0.0.2-next.14](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.2-next.13...standards-schema-org-v0.0.2-next.14) (2025-10-02)
|
|
70
472
|
|
|
71
473
|
|
|
72
474
|
### Miscellaneous Chores
|
|
73
475
|
|
|
74
476
|
* **standards-schema-org:** Synchronize repo versions
|
|
75
477
|
|
|
76
|
-
## [0.0.2-next.13](https://github.com/
|
|
478
|
+
## [0.0.2-next.13](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.2-next.12...standards-schema-org-v0.0.2-next.13) (2025-09-22)
|
|
77
479
|
|
|
78
480
|
|
|
79
481
|
### Miscellaneous Chores
|
|
80
482
|
|
|
81
483
|
* **standards-schema-org:** Synchronize repo versions
|
|
82
484
|
|
|
83
|
-
## [0.0.2-next.12](https://github.com/
|
|
485
|
+
## [0.0.2-next.12](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.2-next.11...standards-schema-org-v0.0.2-next.12) (2025-09-16)
|
|
84
486
|
|
|
85
487
|
|
|
86
488
|
### Miscellaneous Chores
|
|
87
489
|
|
|
88
490
|
* **standards-schema-org:** Synchronize repo versions
|
|
89
491
|
|
|
90
|
-
## [0.0.2-next.11](https://github.com/
|
|
492
|
+
## [0.0.2-next.11](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.2-next.10...standards-schema-org-v0.0.2-next.11) (2025-09-16)
|
|
91
493
|
|
|
92
494
|
|
|
93
495
|
### Miscellaneous Chores
|
|
94
496
|
|
|
95
497
|
* **standards-schema-org:** Synchronize repo versions
|
|
96
498
|
|
|
97
|
-
## [0.0.2-next.10](https://github.com/
|
|
499
|
+
## [0.0.2-next.10](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.2-next.9...standards-schema-org-v0.0.2-next.10) (2025-09-16)
|
|
98
500
|
|
|
99
501
|
|
|
100
502
|
### Miscellaneous Chores
|
|
101
503
|
|
|
102
504
|
* **standards-schema-org:** Synchronize repo versions
|
|
103
505
|
|
|
104
|
-
## [0.0.2-next.9](https://github.com/
|
|
506
|
+
## [0.0.2-next.9](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.2-next.8...standards-schema-org-v0.0.2-next.9) (2025-09-15)
|
|
105
507
|
|
|
106
508
|
|
|
107
509
|
### Miscellaneous Chores
|
|
108
510
|
|
|
109
511
|
* **standards-schema-org:** Synchronize repo versions
|
|
110
512
|
|
|
111
|
-
## [0.0.2-next.8](https://github.com/
|
|
513
|
+
## [0.0.2-next.8](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.2-next.7...standards-schema-org-v0.0.2-next.8) (2025-09-15)
|
|
112
514
|
|
|
113
515
|
|
|
114
516
|
### Miscellaneous Chores
|
|
115
517
|
|
|
116
518
|
* **standards-schema-org:** Synchronize repo versions
|
|
117
519
|
|
|
118
|
-
## [0.0.2-next.7](https://github.com/
|
|
520
|
+
## [0.0.2-next.7](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.2-next.6...standards-schema-org-v0.0.2-next.7) (2025-09-15)
|
|
119
521
|
|
|
120
522
|
|
|
121
523
|
### Miscellaneous Chores
|
|
122
524
|
|
|
123
525
|
* **standards-schema-org:** Synchronize repo versions
|
|
124
526
|
|
|
125
|
-
## [0.0.2-next.6](https://github.com/
|
|
527
|
+
## [0.0.2-next.6](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.2-next.5...standards-schema-org-v0.0.2-next.6) (2025-09-12)
|
|
126
528
|
|
|
127
529
|
|
|
128
530
|
### Miscellaneous Chores
|
|
129
531
|
|
|
130
532
|
* **standards-schema-org:** Synchronize repo versions
|
|
131
533
|
|
|
132
|
-
## [0.0.2-next.5](https://github.com/
|
|
534
|
+
## [0.0.2-next.5](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.2-next.4...standards-schema-org-v0.0.2-next.5) (2025-09-12)
|
|
133
535
|
|
|
134
536
|
|
|
135
537
|
### Miscellaneous Chores
|
|
136
538
|
|
|
137
539
|
* **standards-schema-org:** Synchronize repo versions
|
|
138
540
|
|
|
139
|
-
## [0.0.2-next.4](https://github.com/
|
|
541
|
+
## [0.0.2-next.4](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.2-next.3...standards-schema-org-v0.0.2-next.4) (2025-09-12)
|
|
140
542
|
|
|
141
543
|
|
|
142
544
|
### Miscellaneous Chores
|
|
143
545
|
|
|
144
546
|
* **standards-schema-org:** Synchronize repo versions
|
|
145
547
|
|
|
146
|
-
## [0.0.2-next.3](https://github.com/
|
|
548
|
+
## [0.0.2-next.3](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.2-next.2...standards-schema-org-v0.0.2-next.3) (2025-08-29)
|
|
147
549
|
|
|
148
550
|
|
|
149
551
|
### Features
|
|
150
552
|
|
|
151
|
-
* eslint migration to flat config ([648c1a1](https://github.com/
|
|
553
|
+
* eslint migration to flat config ([648c1a1](https://github.com/iotaledger/twin-standards/commit/648c1a1e69d99b6b0cf69358ec6bdeecdbe3a5ea))
|
|
152
554
|
|
|
153
|
-
## [0.0.2-next.2](https://github.com/
|
|
555
|
+
## [0.0.2-next.2](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.2-next.1...standards-schema-org-v0.0.2-next.2) (2025-08-19)
|
|
154
556
|
|
|
155
557
|
|
|
156
558
|
### Features
|
|
157
559
|
|
|
158
|
-
* update framework core ([58c0c3d](https://github.com/
|
|
560
|
+
* update framework core ([58c0c3d](https://github.com/iotaledger/twin-standards/commit/58c0c3dd6cea0e4c2393dc0e3e1eb33a6d06f617))
|
|
159
561
|
|
|
160
|
-
## [0.0.2-next.1](https://github.com/
|
|
562
|
+
## [0.0.2-next.1](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.2-next.0...standards-schema-org-v0.0.2-next.1) (2025-07-14)
|
|
161
563
|
|
|
162
564
|
|
|
163
565
|
### Features
|
|
164
566
|
|
|
165
|
-
* add ItemList, ItemListElement and NextItem types ([19d7baf](https://github.com/
|
|
166
|
-
* add ItemList, ItemListElement and NextItem types ([fb40e25](https://github.com/
|
|
167
|
-
* data types registered with full qualified names ([d64bd08](https://github.com/
|
|
168
|
-
* normalise type outputs ([0b3aed7](https://github.com/
|
|
169
|
-
* unused dependencies ([f8bc5bf](https://github.com/
|
|
170
|
-
* update to latest JSON schema spec ([7a23930](https://github.com/
|
|
171
|
-
* use shared store mechanism ([#11](https://github.com/
|
|
567
|
+
* add ItemList, ItemListElement and NextItem types ([19d7baf](https://github.com/iotaledger/twin-standards/commit/19d7baf31a3e6385c68051da75835d917d134deb))
|
|
568
|
+
* add ItemList, ItemListElement and NextItem types ([fb40e25](https://github.com/iotaledger/twin-standards/commit/fb40e25bd3552760452cc31d654d3f0596482ae9))
|
|
569
|
+
* data types registered with full qualified names ([d64bd08](https://github.com/iotaledger/twin-standards/commit/d64bd082084172da543e9bfaffb78cdc34e6641d))
|
|
570
|
+
* normalise type outputs ([0b3aed7](https://github.com/iotaledger/twin-standards/commit/0b3aed7df0802cd609423bbd7fda6bde601d3ceb))
|
|
571
|
+
* unused dependencies ([f8bc5bf](https://github.com/iotaledger/twin-standards/commit/f8bc5bfbccdc6036cbac9a3b3ff91e3de90c8a9b))
|
|
572
|
+
* update to latest JSON schema spec ([7a23930](https://github.com/iotaledger/twin-standards/commit/7a2393032d7f48bfb20d3a484f981fb6dd83a92c))
|
|
573
|
+
* use shared store mechanism ([#11](https://github.com/iotaledger/twin-standards/issues/11)) ([96fa237](https://github.com/iotaledger/twin-standards/commit/96fa23735f69c1fc7e3d0019b527634fa0a042d9))
|
|
172
574
|
|
|
173
575
|
## 0.0.1 (2025-07-03)
|
|
174
576
|
|
|
175
577
|
|
|
176
578
|
### Features
|
|
177
579
|
|
|
178
|
-
* release to production ([2ae4125](https://github.com/
|
|
580
|
+
* release to production ([2ae4125](https://github.com/iotaledger/twin-standards/commit/2ae4125f305d4714b50036eb8a0bd47e4100a7be))
|
|
179
581
|
|
|
180
|
-
## [0.0.1-next.49](https://github.com/
|
|
582
|
+
## [0.0.1-next.49](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.1-next.48...standards-schema-org-v0.0.1-next.49) (2025-06-18)
|
|
181
583
|
|
|
182
584
|
|
|
183
585
|
### Features
|
|
184
586
|
|
|
185
|
-
* unused dependencies ([f8bc5bf](https://github.com/
|
|
587
|
+
* unused dependencies ([f8bc5bf](https://github.com/iotaledger/twin-standards/commit/f8bc5bfbccdc6036cbac9a3b3ff91e3de90c8a9b))
|
|
186
588
|
|
|
187
|
-
## [0.0.1-next.48](https://github.com/
|
|
589
|
+
## [0.0.1-next.48](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.1-next.47...standards-schema-org-v0.0.1-next.48) (2025-06-11)
|
|
188
590
|
|
|
189
591
|
|
|
190
592
|
### Features
|
|
191
593
|
|
|
192
|
-
* update to latest JSON schema spec ([7a23930](https://github.com/
|
|
594
|
+
* update to latest JSON schema spec ([7a23930](https://github.com/iotaledger/twin-standards/commit/7a2393032d7f48bfb20d3a484f981fb6dd83a92c))
|
|
193
595
|
|
|
194
|
-
## [0.0.1-next.47](https://github.com/
|
|
596
|
+
## [0.0.1-next.47](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.1-next.46...standards-schema-org-v0.0.1-next.47) (2025-06-05)
|
|
195
597
|
|
|
196
598
|
|
|
197
599
|
### Miscellaneous Chores
|
|
198
600
|
|
|
199
601
|
* **standards-schema-org:** Synchronize repo versions
|
|
200
602
|
|
|
201
|
-
## [0.0.1-next.46](https://github.com/
|
|
603
|
+
## [0.0.1-next.46](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.1-next.45...standards-schema-org-v0.0.1-next.46) (2025-06-03)
|
|
202
604
|
|
|
203
605
|
|
|
204
606
|
### Miscellaneous Chores
|
|
205
607
|
|
|
206
608
|
* **standards-schema-org:** Synchronize repo versions
|
|
207
609
|
|
|
208
|
-
## [0.0.1-next.45](https://github.com/
|
|
610
|
+
## [0.0.1-next.45](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.1-next.44...standards-schema-org-v0.0.1-next.45) (2025-06-02)
|
|
209
611
|
|
|
210
612
|
|
|
211
613
|
### Miscellaneous Chores
|
|
212
614
|
|
|
213
615
|
* **standards-schema-org:** Synchronize repo versions
|
|
214
616
|
|
|
215
|
-
## [0.0.1-next.44](https://github.com/
|
|
617
|
+
## [0.0.1-next.44](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.1-next.43...standards-schema-org-v0.0.1-next.44) (2025-05-28)
|
|
216
618
|
|
|
217
619
|
|
|
218
620
|
### Features
|
|
219
621
|
|
|
220
|
-
* data types registered with full qualified names ([d64bd08](https://github.com/
|
|
622
|
+
* data types registered with full qualified names ([d64bd08](https://github.com/iotaledger/twin-standards/commit/d64bd082084172da543e9bfaffb78cdc34e6641d))
|
|
221
623
|
|
|
222
|
-
## [0.0.1-next.43](https://github.com/
|
|
624
|
+
## [0.0.1-next.43](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.1-next.42...standards-schema-org-v0.0.1-next.43) (2025-05-20)
|
|
223
625
|
|
|
224
626
|
|
|
225
627
|
### Miscellaneous Chores
|
|
226
628
|
|
|
227
629
|
* **standards-schema-org:** Synchronize repo versions
|
|
228
630
|
|
|
229
|
-
## [0.0.1-next.42](https://github.com/
|
|
631
|
+
## [0.0.1-next.42](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.1-next.41...standards-schema-org-v0.0.1-next.42) (2025-05-09)
|
|
230
632
|
|
|
231
633
|
|
|
232
634
|
### Miscellaneous Chores
|
|
233
635
|
|
|
234
636
|
* **standards-schema-org:** Synchronize repo versions
|
|
235
637
|
|
|
236
|
-
## [0.0.1-next.41](https://github.com/
|
|
638
|
+
## [0.0.1-next.41](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.1-next.40...standards-schema-org-v0.0.1-next.41) (2025-05-08)
|
|
237
639
|
|
|
238
640
|
|
|
239
641
|
### Features
|
|
240
642
|
|
|
241
|
-
* add ItemList, ItemListElement and NextItem types ([19d7baf](https://github.com/
|
|
242
|
-
* add ItemList, ItemListElement and NextItem types ([fb40e25](https://github.com/
|
|
643
|
+
* add ItemList, ItemListElement and NextItem types ([19d7baf](https://github.com/iotaledger/twin-standards/commit/19d7baf31a3e6385c68051da75835d917d134deb))
|
|
644
|
+
* add ItemList, ItemListElement and NextItem types ([fb40e25](https://github.com/iotaledger/twin-standards/commit/fb40e25bd3552760452cc31d654d3f0596482ae9))
|
|
243
645
|
|
|
244
|
-
## [0.0.1-next.40](https://github.com/
|
|
646
|
+
## [0.0.1-next.40](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.1-next.39...standards-schema-org-v0.0.1-next.40) (2025-05-08)
|
|
245
647
|
|
|
246
648
|
|
|
247
649
|
### Miscellaneous Chores
|
|
248
650
|
|
|
249
651
|
* **standards-schema-org:** Synchronize repo versions
|
|
250
652
|
|
|
251
|
-
## [0.0.1-next.39](https://github.com/
|
|
653
|
+
## [0.0.1-next.39](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.1-next.38...standards-schema-org-v0.0.1-next.39) (2025-05-07)
|
|
252
654
|
|
|
253
655
|
|
|
254
656
|
### Miscellaneous Chores
|
|
255
657
|
|
|
256
658
|
* **standards-schema-org:** Synchronize repo versions
|
|
257
659
|
|
|
258
|
-
## [0.0.1-next.38](https://github.com/
|
|
660
|
+
## [0.0.1-next.38](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.1-next.37...standards-schema-org-v0.0.1-next.38) (2025-05-07)
|
|
259
661
|
|
|
260
662
|
|
|
261
663
|
### Miscellaneous Chores
|
|
262
664
|
|
|
263
665
|
* **standards-schema-org:** Synchronize repo versions
|
|
264
666
|
|
|
265
|
-
## [0.0.1-next.37](https://github.com/
|
|
667
|
+
## [0.0.1-next.37](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.1-next.36...standards-schema-org-v0.0.1-next.37) (2025-05-06)
|
|
266
668
|
|
|
267
669
|
|
|
268
670
|
### Miscellaneous Chores
|
|
269
671
|
|
|
270
672
|
* **standards-schema-org:** Synchronize repo versions
|
|
271
673
|
|
|
272
|
-
## [0.0.1-next.36](https://github.com/
|
|
674
|
+
## [0.0.1-next.36](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.1-next.35...standards-schema-org-v0.0.1-next.36) (2025-04-30)
|
|
273
675
|
|
|
274
676
|
|
|
275
677
|
### Miscellaneous Chores
|
|
276
678
|
|
|
277
679
|
* **standards-schema-org:** Synchronize repo versions
|
|
278
680
|
|
|
279
|
-
## [0.0.1-next.35](https://github.com/
|
|
681
|
+
## [0.0.1-next.35](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.1-next.34...standards-schema-org-v0.0.1-next.35) (2025-04-17)
|
|
280
682
|
|
|
281
683
|
|
|
282
684
|
### Features
|
|
283
685
|
|
|
284
|
-
* use shared store mechanism ([#11](https://github.com/
|
|
686
|
+
* use shared store mechanism ([#11](https://github.com/iotaledger/twin-standards/issues/11)) ([96fa237](https://github.com/iotaledger/twin-standards/commit/96fa23735f69c1fc7e3d0019b527634fa0a042d9))
|
|
285
687
|
|
|
286
|
-
## [0.0.1-next.34](https://github.com/
|
|
688
|
+
## [0.0.1-next.34](https://github.com/iotaledger/twin-standards/compare/standards-schema-org-v0.0.1-next.33...standards-schema-org-v0.0.1-next.34) (2025-03-28)
|
|
287
689
|
|
|
288
690
|
|
|
289
691
|
### Miscellaneous Chores
|
package/docs/examples.md
CHANGED
|
@@ -1 +1,26 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Standards Schema.org Examples
|
|
2
|
+
|
|
3
|
+
These snippets register data types and validate coordinate payloads against schema.org constraints.
|
|
4
|
+
|
|
5
|
+
## SchemaOrgValidation
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import type { IValidationFailure } from '@twin.org/core';
|
|
9
|
+
import { SchemaOrgDataTypes, SchemaOrgValidation } from '@twin.org/standards-schema-org';
|
|
10
|
+
|
|
11
|
+
SchemaOrgDataTypes.registerRedirects();
|
|
12
|
+
SchemaOrgDataTypes.registerTypes();
|
|
13
|
+
|
|
14
|
+
const failures: IValidationFailure[] = [];
|
|
15
|
+
const valid = SchemaOrgValidation.geoCoordinates(
|
|
16
|
+
'site.geo',
|
|
17
|
+
{
|
|
18
|
+
latitude: 53.3498,
|
|
19
|
+
longitude: -6.2603
|
|
20
|
+
},
|
|
21
|
+
failures
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
console.log(valid); // true
|
|
25
|
+
console.log(failures.length); // 0
|
|
26
|
+
```
|
|
@@ -14,7 +14,7 @@ Handle all the data types for schema.org.
|
|
|
14
14
|
|
|
15
15
|
## Methods
|
|
16
16
|
|
|
17
|
-
### registerRedirects()
|
|
17
|
+
### registerRedirects() {#registerredirects}
|
|
18
18
|
|
|
19
19
|
> `static` **registerRedirects**(): `void`
|
|
20
20
|
|
|
@@ -26,7 +26,7 @@ Register the JSON-LD Redirects.
|
|
|
26
26
|
|
|
27
27
|
***
|
|
28
28
|
|
|
29
|
-
### registerTypes()
|
|
29
|
+
### registerTypes() {#registertypes}
|
|
30
30
|
|
|
31
31
|
> `static` **registerTypes**(): `void`
|
|
32
32
|
|
|
@@ -6,14 +6,22 @@ The contexts of schema.org data.
|
|
|
6
6
|
|
|
7
7
|
## Type Declaration
|
|
8
8
|
|
|
9
|
-
###
|
|
9
|
+
### Namespace {#namespace}
|
|
10
10
|
|
|
11
|
-
> `readonly` **
|
|
11
|
+
> `readonly` **Namespace**: `"https://schema.org/"` = `"https://schema.org/"`
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
The canonical RDF namespace URI.
|
|
14
14
|
|
|
15
|
-
###
|
|
15
|
+
### Context {#context}
|
|
16
16
|
|
|
17
|
-
> `readonly` **
|
|
17
|
+
> `readonly` **Context**: `"https://schema.org"` = `"https://schema.org"`
|
|
18
18
|
|
|
19
|
-
The
|
|
19
|
+
The value to use in @context.
|
|
20
|
+
Note: Context differs from Namespace (no trailing slash) as per schema.org specification.
|
|
21
|
+
The schema.org JSON-LD context URL format does not include a trailing slash.
|
|
22
|
+
|
|
23
|
+
### JsonLdContext {#jsonldcontext}
|
|
24
|
+
|
|
25
|
+
> `readonly` **JsonLdContext**: `"https://schema.org/docs/jsonldcontext.json"` = `"https://schema.org/docs/jsonldcontext.json"`
|
|
26
|
+
|
|
27
|
+
The JSON-LD Context URL.
|
|
@@ -6,85 +6,85 @@ The types of schema.org data.
|
|
|
6
6
|
|
|
7
7
|
## Type Declaration
|
|
8
8
|
|
|
9
|
-
### Text
|
|
9
|
+
### Text {#text}
|
|
10
10
|
|
|
11
11
|
> `readonly` **Text**: `"Text"` = `"Text"`
|
|
12
12
|
|
|
13
13
|
Represents text storage.
|
|
14
14
|
|
|
15
|
-
### Integer
|
|
15
|
+
### Integer {#integer}
|
|
16
16
|
|
|
17
17
|
> `readonly` **Integer**: `"Integer"` = `"Integer"`
|
|
18
18
|
|
|
19
19
|
Represents integer number values.
|
|
20
20
|
|
|
21
|
-
### Float
|
|
21
|
+
### Float {#float}
|
|
22
22
|
|
|
23
23
|
> `readonly` **Float**: `"Float"` = `"Float"`
|
|
24
24
|
|
|
25
25
|
Represents floating point numbers.
|
|
26
26
|
|
|
27
|
-
### Boolean
|
|
27
|
+
### Boolean {#boolean}
|
|
28
28
|
|
|
29
29
|
> `readonly` **Boolean**: `"Boolean"` = `"Boolean"`
|
|
30
30
|
|
|
31
31
|
Represents a boolean.
|
|
32
32
|
|
|
33
|
-
### URL
|
|
33
|
+
### URL {#url}
|
|
34
34
|
|
|
35
35
|
> `readonly` **URL**: `"URL"` = `"URL"`
|
|
36
36
|
|
|
37
37
|
Represents a url.
|
|
38
38
|
|
|
39
|
-
### Date
|
|
39
|
+
### Date {#date}
|
|
40
40
|
|
|
41
41
|
> `readonly` **Date**: `"Date"` = `"Date"`
|
|
42
42
|
|
|
43
43
|
Represents a date as an ISO format string.
|
|
44
44
|
|
|
45
|
-
### DateTime
|
|
45
|
+
### DateTime {#datetime}
|
|
46
46
|
|
|
47
47
|
> `readonly` **DateTime**: `"DateTime"` = `"DateTime"`
|
|
48
48
|
|
|
49
49
|
Represents a date time as an ISO format string.
|
|
50
50
|
|
|
51
|
-
### Time
|
|
51
|
+
### Time {#time}
|
|
52
52
|
|
|
53
53
|
> `readonly` **Time**: `"Time"` = `"Time"`
|
|
54
54
|
|
|
55
55
|
Represents a time as an ISO format string.
|
|
56
56
|
|
|
57
|
-
### Image
|
|
57
|
+
### Image {#image}
|
|
58
58
|
|
|
59
59
|
> `readonly` **Image**: `"image"` = `"image"`
|
|
60
60
|
|
|
61
61
|
Represents a url which points to an image.
|
|
62
62
|
|
|
63
|
-
### GeoCoordinates
|
|
63
|
+
### GeoCoordinates {#geocoordinates}
|
|
64
64
|
|
|
65
65
|
> `readonly` **GeoCoordinates**: `"GeoCoordinates"` = `"GeoCoordinates"`
|
|
66
66
|
|
|
67
67
|
Represents a location.
|
|
68
68
|
|
|
69
|
-
### StructuredValue
|
|
69
|
+
### StructuredValue {#structuredvalue}
|
|
70
70
|
|
|
71
71
|
> `readonly` **StructuredValue**: `"StructuredValue"` = `"StructuredValue"`
|
|
72
72
|
|
|
73
73
|
Represents a structured value.
|
|
74
74
|
|
|
75
|
-
### ItemList
|
|
75
|
+
### ItemList {#itemlist}
|
|
76
76
|
|
|
77
77
|
> `readonly` **ItemList**: `"ItemList"` = `"ItemList"`
|
|
78
78
|
|
|
79
79
|
Represents an item list.
|
|
80
80
|
|
|
81
|
-
### ItemListElement
|
|
81
|
+
### ItemListElement {#itemlistelement}
|
|
82
82
|
|
|
83
83
|
> `readonly` **ItemListElement**: `"itemListElement"` = `"itemListElement"`
|
|
84
84
|
|
|
85
85
|
Represents an item list element.
|
|
86
86
|
|
|
87
|
-
### NextItem
|
|
87
|
+
### NextItem {#nextitem}
|
|
88
88
|
|
|
89
89
|
> `readonly` **NextItem**: `"nextItem"` = `"nextItem"`
|
|
90
90
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/standards-schema-org",
|
|
3
|
-
"version": "0.0.3-next.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.0.3-next.61",
|
|
4
|
+
"description": "Data models for Schema.org vocabularies.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/
|
|
7
|
+
"url": "git+https://github.com/iotaledger/standards.git",
|
|
8
8
|
"directory": "packages/standards-schema-org"
|
|
9
9
|
},
|
|
10
10
|
"author": "martyn.janes@iota.org",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@twin.org/data-json-ld": "next",
|
|
20
20
|
"@twin.org/entity": "next",
|
|
21
21
|
"@twin.org/nameof": "next",
|
|
22
|
-
"schema-dts": "
|
|
22
|
+
"schema-dts": "2.0.0"
|
|
23
23
|
},
|
|
24
24
|
"main": "./dist/es/index.js",
|
|
25
25
|
"types": "./dist/types/index.d.ts",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"seo"
|
|
52
52
|
],
|
|
53
53
|
"bugs": {
|
|
54
|
-
"url": "git+https://github.com/
|
|
54
|
+
"url": "git+https://github.com/iotaledger/standards/issues"
|
|
55
55
|
},
|
|
56
56
|
"homepage": "https://twindev.org"
|
|
57
57
|
}
|