@twin.org/data-json-ld 0.0.1-next.12 → 0.0.1-next.13
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/dist/cjs/index.cjs +57 -49
- package/dist/esm/index.mjs +57 -49
- package/dist/types/models/jsonLdTypes.d.ts +24 -24
- package/docs/changelog.md +1 -1
- package/docs/reference/variables/JsonLdTypes.md +24 -24
- package/locales/en.json +2 -1
- package/package.json +2 -2
package/dist/cjs/index.cjs
CHANGED
|
@@ -19,99 +19,99 @@ const JsonLdTypes = {
|
|
|
19
19
|
/**
|
|
20
20
|
* Represents JSON-LD Document.
|
|
21
21
|
*/
|
|
22
|
-
Document: "
|
|
22
|
+
Document: "JsonLdDocument",
|
|
23
23
|
/**
|
|
24
24
|
* Represents JSON-LD Object.
|
|
25
25
|
*/
|
|
26
|
-
Object: "
|
|
26
|
+
Object: "JsonLdObject",
|
|
27
27
|
/**
|
|
28
28
|
* Represents JSON-LD Node Object.
|
|
29
29
|
*/
|
|
30
|
-
NodeObject: "
|
|
30
|
+
NodeObject: "JsonLdNodeObject",
|
|
31
31
|
/**
|
|
32
32
|
* Represents JSON-LD Node Primitive.
|
|
33
33
|
*/
|
|
34
|
-
NodePrimitive: "
|
|
34
|
+
NodePrimitive: "JsonLdNodePrimitive",
|
|
35
35
|
/**
|
|
36
36
|
* Represents JSON-LD Graph Object.
|
|
37
37
|
*/
|
|
38
|
-
GraphObject: "
|
|
38
|
+
GraphObject: "JsonLdGraphObject",
|
|
39
39
|
/**
|
|
40
40
|
* Represents JSON-LD Value Object.
|
|
41
41
|
*/
|
|
42
|
-
ValueObject: "
|
|
42
|
+
ValueObject: "JsonLdValueObject",
|
|
43
43
|
/**
|
|
44
44
|
* Represents JSON-LD List Object.
|
|
45
45
|
*/
|
|
46
|
-
ListObject: "
|
|
46
|
+
ListObject: "JsonLdListObject",
|
|
47
47
|
/**
|
|
48
48
|
* Represents JSON-LD Set Object.
|
|
49
49
|
*/
|
|
50
|
-
SetObject: "
|
|
50
|
+
SetObject: "JsonLdSetObject",
|
|
51
51
|
/**
|
|
52
52
|
* Represents JSON-LD Language Map.
|
|
53
53
|
*/
|
|
54
|
-
LanguageMap: "
|
|
54
|
+
LanguageMap: "JsonLdLanguageMap",
|
|
55
55
|
/**
|
|
56
56
|
* Represents JSON-LD Index Map.
|
|
57
57
|
*/
|
|
58
|
-
IndexMap: "
|
|
58
|
+
IndexMap: "JsonLdIndexMap",
|
|
59
59
|
/**
|
|
60
60
|
* Represents JSON-LD Index Map Item.
|
|
61
61
|
*/
|
|
62
|
-
IndexMapItem: "
|
|
62
|
+
IndexMapItem: "JsonLdIndexMapItem",
|
|
63
63
|
/**
|
|
64
64
|
* Represents JSON-LD Id Map.
|
|
65
65
|
*/
|
|
66
|
-
IdMap: "
|
|
66
|
+
IdMap: "JsonLdIdMap",
|
|
67
67
|
/**
|
|
68
68
|
* Represents JSON-LD Type Map.
|
|
69
69
|
*/
|
|
70
|
-
TypeMap: "
|
|
70
|
+
TypeMap: "JsonLdTypeMap",
|
|
71
71
|
/**
|
|
72
72
|
* Represents JSON-LD Included block.
|
|
73
73
|
*/
|
|
74
|
-
IncludedBlock: "
|
|
74
|
+
IncludedBlock: "JsonLdIncludedBlock",
|
|
75
75
|
/**
|
|
76
76
|
* Represents JSON-LD Context Definition.
|
|
77
77
|
*/
|
|
78
|
-
ContextDefinition: "
|
|
78
|
+
ContextDefinition: "JsonLdContextDefinition",
|
|
79
79
|
/**
|
|
80
80
|
* Represents JSON-LD Expanded Term Definition.
|
|
81
81
|
*/
|
|
82
|
-
ExpandedTermDefinition: "
|
|
82
|
+
ExpandedTermDefinition: "JsonLdExpandedTermDefinition",
|
|
83
83
|
/**
|
|
84
84
|
* Represents JSON-LD Keyword.
|
|
85
85
|
*/
|
|
86
|
-
Keyword: "
|
|
86
|
+
Keyword: "JsonLdKeyword",
|
|
87
87
|
/**
|
|
88
88
|
* Represents JSON-LD List or Set Item.
|
|
89
89
|
*/
|
|
90
|
-
ListOrSetItem: "
|
|
90
|
+
ListOrSetItem: "JsonLdListOrSetItem",
|
|
91
91
|
/**
|
|
92
92
|
* Represents JSON-LD Container Type.
|
|
93
93
|
*/
|
|
94
|
-
ContainerType: "
|
|
94
|
+
ContainerType: "JsonLdContainerType",
|
|
95
95
|
/**
|
|
96
96
|
* Represents JSON-LD Container Type Array.
|
|
97
97
|
*/
|
|
98
|
-
ContainerTypeArray: "
|
|
98
|
+
ContainerTypeArray: "JsonLdContainerTypeArray",
|
|
99
99
|
/**
|
|
100
100
|
* Represents JSON-LD JSON Primitive.
|
|
101
101
|
*/
|
|
102
|
-
JsonPrimitive: "
|
|
102
|
+
JsonPrimitive: "JsonLdJsonPrimitive",
|
|
103
103
|
/**
|
|
104
104
|
* Represents JSON-LD JSON Array.
|
|
105
105
|
*/
|
|
106
|
-
JsonArray: "
|
|
106
|
+
JsonArray: "JsonLdJsonArray",
|
|
107
107
|
/**
|
|
108
108
|
* Represents JSON-LD JSON Object.
|
|
109
109
|
*/
|
|
110
|
-
JsonObject: "
|
|
110
|
+
JsonObject: "JsonLdJsonObject",
|
|
111
111
|
/**
|
|
112
112
|
* Represents JSON-LD JSON Value.
|
|
113
113
|
*/
|
|
114
|
-
JsonValue: "
|
|
114
|
+
JsonValue: "JsonLdJsonValue"
|
|
115
115
|
};
|
|
116
116
|
|
|
117
117
|
var type$e = "string";
|
|
@@ -1353,103 +1353,103 @@ class JsonLdDataTypes {
|
|
|
1353
1353
|
* Register all the data types.
|
|
1354
1354
|
*/
|
|
1355
1355
|
static registerTypes() {
|
|
1356
|
-
dataCore.DataTypeHandlerFactory.register(JsonLdTypes.Document
|
|
1356
|
+
dataCore.DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.Document}`, () => ({
|
|
1357
1357
|
type: JsonLdTypes.Document,
|
|
1358
1358
|
jsonSchema: async () => JsonLdDocumentSchema
|
|
1359
1359
|
}));
|
|
1360
|
-
dataCore.DataTypeHandlerFactory.register(JsonLdTypes.Object
|
|
1360
|
+
dataCore.DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.Object}`, () => ({
|
|
1361
1361
|
type: JsonLdTypes.Object,
|
|
1362
1362
|
jsonSchema: async () => JsonLdObjectSchema
|
|
1363
1363
|
}));
|
|
1364
|
-
dataCore.DataTypeHandlerFactory.register(JsonLdTypes.NodeObject
|
|
1364
|
+
dataCore.DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.NodeObject}`, () => ({
|
|
1365
1365
|
type: JsonLdTypes.NodeObject,
|
|
1366
1366
|
jsonSchema: async () => JsonLdNodeObjectSchema
|
|
1367
1367
|
}));
|
|
1368
|
-
dataCore.DataTypeHandlerFactory.register(JsonLdTypes.NodePrimitive
|
|
1368
|
+
dataCore.DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.NodePrimitive}`, () => ({
|
|
1369
1369
|
type: JsonLdTypes.NodePrimitive,
|
|
1370
1370
|
jsonSchema: async () => JsonLdNodePrimitiveSchema
|
|
1371
1371
|
}));
|
|
1372
|
-
dataCore.DataTypeHandlerFactory.register(JsonLdTypes.GraphObject
|
|
1372
|
+
dataCore.DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.GraphObject}`, () => ({
|
|
1373
1373
|
type: JsonLdTypes.GraphObject,
|
|
1374
1374
|
jsonSchema: async () => JsonLdGraphObjectSchema
|
|
1375
1375
|
}));
|
|
1376
|
-
dataCore.DataTypeHandlerFactory.register(JsonLdTypes.ValueObject
|
|
1376
|
+
dataCore.DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.ValueObject}`, () => ({
|
|
1377
1377
|
type: JsonLdTypes.ValueObject,
|
|
1378
1378
|
jsonSchema: async () => JsonLdValueObjectSchema
|
|
1379
1379
|
}));
|
|
1380
|
-
dataCore.DataTypeHandlerFactory.register(JsonLdTypes.ListObject
|
|
1380
|
+
dataCore.DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.ListObject}`, () => ({
|
|
1381
1381
|
type: JsonLdTypes.ListObject,
|
|
1382
1382
|
jsonSchema: async () => JsonLdListObjectSchema
|
|
1383
1383
|
}));
|
|
1384
|
-
dataCore.DataTypeHandlerFactory.register(JsonLdTypes.ListObject
|
|
1384
|
+
dataCore.DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.ListObject}`, () => ({
|
|
1385
1385
|
type: JsonLdTypes.ListObject,
|
|
1386
1386
|
jsonSchema: async () => JsonLdListObjectSchema
|
|
1387
1387
|
}));
|
|
1388
|
-
dataCore.DataTypeHandlerFactory.register(JsonLdTypes.SetObject
|
|
1388
|
+
dataCore.DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.SetObject}`, () => ({
|
|
1389
1389
|
type: JsonLdTypes.SetObject,
|
|
1390
1390
|
jsonSchema: async () => JsonLdSetObjectSchema
|
|
1391
1391
|
}));
|
|
1392
|
-
dataCore.DataTypeHandlerFactory.register(JsonLdTypes.LanguageMap
|
|
1392
|
+
dataCore.DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.LanguageMap}`, () => ({
|
|
1393
1393
|
type: JsonLdTypes.LanguageMap,
|
|
1394
1394
|
jsonSchema: async () => JsonLdLanguageMapSchema
|
|
1395
1395
|
}));
|
|
1396
|
-
dataCore.DataTypeHandlerFactory.register(JsonLdTypes.IndexMap
|
|
1396
|
+
dataCore.DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.IndexMap}`, () => ({
|
|
1397
1397
|
type: JsonLdTypes.IndexMap,
|
|
1398
1398
|
jsonSchema: async () => JsonLdIndexMapSchema
|
|
1399
1399
|
}));
|
|
1400
|
-
dataCore.DataTypeHandlerFactory.register(JsonLdTypes.IndexMapItem
|
|
1400
|
+
dataCore.DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.IndexMapItem}`, () => ({
|
|
1401
1401
|
type: JsonLdTypes.IndexMapItem,
|
|
1402
1402
|
jsonSchema: async () => JsonLdIndexMapItemSchema
|
|
1403
1403
|
}));
|
|
1404
|
-
dataCore.DataTypeHandlerFactory.register(JsonLdTypes.IdMap
|
|
1404
|
+
dataCore.DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.IdMap}`, () => ({
|
|
1405
1405
|
type: JsonLdTypes.IdMap,
|
|
1406
1406
|
jsonSchema: async () => JsonLdIdMapSchema
|
|
1407
1407
|
}));
|
|
1408
|
-
dataCore.DataTypeHandlerFactory.register(JsonLdTypes.TypeMap
|
|
1408
|
+
dataCore.DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.TypeMap}`, () => ({
|
|
1409
1409
|
type: JsonLdTypes.TypeMap,
|
|
1410
1410
|
jsonSchema: async () => JsonLdTypeMapSchema
|
|
1411
1411
|
}));
|
|
1412
|
-
dataCore.DataTypeHandlerFactory.register(JsonLdTypes.IncludedBlock
|
|
1412
|
+
dataCore.DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.IncludedBlock}`, () => ({
|
|
1413
1413
|
type: JsonLdTypes.IncludedBlock,
|
|
1414
1414
|
jsonSchema: async () => JsonLdIncludedBlockSchema
|
|
1415
1415
|
}));
|
|
1416
|
-
dataCore.DataTypeHandlerFactory.register(JsonLdTypes.ContextDefinition
|
|
1416
|
+
dataCore.DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.ContextDefinition}`, () => ({
|
|
1417
1417
|
type: JsonLdTypes.ContextDefinition,
|
|
1418
1418
|
jsonSchema: async () => JsonLdContextDefinitionSchema
|
|
1419
1419
|
}));
|
|
1420
|
-
dataCore.DataTypeHandlerFactory.register(JsonLdTypes.ExpandedTermDefinition
|
|
1420
|
+
dataCore.DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.ExpandedTermDefinition}`, () => ({
|
|
1421
1421
|
type: JsonLdTypes.ExpandedTermDefinition,
|
|
1422
1422
|
jsonSchema: async () => JsonLdExpandedTermDefinitionSchema
|
|
1423
1423
|
}));
|
|
1424
|
-
dataCore.DataTypeHandlerFactory.register(JsonLdTypes.Keyword
|
|
1424
|
+
dataCore.DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.Keyword}`, () => ({
|
|
1425
1425
|
type: JsonLdTypes.Keyword,
|
|
1426
1426
|
jsonSchema: async () => JsonLdKeywordSchema
|
|
1427
1427
|
}));
|
|
1428
|
-
dataCore.DataTypeHandlerFactory.register(JsonLdTypes.ListOrSetItem
|
|
1428
|
+
dataCore.DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.ListOrSetItem}`, () => ({
|
|
1429
1429
|
type: JsonLdTypes.ListOrSetItem,
|
|
1430
1430
|
jsonSchema: async () => JsonLdListOrSetItemSchema
|
|
1431
1431
|
}));
|
|
1432
|
-
dataCore.DataTypeHandlerFactory.register(JsonLdTypes.ContainerType
|
|
1432
|
+
dataCore.DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.ContainerType}`, () => ({
|
|
1433
1433
|
type: JsonLdTypes.ContainerType,
|
|
1434
1434
|
jsonSchema: async () => JsonLdContainerTypeSchema
|
|
1435
1435
|
}));
|
|
1436
|
-
dataCore.DataTypeHandlerFactory.register(JsonLdTypes.ContainerTypeArray
|
|
1436
|
+
dataCore.DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.ContainerTypeArray}`, () => ({
|
|
1437
1437
|
type: JsonLdTypes.ContainerTypeArray,
|
|
1438
1438
|
jsonSchema: async () => JsonLdContainerTypeArraySchema
|
|
1439
1439
|
}));
|
|
1440
|
-
dataCore.DataTypeHandlerFactory.register(JsonLdTypes.JsonPrimitive
|
|
1440
|
+
dataCore.DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.JsonPrimitive}`, () => ({
|
|
1441
1441
|
type: JsonLdTypes.JsonPrimitive,
|
|
1442
1442
|
jsonSchema: async () => JsonLdJsonPrimitiveSchema
|
|
1443
1443
|
}));
|
|
1444
|
-
dataCore.DataTypeHandlerFactory.register(JsonLdTypes.JsonArray
|
|
1444
|
+
dataCore.DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.JsonArray}`, () => ({
|
|
1445
1445
|
type: JsonLdTypes.JsonArray,
|
|
1446
1446
|
jsonSchema: async () => JsonLdJsonArraySchema
|
|
1447
1447
|
}));
|
|
1448
|
-
dataCore.DataTypeHandlerFactory.register(JsonLdTypes.JsonObject
|
|
1448
|
+
dataCore.DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.JsonObject}`, () => ({
|
|
1449
1449
|
type: JsonLdTypes.JsonObject,
|
|
1450
1450
|
jsonSchema: async () => JsonLdJsonObjectSchema
|
|
1451
1451
|
}));
|
|
1452
|
-
dataCore.DataTypeHandlerFactory.register(JsonLdTypes.JsonValue
|
|
1452
|
+
dataCore.DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.JsonValue}`, () => ({
|
|
1453
1453
|
type: JsonLdTypes.JsonValue,
|
|
1454
1454
|
jsonSchema: async () => JsonLdJsonValueSchema
|
|
1455
1455
|
}));
|
|
@@ -1548,6 +1548,10 @@ class JsonLdProcessor {
|
|
|
1548
1548
|
err.name === "jsonld.InvalidUrl") {
|
|
1549
1549
|
throw new core.GeneralError(JsonLdProcessor._CLASS_NAME, "invalidUrl", { url: err.details?.url }, err);
|
|
1550
1550
|
}
|
|
1551
|
+
else if (core.Is.object(err) &&
|
|
1552
|
+
err.name.startsWith("jsonld.")) {
|
|
1553
|
+
throw new core.GeneralError(JsonLdProcessor._CLASS_NAME, "jsonldError", err.details, err);
|
|
1554
|
+
}
|
|
1551
1555
|
throw new core.GeneralError(JsonLdProcessor._CLASS_NAME, "compact", undefined, err);
|
|
1552
1556
|
}
|
|
1553
1557
|
}
|
|
@@ -1568,6 +1572,10 @@ class JsonLdProcessor {
|
|
|
1568
1572
|
err.name === "jsonld.InvalidUrl") {
|
|
1569
1573
|
throw new core.GeneralError(JsonLdProcessor._CLASS_NAME, "invalidUrl", { url: err.details?.url }, err);
|
|
1570
1574
|
}
|
|
1575
|
+
else if (core.Is.object(err) &&
|
|
1576
|
+
err.name.startsWith("jsonld.")) {
|
|
1577
|
+
throw new core.GeneralError(JsonLdProcessor._CLASS_NAME, "jsonldError", err.details, err);
|
|
1578
|
+
}
|
|
1571
1579
|
throw new core.GeneralError(JsonLdProcessor._CLASS_NAME, "expand", undefined, err);
|
|
1572
1580
|
}
|
|
1573
1581
|
}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -17,99 +17,99 @@ const JsonLdTypes = {
|
|
|
17
17
|
/**
|
|
18
18
|
* Represents JSON-LD Document.
|
|
19
19
|
*/
|
|
20
|
-
Document: "
|
|
20
|
+
Document: "JsonLdDocument",
|
|
21
21
|
/**
|
|
22
22
|
* Represents JSON-LD Object.
|
|
23
23
|
*/
|
|
24
|
-
Object: "
|
|
24
|
+
Object: "JsonLdObject",
|
|
25
25
|
/**
|
|
26
26
|
* Represents JSON-LD Node Object.
|
|
27
27
|
*/
|
|
28
|
-
NodeObject: "
|
|
28
|
+
NodeObject: "JsonLdNodeObject",
|
|
29
29
|
/**
|
|
30
30
|
* Represents JSON-LD Node Primitive.
|
|
31
31
|
*/
|
|
32
|
-
NodePrimitive: "
|
|
32
|
+
NodePrimitive: "JsonLdNodePrimitive",
|
|
33
33
|
/**
|
|
34
34
|
* Represents JSON-LD Graph Object.
|
|
35
35
|
*/
|
|
36
|
-
GraphObject: "
|
|
36
|
+
GraphObject: "JsonLdGraphObject",
|
|
37
37
|
/**
|
|
38
38
|
* Represents JSON-LD Value Object.
|
|
39
39
|
*/
|
|
40
|
-
ValueObject: "
|
|
40
|
+
ValueObject: "JsonLdValueObject",
|
|
41
41
|
/**
|
|
42
42
|
* Represents JSON-LD List Object.
|
|
43
43
|
*/
|
|
44
|
-
ListObject: "
|
|
44
|
+
ListObject: "JsonLdListObject",
|
|
45
45
|
/**
|
|
46
46
|
* Represents JSON-LD Set Object.
|
|
47
47
|
*/
|
|
48
|
-
SetObject: "
|
|
48
|
+
SetObject: "JsonLdSetObject",
|
|
49
49
|
/**
|
|
50
50
|
* Represents JSON-LD Language Map.
|
|
51
51
|
*/
|
|
52
|
-
LanguageMap: "
|
|
52
|
+
LanguageMap: "JsonLdLanguageMap",
|
|
53
53
|
/**
|
|
54
54
|
* Represents JSON-LD Index Map.
|
|
55
55
|
*/
|
|
56
|
-
IndexMap: "
|
|
56
|
+
IndexMap: "JsonLdIndexMap",
|
|
57
57
|
/**
|
|
58
58
|
* Represents JSON-LD Index Map Item.
|
|
59
59
|
*/
|
|
60
|
-
IndexMapItem: "
|
|
60
|
+
IndexMapItem: "JsonLdIndexMapItem",
|
|
61
61
|
/**
|
|
62
62
|
* Represents JSON-LD Id Map.
|
|
63
63
|
*/
|
|
64
|
-
IdMap: "
|
|
64
|
+
IdMap: "JsonLdIdMap",
|
|
65
65
|
/**
|
|
66
66
|
* Represents JSON-LD Type Map.
|
|
67
67
|
*/
|
|
68
|
-
TypeMap: "
|
|
68
|
+
TypeMap: "JsonLdTypeMap",
|
|
69
69
|
/**
|
|
70
70
|
* Represents JSON-LD Included block.
|
|
71
71
|
*/
|
|
72
|
-
IncludedBlock: "
|
|
72
|
+
IncludedBlock: "JsonLdIncludedBlock",
|
|
73
73
|
/**
|
|
74
74
|
* Represents JSON-LD Context Definition.
|
|
75
75
|
*/
|
|
76
|
-
ContextDefinition: "
|
|
76
|
+
ContextDefinition: "JsonLdContextDefinition",
|
|
77
77
|
/**
|
|
78
78
|
* Represents JSON-LD Expanded Term Definition.
|
|
79
79
|
*/
|
|
80
|
-
ExpandedTermDefinition: "
|
|
80
|
+
ExpandedTermDefinition: "JsonLdExpandedTermDefinition",
|
|
81
81
|
/**
|
|
82
82
|
* Represents JSON-LD Keyword.
|
|
83
83
|
*/
|
|
84
|
-
Keyword: "
|
|
84
|
+
Keyword: "JsonLdKeyword",
|
|
85
85
|
/**
|
|
86
86
|
* Represents JSON-LD List or Set Item.
|
|
87
87
|
*/
|
|
88
|
-
ListOrSetItem: "
|
|
88
|
+
ListOrSetItem: "JsonLdListOrSetItem",
|
|
89
89
|
/**
|
|
90
90
|
* Represents JSON-LD Container Type.
|
|
91
91
|
*/
|
|
92
|
-
ContainerType: "
|
|
92
|
+
ContainerType: "JsonLdContainerType",
|
|
93
93
|
/**
|
|
94
94
|
* Represents JSON-LD Container Type Array.
|
|
95
95
|
*/
|
|
96
|
-
ContainerTypeArray: "
|
|
96
|
+
ContainerTypeArray: "JsonLdContainerTypeArray",
|
|
97
97
|
/**
|
|
98
98
|
* Represents JSON-LD JSON Primitive.
|
|
99
99
|
*/
|
|
100
|
-
JsonPrimitive: "
|
|
100
|
+
JsonPrimitive: "JsonLdJsonPrimitive",
|
|
101
101
|
/**
|
|
102
102
|
* Represents JSON-LD JSON Array.
|
|
103
103
|
*/
|
|
104
|
-
JsonArray: "
|
|
104
|
+
JsonArray: "JsonLdJsonArray",
|
|
105
105
|
/**
|
|
106
106
|
* Represents JSON-LD JSON Object.
|
|
107
107
|
*/
|
|
108
|
-
JsonObject: "
|
|
108
|
+
JsonObject: "JsonLdJsonObject",
|
|
109
109
|
/**
|
|
110
110
|
* Represents JSON-LD JSON Value.
|
|
111
111
|
*/
|
|
112
|
-
JsonValue: "
|
|
112
|
+
JsonValue: "JsonLdJsonValue"
|
|
113
113
|
};
|
|
114
114
|
|
|
115
115
|
var type$e = "string";
|
|
@@ -1351,103 +1351,103 @@ class JsonLdDataTypes {
|
|
|
1351
1351
|
* Register all the data types.
|
|
1352
1352
|
*/
|
|
1353
1353
|
static registerTypes() {
|
|
1354
|
-
DataTypeHandlerFactory.register(JsonLdTypes.Document
|
|
1354
|
+
DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.Document}`, () => ({
|
|
1355
1355
|
type: JsonLdTypes.Document,
|
|
1356
1356
|
jsonSchema: async () => JsonLdDocumentSchema
|
|
1357
1357
|
}));
|
|
1358
|
-
DataTypeHandlerFactory.register(JsonLdTypes.Object
|
|
1358
|
+
DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.Object}`, () => ({
|
|
1359
1359
|
type: JsonLdTypes.Object,
|
|
1360
1360
|
jsonSchema: async () => JsonLdObjectSchema
|
|
1361
1361
|
}));
|
|
1362
|
-
DataTypeHandlerFactory.register(JsonLdTypes.NodeObject
|
|
1362
|
+
DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.NodeObject}`, () => ({
|
|
1363
1363
|
type: JsonLdTypes.NodeObject,
|
|
1364
1364
|
jsonSchema: async () => JsonLdNodeObjectSchema
|
|
1365
1365
|
}));
|
|
1366
|
-
DataTypeHandlerFactory.register(JsonLdTypes.NodePrimitive
|
|
1366
|
+
DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.NodePrimitive}`, () => ({
|
|
1367
1367
|
type: JsonLdTypes.NodePrimitive,
|
|
1368
1368
|
jsonSchema: async () => JsonLdNodePrimitiveSchema
|
|
1369
1369
|
}));
|
|
1370
|
-
DataTypeHandlerFactory.register(JsonLdTypes.GraphObject
|
|
1370
|
+
DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.GraphObject}`, () => ({
|
|
1371
1371
|
type: JsonLdTypes.GraphObject,
|
|
1372
1372
|
jsonSchema: async () => JsonLdGraphObjectSchema
|
|
1373
1373
|
}));
|
|
1374
|
-
DataTypeHandlerFactory.register(JsonLdTypes.ValueObject
|
|
1374
|
+
DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.ValueObject}`, () => ({
|
|
1375
1375
|
type: JsonLdTypes.ValueObject,
|
|
1376
1376
|
jsonSchema: async () => JsonLdValueObjectSchema
|
|
1377
1377
|
}));
|
|
1378
|
-
DataTypeHandlerFactory.register(JsonLdTypes.ListObject
|
|
1378
|
+
DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.ListObject}`, () => ({
|
|
1379
1379
|
type: JsonLdTypes.ListObject,
|
|
1380
1380
|
jsonSchema: async () => JsonLdListObjectSchema
|
|
1381
1381
|
}));
|
|
1382
|
-
DataTypeHandlerFactory.register(JsonLdTypes.ListObject
|
|
1382
|
+
DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.ListObject}`, () => ({
|
|
1383
1383
|
type: JsonLdTypes.ListObject,
|
|
1384
1384
|
jsonSchema: async () => JsonLdListObjectSchema
|
|
1385
1385
|
}));
|
|
1386
|
-
DataTypeHandlerFactory.register(JsonLdTypes.SetObject
|
|
1386
|
+
DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.SetObject}`, () => ({
|
|
1387
1387
|
type: JsonLdTypes.SetObject,
|
|
1388
1388
|
jsonSchema: async () => JsonLdSetObjectSchema
|
|
1389
1389
|
}));
|
|
1390
|
-
DataTypeHandlerFactory.register(JsonLdTypes.LanguageMap
|
|
1390
|
+
DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.LanguageMap}`, () => ({
|
|
1391
1391
|
type: JsonLdTypes.LanguageMap,
|
|
1392
1392
|
jsonSchema: async () => JsonLdLanguageMapSchema
|
|
1393
1393
|
}));
|
|
1394
|
-
DataTypeHandlerFactory.register(JsonLdTypes.IndexMap
|
|
1394
|
+
DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.IndexMap}`, () => ({
|
|
1395
1395
|
type: JsonLdTypes.IndexMap,
|
|
1396
1396
|
jsonSchema: async () => JsonLdIndexMapSchema
|
|
1397
1397
|
}));
|
|
1398
|
-
DataTypeHandlerFactory.register(JsonLdTypes.IndexMapItem
|
|
1398
|
+
DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.IndexMapItem}`, () => ({
|
|
1399
1399
|
type: JsonLdTypes.IndexMapItem,
|
|
1400
1400
|
jsonSchema: async () => JsonLdIndexMapItemSchema
|
|
1401
1401
|
}));
|
|
1402
|
-
DataTypeHandlerFactory.register(JsonLdTypes.IdMap
|
|
1402
|
+
DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.IdMap}`, () => ({
|
|
1403
1403
|
type: JsonLdTypes.IdMap,
|
|
1404
1404
|
jsonSchema: async () => JsonLdIdMapSchema
|
|
1405
1405
|
}));
|
|
1406
|
-
DataTypeHandlerFactory.register(JsonLdTypes.TypeMap
|
|
1406
|
+
DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.TypeMap}`, () => ({
|
|
1407
1407
|
type: JsonLdTypes.TypeMap,
|
|
1408
1408
|
jsonSchema: async () => JsonLdTypeMapSchema
|
|
1409
1409
|
}));
|
|
1410
|
-
DataTypeHandlerFactory.register(JsonLdTypes.IncludedBlock
|
|
1410
|
+
DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.IncludedBlock}`, () => ({
|
|
1411
1411
|
type: JsonLdTypes.IncludedBlock,
|
|
1412
1412
|
jsonSchema: async () => JsonLdIncludedBlockSchema
|
|
1413
1413
|
}));
|
|
1414
|
-
DataTypeHandlerFactory.register(JsonLdTypes.ContextDefinition
|
|
1414
|
+
DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.ContextDefinition}`, () => ({
|
|
1415
1415
|
type: JsonLdTypes.ContextDefinition,
|
|
1416
1416
|
jsonSchema: async () => JsonLdContextDefinitionSchema
|
|
1417
1417
|
}));
|
|
1418
|
-
DataTypeHandlerFactory.register(JsonLdTypes.ExpandedTermDefinition
|
|
1418
|
+
DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.ExpandedTermDefinition}`, () => ({
|
|
1419
1419
|
type: JsonLdTypes.ExpandedTermDefinition,
|
|
1420
1420
|
jsonSchema: async () => JsonLdExpandedTermDefinitionSchema
|
|
1421
1421
|
}));
|
|
1422
|
-
DataTypeHandlerFactory.register(JsonLdTypes.Keyword
|
|
1422
|
+
DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.Keyword}`, () => ({
|
|
1423
1423
|
type: JsonLdTypes.Keyword,
|
|
1424
1424
|
jsonSchema: async () => JsonLdKeywordSchema
|
|
1425
1425
|
}));
|
|
1426
|
-
DataTypeHandlerFactory.register(JsonLdTypes.ListOrSetItem
|
|
1426
|
+
DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.ListOrSetItem}`, () => ({
|
|
1427
1427
|
type: JsonLdTypes.ListOrSetItem,
|
|
1428
1428
|
jsonSchema: async () => JsonLdListOrSetItemSchema
|
|
1429
1429
|
}));
|
|
1430
|
-
DataTypeHandlerFactory.register(JsonLdTypes.ContainerType
|
|
1430
|
+
DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.ContainerType}`, () => ({
|
|
1431
1431
|
type: JsonLdTypes.ContainerType,
|
|
1432
1432
|
jsonSchema: async () => JsonLdContainerTypeSchema
|
|
1433
1433
|
}));
|
|
1434
|
-
DataTypeHandlerFactory.register(JsonLdTypes.ContainerTypeArray
|
|
1434
|
+
DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.ContainerTypeArray}`, () => ({
|
|
1435
1435
|
type: JsonLdTypes.ContainerTypeArray,
|
|
1436
1436
|
jsonSchema: async () => JsonLdContainerTypeArraySchema
|
|
1437
1437
|
}));
|
|
1438
|
-
DataTypeHandlerFactory.register(JsonLdTypes.JsonPrimitive
|
|
1438
|
+
DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.JsonPrimitive}`, () => ({
|
|
1439
1439
|
type: JsonLdTypes.JsonPrimitive,
|
|
1440
1440
|
jsonSchema: async () => JsonLdJsonPrimitiveSchema
|
|
1441
1441
|
}));
|
|
1442
|
-
DataTypeHandlerFactory.register(JsonLdTypes.JsonArray
|
|
1442
|
+
DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.JsonArray}`, () => ({
|
|
1443
1443
|
type: JsonLdTypes.JsonArray,
|
|
1444
1444
|
jsonSchema: async () => JsonLdJsonArraySchema
|
|
1445
1445
|
}));
|
|
1446
|
-
DataTypeHandlerFactory.register(JsonLdTypes.JsonObject
|
|
1446
|
+
DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.JsonObject}`, () => ({
|
|
1447
1447
|
type: JsonLdTypes.JsonObject,
|
|
1448
1448
|
jsonSchema: async () => JsonLdJsonObjectSchema
|
|
1449
1449
|
}));
|
|
1450
|
-
DataTypeHandlerFactory.register(JsonLdTypes.JsonValue
|
|
1450
|
+
DataTypeHandlerFactory.register(`${JsonLdTypes.ContextRoot}${JsonLdTypes.JsonValue}`, () => ({
|
|
1451
1451
|
type: JsonLdTypes.JsonValue,
|
|
1452
1452
|
jsonSchema: async () => JsonLdJsonValueSchema
|
|
1453
1453
|
}));
|
|
@@ -1546,6 +1546,10 @@ class JsonLdProcessor {
|
|
|
1546
1546
|
err.name === "jsonld.InvalidUrl") {
|
|
1547
1547
|
throw new GeneralError(JsonLdProcessor._CLASS_NAME, "invalidUrl", { url: err.details?.url }, err);
|
|
1548
1548
|
}
|
|
1549
|
+
else if (Is.object(err) &&
|
|
1550
|
+
err.name.startsWith("jsonld.")) {
|
|
1551
|
+
throw new GeneralError(JsonLdProcessor._CLASS_NAME, "jsonldError", err.details, err);
|
|
1552
|
+
}
|
|
1549
1553
|
throw new GeneralError(JsonLdProcessor._CLASS_NAME, "compact", undefined, err);
|
|
1550
1554
|
}
|
|
1551
1555
|
}
|
|
@@ -1566,6 +1570,10 @@ class JsonLdProcessor {
|
|
|
1566
1570
|
err.name === "jsonld.InvalidUrl") {
|
|
1567
1571
|
throw new GeneralError(JsonLdProcessor._CLASS_NAME, "invalidUrl", { url: err.details?.url }, err);
|
|
1568
1572
|
}
|
|
1573
|
+
else if (Is.object(err) &&
|
|
1574
|
+
err.name.startsWith("jsonld.")) {
|
|
1575
|
+
throw new GeneralError(JsonLdProcessor._CLASS_NAME, "jsonldError", err.details, err);
|
|
1576
|
+
}
|
|
1569
1577
|
throw new GeneralError(JsonLdProcessor._CLASS_NAME, "expand", undefined, err);
|
|
1570
1578
|
}
|
|
1571
1579
|
}
|
|
@@ -9,99 +9,99 @@ export declare const JsonLdTypes: {
|
|
|
9
9
|
/**
|
|
10
10
|
* Represents JSON-LD Document.
|
|
11
11
|
*/
|
|
12
|
-
readonly Document: "
|
|
12
|
+
readonly Document: "JsonLdDocument";
|
|
13
13
|
/**
|
|
14
14
|
* Represents JSON-LD Object.
|
|
15
15
|
*/
|
|
16
|
-
readonly Object: "
|
|
16
|
+
readonly Object: "JsonLdObject";
|
|
17
17
|
/**
|
|
18
18
|
* Represents JSON-LD Node Object.
|
|
19
19
|
*/
|
|
20
|
-
readonly NodeObject: "
|
|
20
|
+
readonly NodeObject: "JsonLdNodeObject";
|
|
21
21
|
/**
|
|
22
22
|
* Represents JSON-LD Node Primitive.
|
|
23
23
|
*/
|
|
24
|
-
readonly NodePrimitive: "
|
|
24
|
+
readonly NodePrimitive: "JsonLdNodePrimitive";
|
|
25
25
|
/**
|
|
26
26
|
* Represents JSON-LD Graph Object.
|
|
27
27
|
*/
|
|
28
|
-
readonly GraphObject: "
|
|
28
|
+
readonly GraphObject: "JsonLdGraphObject";
|
|
29
29
|
/**
|
|
30
30
|
* Represents JSON-LD Value Object.
|
|
31
31
|
*/
|
|
32
|
-
readonly ValueObject: "
|
|
32
|
+
readonly ValueObject: "JsonLdValueObject";
|
|
33
33
|
/**
|
|
34
34
|
* Represents JSON-LD List Object.
|
|
35
35
|
*/
|
|
36
|
-
readonly ListObject: "
|
|
36
|
+
readonly ListObject: "JsonLdListObject";
|
|
37
37
|
/**
|
|
38
38
|
* Represents JSON-LD Set Object.
|
|
39
39
|
*/
|
|
40
|
-
readonly SetObject: "
|
|
40
|
+
readonly SetObject: "JsonLdSetObject";
|
|
41
41
|
/**
|
|
42
42
|
* Represents JSON-LD Language Map.
|
|
43
43
|
*/
|
|
44
|
-
readonly LanguageMap: "
|
|
44
|
+
readonly LanguageMap: "JsonLdLanguageMap";
|
|
45
45
|
/**
|
|
46
46
|
* Represents JSON-LD Index Map.
|
|
47
47
|
*/
|
|
48
|
-
readonly IndexMap: "
|
|
48
|
+
readonly IndexMap: "JsonLdIndexMap";
|
|
49
49
|
/**
|
|
50
50
|
* Represents JSON-LD Index Map Item.
|
|
51
51
|
*/
|
|
52
|
-
readonly IndexMapItem: "
|
|
52
|
+
readonly IndexMapItem: "JsonLdIndexMapItem";
|
|
53
53
|
/**
|
|
54
54
|
* Represents JSON-LD Id Map.
|
|
55
55
|
*/
|
|
56
|
-
readonly IdMap: "
|
|
56
|
+
readonly IdMap: "JsonLdIdMap";
|
|
57
57
|
/**
|
|
58
58
|
* Represents JSON-LD Type Map.
|
|
59
59
|
*/
|
|
60
|
-
readonly TypeMap: "
|
|
60
|
+
readonly TypeMap: "JsonLdTypeMap";
|
|
61
61
|
/**
|
|
62
62
|
* Represents JSON-LD Included block.
|
|
63
63
|
*/
|
|
64
|
-
readonly IncludedBlock: "
|
|
64
|
+
readonly IncludedBlock: "JsonLdIncludedBlock";
|
|
65
65
|
/**
|
|
66
66
|
* Represents JSON-LD Context Definition.
|
|
67
67
|
*/
|
|
68
|
-
readonly ContextDefinition: "
|
|
68
|
+
readonly ContextDefinition: "JsonLdContextDefinition";
|
|
69
69
|
/**
|
|
70
70
|
* Represents JSON-LD Expanded Term Definition.
|
|
71
71
|
*/
|
|
72
|
-
readonly ExpandedTermDefinition: "
|
|
72
|
+
readonly ExpandedTermDefinition: "JsonLdExpandedTermDefinition";
|
|
73
73
|
/**
|
|
74
74
|
* Represents JSON-LD Keyword.
|
|
75
75
|
*/
|
|
76
|
-
readonly Keyword: "
|
|
76
|
+
readonly Keyword: "JsonLdKeyword";
|
|
77
77
|
/**
|
|
78
78
|
* Represents JSON-LD List or Set Item.
|
|
79
79
|
*/
|
|
80
|
-
readonly ListOrSetItem: "
|
|
80
|
+
readonly ListOrSetItem: "JsonLdListOrSetItem";
|
|
81
81
|
/**
|
|
82
82
|
* Represents JSON-LD Container Type.
|
|
83
83
|
*/
|
|
84
|
-
readonly ContainerType: "
|
|
84
|
+
readonly ContainerType: "JsonLdContainerType";
|
|
85
85
|
/**
|
|
86
86
|
* Represents JSON-LD Container Type Array.
|
|
87
87
|
*/
|
|
88
|
-
readonly ContainerTypeArray: "
|
|
88
|
+
readonly ContainerTypeArray: "JsonLdContainerTypeArray";
|
|
89
89
|
/**
|
|
90
90
|
* Represents JSON-LD JSON Primitive.
|
|
91
91
|
*/
|
|
92
|
-
readonly JsonPrimitive: "
|
|
92
|
+
readonly JsonPrimitive: "JsonLdJsonPrimitive";
|
|
93
93
|
/**
|
|
94
94
|
* Represents JSON-LD JSON Array.
|
|
95
95
|
*/
|
|
96
|
-
readonly JsonArray: "
|
|
96
|
+
readonly JsonArray: "JsonLdJsonArray";
|
|
97
97
|
/**
|
|
98
98
|
* Represents JSON-LD JSON Object.
|
|
99
99
|
*/
|
|
100
|
-
readonly JsonObject: "
|
|
100
|
+
readonly JsonObject: "JsonLdJsonObject";
|
|
101
101
|
/**
|
|
102
102
|
* Represents JSON-LD JSON Value.
|
|
103
103
|
*/
|
|
104
|
-
readonly JsonValue: "
|
|
104
|
+
readonly JsonValue: "JsonLdJsonValue";
|
|
105
105
|
};
|
|
106
106
|
/**
|
|
107
107
|
* The types of JSON-LD data.
|
package/docs/changelog.md
CHANGED
|
@@ -14,144 +14,144 @@ Context Root.
|
|
|
14
14
|
|
|
15
15
|
### Document
|
|
16
16
|
|
|
17
|
-
> `readonly` **Document**: `"
|
|
17
|
+
> `readonly` **Document**: `"JsonLdDocument"` = `"JsonLdDocument"`
|
|
18
18
|
|
|
19
19
|
Represents JSON-LD Document.
|
|
20
20
|
|
|
21
21
|
### Object
|
|
22
22
|
|
|
23
|
-
> `readonly` **Object**: `"
|
|
23
|
+
> `readonly` **Object**: `"JsonLdObject"` = `"JsonLdObject"`
|
|
24
24
|
|
|
25
25
|
Represents JSON-LD Object.
|
|
26
26
|
|
|
27
27
|
### NodeObject
|
|
28
28
|
|
|
29
|
-
> `readonly` **NodeObject**: `"
|
|
29
|
+
> `readonly` **NodeObject**: `"JsonLdNodeObject"` = `"JsonLdNodeObject"`
|
|
30
30
|
|
|
31
31
|
Represents JSON-LD Node Object.
|
|
32
32
|
|
|
33
33
|
### NodePrimitive
|
|
34
34
|
|
|
35
|
-
> `readonly` **NodePrimitive**: `"
|
|
35
|
+
> `readonly` **NodePrimitive**: `"JsonLdNodePrimitive"` = `"JsonLdNodePrimitive"`
|
|
36
36
|
|
|
37
37
|
Represents JSON-LD Node Primitive.
|
|
38
38
|
|
|
39
39
|
### GraphObject
|
|
40
40
|
|
|
41
|
-
> `readonly` **GraphObject**: `"
|
|
41
|
+
> `readonly` **GraphObject**: `"JsonLdGraphObject"` = `"JsonLdGraphObject"`
|
|
42
42
|
|
|
43
43
|
Represents JSON-LD Graph Object.
|
|
44
44
|
|
|
45
45
|
### ValueObject
|
|
46
46
|
|
|
47
|
-
> `readonly` **ValueObject**: `"
|
|
47
|
+
> `readonly` **ValueObject**: `"JsonLdValueObject"` = `"JsonLdValueObject"`
|
|
48
48
|
|
|
49
49
|
Represents JSON-LD Value Object.
|
|
50
50
|
|
|
51
51
|
### ListObject
|
|
52
52
|
|
|
53
|
-
> `readonly` **ListObject**: `"
|
|
53
|
+
> `readonly` **ListObject**: `"JsonLdListObject"` = `"JsonLdListObject"`
|
|
54
54
|
|
|
55
55
|
Represents JSON-LD List Object.
|
|
56
56
|
|
|
57
57
|
### SetObject
|
|
58
58
|
|
|
59
|
-
> `readonly` **SetObject**: `"
|
|
59
|
+
> `readonly` **SetObject**: `"JsonLdSetObject"` = `"JsonLdSetObject"`
|
|
60
60
|
|
|
61
61
|
Represents JSON-LD Set Object.
|
|
62
62
|
|
|
63
63
|
### LanguageMap
|
|
64
64
|
|
|
65
|
-
> `readonly` **LanguageMap**: `"
|
|
65
|
+
> `readonly` **LanguageMap**: `"JsonLdLanguageMap"` = `"JsonLdLanguageMap"`
|
|
66
66
|
|
|
67
67
|
Represents JSON-LD Language Map.
|
|
68
68
|
|
|
69
69
|
### IndexMap
|
|
70
70
|
|
|
71
|
-
> `readonly` **IndexMap**: `"
|
|
71
|
+
> `readonly` **IndexMap**: `"JsonLdIndexMap"` = `"JsonLdIndexMap"`
|
|
72
72
|
|
|
73
73
|
Represents JSON-LD Index Map.
|
|
74
74
|
|
|
75
75
|
### IndexMapItem
|
|
76
76
|
|
|
77
|
-
> `readonly` **IndexMapItem**: `"
|
|
77
|
+
> `readonly` **IndexMapItem**: `"JsonLdIndexMapItem"` = `"JsonLdIndexMapItem"`
|
|
78
78
|
|
|
79
79
|
Represents JSON-LD Index Map Item.
|
|
80
80
|
|
|
81
81
|
### IdMap
|
|
82
82
|
|
|
83
|
-
> `readonly` **IdMap**: `"
|
|
83
|
+
> `readonly` **IdMap**: `"JsonLdIdMap"` = `"JsonLdIdMap"`
|
|
84
84
|
|
|
85
85
|
Represents JSON-LD Id Map.
|
|
86
86
|
|
|
87
87
|
### TypeMap
|
|
88
88
|
|
|
89
|
-
> `readonly` **TypeMap**: `"
|
|
89
|
+
> `readonly` **TypeMap**: `"JsonLdTypeMap"` = `"JsonLdTypeMap"`
|
|
90
90
|
|
|
91
91
|
Represents JSON-LD Type Map.
|
|
92
92
|
|
|
93
93
|
### IncludedBlock
|
|
94
94
|
|
|
95
|
-
> `readonly` **IncludedBlock**: `"
|
|
95
|
+
> `readonly` **IncludedBlock**: `"JsonLdIncludedBlock"` = `"JsonLdIncludedBlock"`
|
|
96
96
|
|
|
97
97
|
Represents JSON-LD Included block.
|
|
98
98
|
|
|
99
99
|
### ContextDefinition
|
|
100
100
|
|
|
101
|
-
> `readonly` **ContextDefinition**: `"
|
|
101
|
+
> `readonly` **ContextDefinition**: `"JsonLdContextDefinition"` = `"JsonLdContextDefinition"`
|
|
102
102
|
|
|
103
103
|
Represents JSON-LD Context Definition.
|
|
104
104
|
|
|
105
105
|
### ExpandedTermDefinition
|
|
106
106
|
|
|
107
|
-
> `readonly` **ExpandedTermDefinition**: `"
|
|
107
|
+
> `readonly` **ExpandedTermDefinition**: `"JsonLdExpandedTermDefinition"` = `"JsonLdExpandedTermDefinition"`
|
|
108
108
|
|
|
109
109
|
Represents JSON-LD Expanded Term Definition.
|
|
110
110
|
|
|
111
111
|
### Keyword
|
|
112
112
|
|
|
113
|
-
> `readonly` **Keyword**: `"
|
|
113
|
+
> `readonly` **Keyword**: `"JsonLdKeyword"` = `"JsonLdKeyword"`
|
|
114
114
|
|
|
115
115
|
Represents JSON-LD Keyword.
|
|
116
116
|
|
|
117
117
|
### ListOrSetItem
|
|
118
118
|
|
|
119
|
-
> `readonly` **ListOrSetItem**: `"
|
|
119
|
+
> `readonly` **ListOrSetItem**: `"JsonLdListOrSetItem"` = `"JsonLdListOrSetItem"`
|
|
120
120
|
|
|
121
121
|
Represents JSON-LD List or Set Item.
|
|
122
122
|
|
|
123
123
|
### ContainerType
|
|
124
124
|
|
|
125
|
-
> `readonly` **ContainerType**: `"
|
|
125
|
+
> `readonly` **ContainerType**: `"JsonLdContainerType"` = `"JsonLdContainerType"`
|
|
126
126
|
|
|
127
127
|
Represents JSON-LD Container Type.
|
|
128
128
|
|
|
129
129
|
### ContainerTypeArray
|
|
130
130
|
|
|
131
|
-
> `readonly` **ContainerTypeArray**: `"
|
|
131
|
+
> `readonly` **ContainerTypeArray**: `"JsonLdContainerTypeArray"` = `"JsonLdContainerTypeArray"`
|
|
132
132
|
|
|
133
133
|
Represents JSON-LD Container Type Array.
|
|
134
134
|
|
|
135
135
|
### JsonPrimitive
|
|
136
136
|
|
|
137
|
-
> `readonly` **JsonPrimitive**: `"
|
|
137
|
+
> `readonly` **JsonPrimitive**: `"JsonLdJsonPrimitive"` = `"JsonLdJsonPrimitive"`
|
|
138
138
|
|
|
139
139
|
Represents JSON-LD JSON Primitive.
|
|
140
140
|
|
|
141
141
|
### JsonArray
|
|
142
142
|
|
|
143
|
-
> `readonly` **JsonArray**: `"
|
|
143
|
+
> `readonly` **JsonArray**: `"JsonLdJsonArray"` = `"JsonLdJsonArray"`
|
|
144
144
|
|
|
145
145
|
Represents JSON-LD JSON Array.
|
|
146
146
|
|
|
147
147
|
### JsonObject
|
|
148
148
|
|
|
149
|
-
> `readonly` **JsonObject**: `"
|
|
149
|
+
> `readonly` **JsonObject**: `"JsonLdJsonObject"` = `"JsonLdJsonObject"`
|
|
150
150
|
|
|
151
151
|
Represents JSON-LD JSON Object.
|
|
152
152
|
|
|
153
153
|
### JsonValue
|
|
154
154
|
|
|
155
|
-
> `readonly` **JsonValue**: `"
|
|
155
|
+
> `readonly` **JsonValue**: `"JsonLdJsonValue"` = `"JsonLdJsonValue"`
|
|
156
156
|
|
|
157
157
|
Represents JSON-LD JSON Value.
|
package/locales/en.json
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
"jsonLdProcessor": {
|
|
3
3
|
"compact": "The JSON-LD compaction failed",
|
|
4
4
|
"expand": "The JSON-LD expansion failed",
|
|
5
|
-
"invalidUrl": "The JSON-LD processing failed to retrieve from the following url \"{url}\""
|
|
5
|
+
"invalidUrl": "The JSON-LD processing failed to retrieve from the following url \"{url}\"",
|
|
6
|
+
"jsonldError": "The JSON-LD processing failed due to the following error: \"{code}\""
|
|
6
7
|
}
|
|
7
8
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/data-json-ld",
|
|
3
|
-
"version": "0.0.1-next.
|
|
3
|
+
"version": "0.0.1-next.13",
|
|
4
4
|
"description": "Models which define the structure of JSON LD",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@twin.org/core": "next",
|
|
18
|
-
"@twin.org/data-core": "0.0.1-next.
|
|
18
|
+
"@twin.org/data-core": "0.0.1-next.13",
|
|
19
19
|
"@twin.org/entity": "next",
|
|
20
20
|
"@twin.org/nameof": "next",
|
|
21
21
|
"@twin.org/web": "next",
|