@3sixty/data-json-ld 0.0.0-stage → 0.20.0-next.1
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/LICENSE +201 -0
- package/README.md +24 -2
- package/dist/es/compiled/validators.js +3895 -0
- package/dist/es/compiled/validators.js.map +1 -0
- package/dist/es/dataTypes/jsonLdDataTypes.js +170 -0
- package/dist/es/dataTypes/jsonLdDataTypes.js.map +1 -0
- package/dist/es/helpers/jsonLdAliasKey.js +4 -0
- package/dist/es/helpers/jsonLdAliasKey.js.map +1 -0
- package/dist/es/helpers/jsonLdExistingProperty.js +4 -0
- package/dist/es/helpers/jsonLdExistingProperty.js.map +1 -0
- package/dist/es/helpers/jsonLdExistingPropertyEither.js +2 -0
- package/dist/es/helpers/jsonLdExistingPropertyEither.js.map +1 -0
- package/dist/es/helpers/jsonLdKeys.js +4 -0
- package/dist/es/helpers/jsonLdKeys.js.map +1 -0
- package/dist/es/helpers/jsonLdObjectWithAliases.js +2 -0
- package/dist/es/helpers/jsonLdObjectWithAliases.js.map +1 -0
- package/dist/es/helpers/jsonLdObjectWithAtId.js +2 -0
- package/dist/es/helpers/jsonLdObjectWithAtId.js.map +1 -0
- package/dist/es/helpers/jsonLdObjectWithAtType.js +2 -0
- package/dist/es/helpers/jsonLdObjectWithAtType.js.map +1 -0
- package/dist/es/helpers/jsonLdObjectWithContext.js +2 -0
- package/dist/es/helpers/jsonLdObjectWithContext.js.map +1 -0
- package/dist/es/helpers/jsonLdObjectWithId.js +2 -0
- package/dist/es/helpers/jsonLdObjectWithId.js.map +1 -0
- package/dist/es/helpers/jsonLdObjectWithNoAtId.js +4 -0
- package/dist/es/helpers/jsonLdObjectWithNoAtId.js.map +1 -0
- package/dist/es/helpers/jsonLdObjectWithNoAtType.js +4 -0
- package/dist/es/helpers/jsonLdObjectWithNoAtType.js.map +1 -0
- package/dist/es/helpers/jsonLdObjectWithNoContext.js +4 -0
- package/dist/es/helpers/jsonLdObjectWithNoContext.js.map +1 -0
- package/dist/es/helpers/jsonLdObjectWithNoId.js +4 -0
- package/dist/es/helpers/jsonLdObjectWithNoId.js.map +1 -0
- package/dist/es/helpers/jsonLdObjectWithNoType.js +4 -0
- package/dist/es/helpers/jsonLdObjectWithNoType.js.map +1 -0
- package/dist/es/helpers/jsonLdObjectWithOptionalAtId.js +2 -0
- package/dist/es/helpers/jsonLdObjectWithOptionalAtId.js.map +1 -0
- package/dist/es/helpers/jsonLdObjectWithOptionalAtType.js +2 -0
- package/dist/es/helpers/jsonLdObjectWithOptionalAtType.js.map +1 -0
- package/dist/es/helpers/jsonLdObjectWithOptionalContext.js +2 -0
- package/dist/es/helpers/jsonLdObjectWithOptionalContext.js.map +1 -0
- package/dist/es/helpers/jsonLdObjectWithOptionalId.js +2 -0
- package/dist/es/helpers/jsonLdObjectWithOptionalId.js.map +1 -0
- package/dist/es/helpers/jsonLdObjectWithOptionalType.js +2 -0
- package/dist/es/helpers/jsonLdObjectWithOptionalType.js.map +1 -0
- package/dist/es/helpers/jsonLdObjectWithType.js +2 -0
- package/dist/es/helpers/jsonLdObjectWithType.js.map +1 -0
- package/dist/es/helpers/jsonLdOptionalKeys.js +4 -0
- package/dist/es/helpers/jsonLdOptionalKeys.js.map +1 -0
- package/dist/es/helpers/jsonLdRequiredKeys.js +2 -0
- package/dist/es/helpers/jsonLdRequiredKeys.js.map +1 -0
- package/dist/es/helpers/jsonLdWithAliases.js +2 -0
- package/dist/es/helpers/jsonLdWithAliases.js.map +1 -0
- package/dist/es/index.js +57 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/models/IJsonLdContainerType.js +4 -0
- package/dist/es/models/IJsonLdContainerType.js.map +1 -0
- package/dist/es/models/IJsonLdContainerTypeArray.js +2 -0
- package/dist/es/models/IJsonLdContainerTypeArray.js.map +1 -0
- package/dist/es/models/IJsonLdContextDefinition.js +2 -0
- package/dist/es/models/IJsonLdContextDefinition.js.map +1 -0
- package/dist/es/models/IJsonLdContextDefinitionElement.js +2 -0
- package/dist/es/models/IJsonLdContextDefinitionElement.js.map +1 -0
- package/dist/es/models/IJsonLdContextDefinitionRoot.js +2 -0
- package/dist/es/models/IJsonLdContextDefinitionRoot.js.map +1 -0
- package/dist/es/models/IJsonLdDocument.js +2 -0
- package/dist/es/models/IJsonLdDocument.js.map +1 -0
- package/dist/es/models/IJsonLdExpandedTermDefinition.js +2 -0
- package/dist/es/models/IJsonLdExpandedTermDefinition.js.map +1 -0
- package/dist/es/models/IJsonLdGraphObject.js +2 -0
- package/dist/es/models/IJsonLdGraphObject.js.map +1 -0
- package/dist/es/models/IJsonLdIdMap.js +2 -0
- package/dist/es/models/IJsonLdIdMap.js.map +1 -0
- package/dist/es/models/IJsonLdIncludedBlock.js +2 -0
- package/dist/es/models/IJsonLdIncludedBlock.js.map +1 -0
- package/dist/es/models/IJsonLdIndexMap.js +2 -0
- package/dist/es/models/IJsonLdIndexMap.js.map +1 -0
- package/dist/es/models/IJsonLdIndexMapItem.js +2 -0
- package/dist/es/models/IJsonLdIndexMapItem.js.map +1 -0
- package/dist/es/models/IJsonLdJsonArray.js +2 -0
- package/dist/es/models/IJsonLdJsonArray.js.map +1 -0
- package/dist/es/models/IJsonLdJsonObject.js +2 -0
- package/dist/es/models/IJsonLdJsonObject.js.map +1 -0
- package/dist/es/models/IJsonLdJsonPrimitive.js +4 -0
- package/dist/es/models/IJsonLdJsonPrimitive.js.map +1 -0
- package/dist/es/models/IJsonLdJsonValue.js +2 -0
- package/dist/es/models/IJsonLdJsonValue.js.map +1 -0
- package/dist/es/models/IJsonLdLanguageMap.js +4 -0
- package/dist/es/models/IJsonLdLanguageMap.js.map +1 -0
- package/dist/es/models/IJsonLdListObject.js +2 -0
- package/dist/es/models/IJsonLdListObject.js.map +1 -0
- package/dist/es/models/IJsonLdListOrSetItem.js +2 -0
- package/dist/es/models/IJsonLdListOrSetItem.js.map +1 -0
- package/dist/es/models/IJsonLdNodeObject.js +2 -0
- package/dist/es/models/IJsonLdNodeObject.js.map +1 -0
- package/dist/es/models/IJsonLdNodePrimitive.js +2 -0
- package/dist/es/models/IJsonLdNodePrimitive.js.map +1 -0
- package/dist/es/models/IJsonLdObject.js +2 -0
- package/dist/es/models/IJsonLdObject.js.map +1 -0
- package/dist/es/models/IJsonLdSetObject.js +2 -0
- package/dist/es/models/IJsonLdSetObject.js.map +1 -0
- package/dist/es/models/IJsonLdTypeMap.js +2 -0
- package/dist/es/models/IJsonLdTypeMap.js.map +1 -0
- package/dist/es/models/IJsonLdValueObject.js +2 -0
- package/dist/es/models/IJsonLdValueObject.js.map +1 -0
- package/dist/es/models/jsonLdContexts.js +21 -0
- package/dist/es/models/jsonLdContexts.js.map +1 -0
- package/dist/es/models/jsonLdTypes.js +113 -0
- package/dist/es/models/jsonLdTypes.js.map +1 -0
- package/dist/es/schemas/JsonLdContainerType.json +23 -0
- package/dist/es/schemas/JsonLdContainerTypeArray.json +166 -0
- package/dist/es/schemas/JsonLdContextDefinition.json +134 -0
- package/dist/es/schemas/JsonLdContextDefinitionElement.json +17 -0
- package/dist/es/schemas/JsonLdContextDefinitionRoot.json +17 -0
- package/dist/es/schemas/JsonLdDocument.json +48 -0
- package/dist/es/schemas/JsonLdExpandedTermDefinition.json +148 -0
- package/dist/es/schemas/JsonLdGraphObject.json +44 -0
- package/dist/es/schemas/JsonLdIdMap.json +10 -0
- package/dist/es/schemas/JsonLdIncludedBlock.json +17 -0
- package/dist/es/schemas/JsonLdIndexMap.json +20 -0
- package/dist/es/schemas/JsonLdIndexMapItem.json +32 -0
- package/dist/es/schemas/JsonLdJsonArray.json +10 -0
- package/dist/es/schemas/JsonLdJsonObject.json +10 -0
- package/dist/es/schemas/JsonLdJsonPrimitive.json +20 -0
- package/dist/es/schemas/JsonLdJsonValue.json +17 -0
- package/dist/es/schemas/JsonLdLanguageMap.json +23 -0
- package/dist/es/schemas/JsonLdListObject.json +28 -0
- package/dist/es/schemas/JsonLdListOrSetItem.json +26 -0
- package/dist/es/schemas/JsonLdNodeObject.json +40 -0
- package/dist/es/schemas/JsonLdNodePrimitive.json +35 -0
- package/dist/es/schemas/JsonLdObject.json +76 -0
- package/dist/es/schemas/JsonLdSetObject.json +28 -0
- package/dist/es/schemas/JsonLdTypeMap.json +17 -0
- package/dist/es/schemas/JsonLdValueObject.json +125 -0
- package/dist/es/utils/jsonLdHelper.js +301 -0
- package/dist/es/utils/jsonLdHelper.js.map +1 -0
- package/dist/es/utils/jsonLdProcessor.js +507 -0
- package/dist/es/utils/jsonLdProcessor.js.map +1 -0
- package/dist/types/compiled/validators.d.ts +101 -0
- package/dist/types/dataTypes/jsonLdDataTypes.d.ts +9 -0
- package/dist/types/helpers/jsonLdAliasKey.d.ts +4 -0
- package/dist/types/helpers/jsonLdExistingProperty.d.ts +6 -0
- package/dist/types/helpers/jsonLdExistingPropertyEither.d.ts +6 -0
- package/dist/types/helpers/jsonLdKeys.d.ts +4 -0
- package/dist/types/helpers/jsonLdObjectWithAliases.d.ts +7 -0
- package/dist/types/helpers/jsonLdObjectWithAtId.d.ts +7 -0
- package/dist/types/helpers/jsonLdObjectWithAtType.d.ts +7 -0
- package/dist/types/helpers/jsonLdObjectWithContext.d.ts +7 -0
- package/dist/types/helpers/jsonLdObjectWithId.d.ts +7 -0
- package/dist/types/helpers/jsonLdObjectWithNoAtId.d.ts +4 -0
- package/dist/types/helpers/jsonLdObjectWithNoAtType.d.ts +4 -0
- package/dist/types/helpers/jsonLdObjectWithNoContext.d.ts +5 -0
- package/dist/types/helpers/jsonLdObjectWithNoId.d.ts +4 -0
- package/dist/types/helpers/jsonLdObjectWithNoType.d.ts +4 -0
- package/dist/types/helpers/jsonLdObjectWithOptionalAtId.d.ts +7 -0
- package/dist/types/helpers/jsonLdObjectWithOptionalAtType.d.ts +7 -0
- package/dist/types/helpers/jsonLdObjectWithOptionalContext.d.ts +9 -0
- package/dist/types/helpers/jsonLdObjectWithOptionalId.d.ts +7 -0
- package/dist/types/helpers/jsonLdObjectWithOptionalType.d.ts +7 -0
- package/dist/types/helpers/jsonLdObjectWithType.d.ts +7 -0
- package/dist/types/helpers/jsonLdOptionalKeys.d.ts +6 -0
- package/dist/types/helpers/jsonLdRequiredKeys.d.ts +5 -0
- package/dist/types/helpers/jsonLdWithAliases.d.ts +13 -0
- package/dist/types/index.d.ts +54 -0
- package/dist/types/models/IJsonLdContainerType.d.ts +8 -0
- package/dist/types/models/IJsonLdContainerTypeArray.d.ts +9 -0
- package/dist/types/models/IJsonLdContextDefinition.d.ts +24 -0
- package/dist/types/models/IJsonLdContextDefinitionElement.d.ts +9 -0
- package/dist/types/models/IJsonLdContextDefinitionRoot.d.ts +9 -0
- package/dist/types/models/IJsonLdDocument.d.ts +17 -0
- package/dist/types/models/IJsonLdExpandedTermDefinition.d.ts +29 -0
- package/dist/types/models/IJsonLdGraphObject.d.ts +16 -0
- package/dist/types/models/IJsonLdIdMap.d.ts +12 -0
- package/dist/types/models/IJsonLdIncludedBlock.d.ts +10 -0
- package/dist/types/models/IJsonLdIndexMap.d.ts +13 -0
- package/dist/types/models/IJsonLdIndexMapItem.d.ts +12 -0
- package/dist/types/models/IJsonLdJsonArray.d.ts +9 -0
- package/dist/types/models/IJsonLdJsonObject.d.ts +11 -0
- package/dist/types/models/IJsonLdJsonPrimitive.d.ts +8 -0
- package/dist/types/models/IJsonLdJsonValue.d.ts +11 -0
- package/dist/types/models/IJsonLdLanguageMap.d.ts +11 -0
- package/dist/types/models/IJsonLdListObject.d.ts +13 -0
- package/dist/types/models/IJsonLdListOrSetItem.d.ts +10 -0
- package/dist/types/models/IJsonLdNodeObject.d.ts +19 -0
- package/dist/types/models/IJsonLdNodePrimitive.d.ts +13 -0
- package/dist/types/models/IJsonLdObject.d.ts +25 -0
- package/dist/types/models/IJsonLdSetObject.d.ts +13 -0
- package/dist/types/models/IJsonLdTypeMap.d.ts +12 -0
- package/dist/types/models/IJsonLdValueObject.d.ts +26 -0
- package/dist/types/models/jsonLdContexts.d.ts +21 -0
- package/dist/types/models/jsonLdTypes.d.ts +113 -0
- package/dist/types/utils/jsonLdHelper.d.ts +97 -0
- package/dist/types/utils/jsonLdProcessor.d.ts +117 -0
- package/docs/changelog.md +15 -0
- package/docs/examples.md +214 -0
- package/docs/reference/classes/JsonLdDataTypes.md +25 -0
- package/docs/reference/classes/JsonLdHelper.md +371 -0
- package/docs/reference/classes/JsonLdProcessor.md +400 -0
- package/docs/reference/index.md +93 -0
- package/docs/reference/interfaces/IJsonLdContextDefinition.md +73 -0
- package/docs/reference/interfaces/IJsonLdGraphObject.md +31 -0
- package/docs/reference/interfaces/IJsonLdIdMap.md +11 -0
- package/docs/reference/interfaces/IJsonLdIndexMap.md +12 -0
- package/docs/reference/interfaces/IJsonLdJsonObject.md +7 -0
- package/docs/reference/interfaces/IJsonLdLanguageMap.md +11 -0
- package/docs/reference/interfaces/IJsonLdListObject.md +19 -0
- package/docs/reference/interfaces/IJsonLdNodeObject.md +100 -0
- package/docs/reference/interfaces/IJsonLdObject.md +64 -0
- package/docs/reference/interfaces/IJsonLdSetObject.md +19 -0
- package/docs/reference/interfaces/IJsonLdTypeMap.md +11 -0
- package/docs/reference/type-aliases/IJsonLdContainerType.md +5 -0
- package/docs/reference/type-aliases/IJsonLdContainerTypeArray.md +5 -0
- package/docs/reference/type-aliases/IJsonLdContextDefinitionElement.md +5 -0
- package/docs/reference/type-aliases/IJsonLdContextDefinitionRoot.md +5 -0
- package/docs/reference/type-aliases/IJsonLdDocument.md +11 -0
- package/docs/reference/type-aliases/IJsonLdExpandedTermDefinition.md +41 -0
- package/docs/reference/type-aliases/IJsonLdIncludedBlock.md +9 -0
- package/docs/reference/type-aliases/IJsonLdIndexMapItem.md +5 -0
- package/docs/reference/type-aliases/IJsonLdJsonArray.md +5 -0
- package/docs/reference/type-aliases/IJsonLdJsonPrimitive.md +5 -0
- package/docs/reference/type-aliases/IJsonLdJsonValue.md +5 -0
- package/docs/reference/type-aliases/IJsonLdListOrSetItem.md +5 -0
- package/docs/reference/type-aliases/IJsonLdNodePrimitive.md +5 -0
- package/docs/reference/type-aliases/IJsonLdValueObject.md +20 -0
- package/docs/reference/type-aliases/JsonLdAliasKey.md +15 -0
- package/docs/reference/type-aliases/JsonLdContexts.md +5 -0
- package/docs/reference/type-aliases/JsonLdExistingProperty.md +19 -0
- package/docs/reference/type-aliases/JsonLdExistingPropertyEither.md +24 -0
- package/docs/reference/type-aliases/JsonLdKeys.md +11 -0
- package/docs/reference/type-aliases/JsonLdObjectWithAliases.md +16 -0
- package/docs/reference/type-aliases/JsonLdObjectWithAtId.md +21 -0
- package/docs/reference/type-aliases/JsonLdObjectWithAtType.md +21 -0
- package/docs/reference/type-aliases/JsonLdObjectWithContext.md +21 -0
- package/docs/reference/type-aliases/JsonLdObjectWithId.md +21 -0
- package/docs/reference/type-aliases/JsonLdObjectWithNoAtId.md +11 -0
- package/docs/reference/type-aliases/JsonLdObjectWithNoAtType.md +11 -0
- package/docs/reference/type-aliases/JsonLdObjectWithNoContext.md +12 -0
- package/docs/reference/type-aliases/JsonLdObjectWithNoId.md +11 -0
- package/docs/reference/type-aliases/JsonLdObjectWithNoType.md +11 -0
- package/docs/reference/type-aliases/JsonLdObjectWithOptionalAtId.md +21 -0
- package/docs/reference/type-aliases/JsonLdObjectWithOptionalAtType.md +21 -0
- package/docs/reference/type-aliases/JsonLdObjectWithOptionalContext.md +22 -0
- package/docs/reference/type-aliases/JsonLdObjectWithOptionalId.md +21 -0
- package/docs/reference/type-aliases/JsonLdObjectWithOptionalType.md +21 -0
- package/docs/reference/type-aliases/JsonLdObjectWithType.md +21 -0
- package/docs/reference/type-aliases/JsonLdOptionalKeys.md +11 -0
- package/docs/reference/type-aliases/JsonLdRequiredKeys.md +11 -0
- package/docs/reference/type-aliases/JsonLdTypes.md +5 -0
- package/docs/reference/type-aliases/JsonLdWithAliases.md +17 -0
- package/docs/reference/variables/CompiledJsonLdContainerType.md +5 -0
- package/docs/reference/variables/CompiledJsonLdContainerTypeArray.md +5 -0
- package/docs/reference/variables/CompiledJsonLdContextDefinition.md +5 -0
- package/docs/reference/variables/CompiledJsonLdContextDefinitionElement.md +5 -0
- package/docs/reference/variables/CompiledJsonLdContextDefinitionRoot.md +5 -0
- package/docs/reference/variables/CompiledJsonLdDocument.md +5 -0
- package/docs/reference/variables/CompiledJsonLdExpandedTermDefinition.md +5 -0
- package/docs/reference/variables/CompiledJsonLdGraphObject.md +5 -0
- package/docs/reference/variables/CompiledJsonLdIdMap.md +5 -0
- package/docs/reference/variables/CompiledJsonLdIncludedBlock.md +5 -0
- package/docs/reference/variables/CompiledJsonLdIndexMap.md +5 -0
- package/docs/reference/variables/CompiledJsonLdIndexMapItem.md +5 -0
- package/docs/reference/variables/CompiledJsonLdJsonArray.md +5 -0
- package/docs/reference/variables/CompiledJsonLdJsonObject.md +5 -0
- package/docs/reference/variables/CompiledJsonLdJsonPrimitive.md +5 -0
- package/docs/reference/variables/CompiledJsonLdJsonValue.md +5 -0
- package/docs/reference/variables/CompiledJsonLdLanguageMap.md +5 -0
- package/docs/reference/variables/CompiledJsonLdListObject.md +5 -0
- package/docs/reference/variables/CompiledJsonLdListOrSetItem.md +5 -0
- package/docs/reference/variables/CompiledJsonLdNodeObject.md +5 -0
- package/docs/reference/variables/CompiledJsonLdNodePrimitive.md +5 -0
- package/docs/reference/variables/CompiledJsonLdObject.md +5 -0
- package/docs/reference/variables/CompiledJsonLdSetObject.md +5 -0
- package/docs/reference/variables/CompiledJsonLdTypeMap.md +5 -0
- package/docs/reference/variables/CompiledJsonLdValueObject.md +5 -0
- package/docs/reference/variables/JsonLdContexts.md +25 -0
- package/docs/reference/variables/JsonLdTypes.md +163 -0
- package/locales/.validate-ignore +1 -0
- package/locales/en.json +11 -0
- package/package.json +52 -5
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
# Class: JsonLdProcessor
|
|
2
|
+
|
|
3
|
+
JSON-LD Processor.
|
|
4
|
+
|
|
5
|
+
## Constructors
|
|
6
|
+
|
|
7
|
+
### Constructor
|
|
8
|
+
|
|
9
|
+
> **new JsonLdProcessor**(): `JsonLdProcessor`
|
|
10
|
+
|
|
11
|
+
#### Returns
|
|
12
|
+
|
|
13
|
+
`JsonLdProcessor`
|
|
14
|
+
|
|
15
|
+
## Methods
|
|
16
|
+
|
|
17
|
+
### setDocumentLoader() {#setdocumentloader}
|
|
18
|
+
|
|
19
|
+
> `static` **setDocumentLoader**(`documentLoader`): `void`
|
|
20
|
+
|
|
21
|
+
Set the document loader used for retrieving JSON-LD documents.
|
|
22
|
+
|
|
23
|
+
#### Parameters
|
|
24
|
+
|
|
25
|
+
##### documentLoader
|
|
26
|
+
|
|
27
|
+
(`url`) => `Promise`\<`RemoteDocument`\>
|
|
28
|
+
|
|
29
|
+
The document loader to use.
|
|
30
|
+
|
|
31
|
+
#### Returns
|
|
32
|
+
|
|
33
|
+
`void`
|
|
34
|
+
|
|
35
|
+
***
|
|
36
|
+
|
|
37
|
+
### getDocumentLoader() {#getdocumentloader}
|
|
38
|
+
|
|
39
|
+
> `static` **getDocumentLoader**(): (`url`) => `Promise`\<`RemoteDocument`\>
|
|
40
|
+
|
|
41
|
+
Get the document loader used for retrieving JSON-LD documents.
|
|
42
|
+
|
|
43
|
+
#### Returns
|
|
44
|
+
|
|
45
|
+
The active document loader function.
|
|
46
|
+
|
|
47
|
+
(`url`) => `Promise`\<`RemoteDocument`\>
|
|
48
|
+
|
|
49
|
+
***
|
|
50
|
+
|
|
51
|
+
### setCacheLimit() {#setcachelimit}
|
|
52
|
+
|
|
53
|
+
> `static` **setCacheLimit**(`cacheLimitMs`): `void`
|
|
54
|
+
|
|
55
|
+
Set the cache time limit for documents.
|
|
56
|
+
|
|
57
|
+
#### Parameters
|
|
58
|
+
|
|
59
|
+
##### cacheLimitMs
|
|
60
|
+
|
|
61
|
+
`number`
|
|
62
|
+
|
|
63
|
+
The cache limit in milliseconds.
|
|
64
|
+
|
|
65
|
+
#### Returns
|
|
66
|
+
|
|
67
|
+
`void`
|
|
68
|
+
|
|
69
|
+
***
|
|
70
|
+
|
|
71
|
+
### getCacheLimit() {#getcachelimit}
|
|
72
|
+
|
|
73
|
+
> `static` **getCacheLimit**(): `number`
|
|
74
|
+
|
|
75
|
+
Get the cache limit for documents.
|
|
76
|
+
|
|
77
|
+
#### Returns
|
|
78
|
+
|
|
79
|
+
`number`
|
|
80
|
+
|
|
81
|
+
The cache limit in milliseconds.
|
|
82
|
+
|
|
83
|
+
***
|
|
84
|
+
|
|
85
|
+
### setRedirects() {#setredirects}
|
|
86
|
+
|
|
87
|
+
> `static` **setRedirects**(`redirects`): `void`
|
|
88
|
+
|
|
89
|
+
Replace the global redirect list (use [JsonLdProcessor.addRedirect](#addredirect) to append without replacing).
|
|
90
|
+
Redirects run before any HTTP GET or `Link` discovery; use them for stable overrides, tests, or hosts that do not expose a suitable `Link` header.
|
|
91
|
+
|
|
92
|
+
#### Parameters
|
|
93
|
+
|
|
94
|
+
##### redirects
|
|
95
|
+
|
|
96
|
+
`object`[]
|
|
97
|
+
|
|
98
|
+
The redirects to use.
|
|
99
|
+
|
|
100
|
+
#### Returns
|
|
101
|
+
|
|
102
|
+
`void`
|
|
103
|
+
|
|
104
|
+
***
|
|
105
|
+
|
|
106
|
+
### getRedirects() {#getredirects}
|
|
107
|
+
|
|
108
|
+
> `static` **getRedirects**(): `object`[]
|
|
109
|
+
|
|
110
|
+
Get the global redirects for JSON-LD.
|
|
111
|
+
|
|
112
|
+
#### Returns
|
|
113
|
+
|
|
114
|
+
`object`[]
|
|
115
|
+
|
|
116
|
+
The registered redirects.
|
|
117
|
+
|
|
118
|
+
***
|
|
119
|
+
|
|
120
|
+
### addRedirect() {#addredirect}
|
|
121
|
+
|
|
122
|
+
> `static` **addRedirect**(`from`, `to`): `void`
|
|
123
|
+
|
|
124
|
+
Append a redirect rule (ignored if the same `RegExp.source` is already registered).
|
|
125
|
+
Optional when the vocabulary URL supports HTTP `Link` discovery (`rel` includes `alternate`, `type` is `application/ld+json`) via the default document loader.
|
|
126
|
+
Standards packages often expose `registerRedirects()` helpers that call this method; those are optional for the same reason.
|
|
127
|
+
|
|
128
|
+
#### Parameters
|
|
129
|
+
|
|
130
|
+
##### from
|
|
131
|
+
|
|
132
|
+
`RegExp`
|
|
133
|
+
|
|
134
|
+
The URL to redirect from.
|
|
135
|
+
|
|
136
|
+
##### to
|
|
137
|
+
|
|
138
|
+
`string`
|
|
139
|
+
|
|
140
|
+
The URL to redirect to.
|
|
141
|
+
|
|
142
|
+
#### Returns
|
|
143
|
+
|
|
144
|
+
`void`
|
|
145
|
+
|
|
146
|
+
***
|
|
147
|
+
|
|
148
|
+
### compact() {#compact}
|
|
149
|
+
|
|
150
|
+
> `static` **compact**\<`T`\>(`document`, `context?`, `options?`): `Promise`\<`T`\>
|
|
151
|
+
|
|
152
|
+
Compact a document according to a particular context.
|
|
153
|
+
|
|
154
|
+
#### Type Parameters
|
|
155
|
+
|
|
156
|
+
##### T
|
|
157
|
+
|
|
158
|
+
`T`
|
|
159
|
+
|
|
160
|
+
#### Parameters
|
|
161
|
+
|
|
162
|
+
##### document
|
|
163
|
+
|
|
164
|
+
`T`
|
|
165
|
+
|
|
166
|
+
The JSON-LD document to compact.
|
|
167
|
+
|
|
168
|
+
##### context?
|
|
169
|
+
|
|
170
|
+
[`IJsonLdContextDefinitionRoot`](../type-aliases/IJsonLdContextDefinitionRoot.md)
|
|
171
|
+
|
|
172
|
+
The context to compact the document to, if not provided will use the one in the document.
|
|
173
|
+
|
|
174
|
+
##### options?
|
|
175
|
+
|
|
176
|
+
The options for compacting the document.
|
|
177
|
+
|
|
178
|
+
###### compactArrays?
|
|
179
|
+
|
|
180
|
+
`boolean`
|
|
181
|
+
|
|
182
|
+
Whether to allow single-item arrays to be compacted to scalars, defaults to true (matches jsonld.js default behaviour). Set to false to preserve all single-item arrays.
|
|
183
|
+
|
|
184
|
+
###### noCompactProperties?
|
|
185
|
+
|
|
186
|
+
`string`[]
|
|
187
|
+
|
|
188
|
+
Additional dot-notation property paths that must always remain arrays, merged with the built-in always-array set.
|
|
189
|
+
|
|
190
|
+
#### Returns
|
|
191
|
+
|
|
192
|
+
`Promise`\<`T`\>
|
|
193
|
+
|
|
194
|
+
The compacted JSON-LD document.
|
|
195
|
+
|
|
196
|
+
***
|
|
197
|
+
|
|
198
|
+
### expand() {#expand}
|
|
199
|
+
|
|
200
|
+
> `static` **expand**\<`T`\>(`compacted`): `Promise`\<[`IJsonLdNodeObject`](../interfaces/IJsonLdNodeObject.md)[]\>
|
|
201
|
+
|
|
202
|
+
Expand a document, removing its context.
|
|
203
|
+
|
|
204
|
+
#### Type Parameters
|
|
205
|
+
|
|
206
|
+
##### T
|
|
207
|
+
|
|
208
|
+
`T`
|
|
209
|
+
|
|
210
|
+
#### Parameters
|
|
211
|
+
|
|
212
|
+
##### compacted
|
|
213
|
+
|
|
214
|
+
`T`
|
|
215
|
+
|
|
216
|
+
The compacted JSON-LD document to expand.
|
|
217
|
+
|
|
218
|
+
#### Returns
|
|
219
|
+
|
|
220
|
+
`Promise`\<[`IJsonLdNodeObject`](../interfaces/IJsonLdNodeObject.md)[]\>
|
|
221
|
+
|
|
222
|
+
The expanded JSON-LD document.
|
|
223
|
+
|
|
224
|
+
***
|
|
225
|
+
|
|
226
|
+
### canonize() {#canonize}
|
|
227
|
+
|
|
228
|
+
> `static` **canonize**\<`T`\>(`document`, `options?`): `Promise`\<`string`\>
|
|
229
|
+
|
|
230
|
+
Canonize a document.
|
|
231
|
+
|
|
232
|
+
#### Type Parameters
|
|
233
|
+
|
|
234
|
+
##### T
|
|
235
|
+
|
|
236
|
+
`T` *extends* [`IJsonLdNodeObject`](../interfaces/IJsonLdNodeObject.md)
|
|
237
|
+
|
|
238
|
+
#### Parameters
|
|
239
|
+
|
|
240
|
+
##### document
|
|
241
|
+
|
|
242
|
+
`T`
|
|
243
|
+
|
|
244
|
+
The document to canonize.
|
|
245
|
+
|
|
246
|
+
##### options?
|
|
247
|
+
|
|
248
|
+
The options for canonization.
|
|
249
|
+
|
|
250
|
+
###### algorithm?
|
|
251
|
+
|
|
252
|
+
`"URDNA2015"` \| `"URGNA2012"`
|
|
253
|
+
|
|
254
|
+
The algorithm to use for canonization, defaults to URDNA2015.
|
|
255
|
+
|
|
256
|
+
#### Returns
|
|
257
|
+
|
|
258
|
+
`Promise`\<`string`\>
|
|
259
|
+
|
|
260
|
+
The canonized document.
|
|
261
|
+
|
|
262
|
+
***
|
|
263
|
+
|
|
264
|
+
### combineContexts() {#combinecontexts}
|
|
265
|
+
|
|
266
|
+
> `static` **combineContexts**(`context1`, `context2`): [`IJsonLdContextDefinitionRoot`](../type-aliases/IJsonLdContextDefinitionRoot.md) \| `undefined`
|
|
267
|
+
|
|
268
|
+
Combine contexts.
|
|
269
|
+
|
|
270
|
+
#### Parameters
|
|
271
|
+
|
|
272
|
+
##### context1
|
|
273
|
+
|
|
274
|
+
[`IJsonLdContextDefinitionRoot`](../type-aliases/IJsonLdContextDefinitionRoot.md) \| `undefined`
|
|
275
|
+
|
|
276
|
+
The first JSON-LD context to combine.
|
|
277
|
+
|
|
278
|
+
##### context2
|
|
279
|
+
|
|
280
|
+
[`IJsonLdContextDefinitionRoot`](../type-aliases/IJsonLdContextDefinitionRoot.md) \| `undefined`
|
|
281
|
+
|
|
282
|
+
The second JSON-LD context to combine.
|
|
283
|
+
|
|
284
|
+
#### Returns
|
|
285
|
+
|
|
286
|
+
[`IJsonLdContextDefinitionRoot`](../type-aliases/IJsonLdContextDefinitionRoot.md) \| `undefined`
|
|
287
|
+
|
|
288
|
+
The combined context.
|
|
289
|
+
|
|
290
|
+
***
|
|
291
|
+
|
|
292
|
+
### gatherContexts() {#gathercontexts}
|
|
293
|
+
|
|
294
|
+
> `static` **gatherContexts**\<`T`\>(`element`, `initial?`): [`IJsonLdContextDefinitionRoot`](../type-aliases/IJsonLdContextDefinitionRoot.md) \| `undefined`
|
|
295
|
+
|
|
296
|
+
Gather all the contexts from the element and it's children.
|
|
297
|
+
|
|
298
|
+
#### Type Parameters
|
|
299
|
+
|
|
300
|
+
##### T
|
|
301
|
+
|
|
302
|
+
`T`
|
|
303
|
+
|
|
304
|
+
#### Parameters
|
|
305
|
+
|
|
306
|
+
##### element
|
|
307
|
+
|
|
308
|
+
`T`
|
|
309
|
+
|
|
310
|
+
The element to gather the contexts from.
|
|
311
|
+
|
|
312
|
+
##### initial?
|
|
313
|
+
|
|
314
|
+
[`IJsonLdContextDefinitionRoot`](../type-aliases/IJsonLdContextDefinitionRoot.md)
|
|
315
|
+
|
|
316
|
+
The initial context.
|
|
317
|
+
|
|
318
|
+
#### Returns
|
|
319
|
+
|
|
320
|
+
[`IJsonLdContextDefinitionRoot`](../type-aliases/IJsonLdContextDefinitionRoot.md) \| `undefined`
|
|
321
|
+
|
|
322
|
+
The combined contexts.
|
|
323
|
+
|
|
324
|
+
***
|
|
325
|
+
|
|
326
|
+
### removeContexts() {#removecontexts}
|
|
327
|
+
|
|
328
|
+
> `static` **removeContexts**(`context`, `match?`): [`IJsonLdContextDefinitionRoot`](../type-aliases/IJsonLdContextDefinitionRoot.md) \| `undefined`
|
|
329
|
+
|
|
330
|
+
Remove all the contexts that match the pattern.
|
|
331
|
+
|
|
332
|
+
#### Parameters
|
|
333
|
+
|
|
334
|
+
##### context
|
|
335
|
+
|
|
336
|
+
[`IJsonLdContextDefinitionRoot`](../type-aliases/IJsonLdContextDefinitionRoot.md) \| `undefined`
|
|
337
|
+
|
|
338
|
+
The context to remove the entries from.
|
|
339
|
+
|
|
340
|
+
##### match?
|
|
341
|
+
|
|
342
|
+
[`IJsonLdContextDefinitionElement`](../type-aliases/IJsonLdContextDefinitionElement.md)[]
|
|
343
|
+
|
|
344
|
+
The element to try and match.
|
|
345
|
+
|
|
346
|
+
#### Returns
|
|
347
|
+
|
|
348
|
+
[`IJsonLdContextDefinitionRoot`](../type-aliases/IJsonLdContextDefinitionRoot.md) \| `undefined`
|
|
349
|
+
|
|
350
|
+
The updated contexts.
|
|
351
|
+
|
|
352
|
+
***
|
|
353
|
+
|
|
354
|
+
### documentCacheAdd() {#documentcacheadd}
|
|
355
|
+
|
|
356
|
+
> `static` **documentCacheAdd**(`url`, `ldContext`): `Promise`\<`void`\>
|
|
357
|
+
|
|
358
|
+
Add a context directly to the document loader cache.
|
|
359
|
+
|
|
360
|
+
#### Parameters
|
|
361
|
+
|
|
362
|
+
##### url
|
|
363
|
+
|
|
364
|
+
`string`
|
|
365
|
+
|
|
366
|
+
The url the ld context is for.
|
|
367
|
+
|
|
368
|
+
##### ldContext
|
|
369
|
+
|
|
370
|
+
`unknown`
|
|
371
|
+
|
|
372
|
+
The context to add.
|
|
373
|
+
|
|
374
|
+
#### Returns
|
|
375
|
+
|
|
376
|
+
`Promise`\<`void`\>
|
|
377
|
+
|
|
378
|
+
A promise that resolves when the entry has been stored in the cache.
|
|
379
|
+
|
|
380
|
+
***
|
|
381
|
+
|
|
382
|
+
### documentCacheRemove() {#documentcacheremove}
|
|
383
|
+
|
|
384
|
+
> `static` **documentCacheRemove**(`url`): `Promise`\<`void`\>
|
|
385
|
+
|
|
386
|
+
Remove a context from the document loader cache.
|
|
387
|
+
|
|
388
|
+
#### Parameters
|
|
389
|
+
|
|
390
|
+
##### url
|
|
391
|
+
|
|
392
|
+
`string`
|
|
393
|
+
|
|
394
|
+
The url the ld context is for.
|
|
395
|
+
|
|
396
|
+
#### Returns
|
|
397
|
+
|
|
398
|
+
`Promise`\<`void`\>
|
|
399
|
+
|
|
400
|
+
A promise that resolves when the entry has been removed from the cache.
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
# @3sixty/data-json-ld
|
|
2
|
+
|
|
3
|
+
## Classes
|
|
4
|
+
|
|
5
|
+
- [JsonLdDataTypes](classes/JsonLdDataTypes.md)
|
|
6
|
+
- [JsonLdHelper](classes/JsonLdHelper.md)
|
|
7
|
+
- [JsonLdProcessor](classes/JsonLdProcessor.md)
|
|
8
|
+
|
|
9
|
+
## Interfaces
|
|
10
|
+
|
|
11
|
+
- [IJsonLdContextDefinition](interfaces/IJsonLdContextDefinition.md)
|
|
12
|
+
- [IJsonLdGraphObject](interfaces/IJsonLdGraphObject.md)
|
|
13
|
+
- [IJsonLdIdMap](interfaces/IJsonLdIdMap.md)
|
|
14
|
+
- [IJsonLdIndexMap](interfaces/IJsonLdIndexMap.md)
|
|
15
|
+
- [IJsonLdJsonObject](interfaces/IJsonLdJsonObject.md)
|
|
16
|
+
- [IJsonLdLanguageMap](interfaces/IJsonLdLanguageMap.md)
|
|
17
|
+
- [IJsonLdListObject](interfaces/IJsonLdListObject.md)
|
|
18
|
+
- [IJsonLdNodeObject](interfaces/IJsonLdNodeObject.md)
|
|
19
|
+
- [IJsonLdObject](interfaces/IJsonLdObject.md)
|
|
20
|
+
- [IJsonLdSetObject](interfaces/IJsonLdSetObject.md)
|
|
21
|
+
- [IJsonLdTypeMap](interfaces/IJsonLdTypeMap.md)
|
|
22
|
+
|
|
23
|
+
## Type Aliases
|
|
24
|
+
|
|
25
|
+
- [JsonLdAliasKey](type-aliases/JsonLdAliasKey.md)
|
|
26
|
+
- [JsonLdExistingProperty](type-aliases/JsonLdExistingProperty.md)
|
|
27
|
+
- [JsonLdExistingPropertyEither](type-aliases/JsonLdExistingPropertyEither.md)
|
|
28
|
+
- [JsonLdKeys](type-aliases/JsonLdKeys.md)
|
|
29
|
+
- [JsonLdObjectWithAliases](type-aliases/JsonLdObjectWithAliases.md)
|
|
30
|
+
- [JsonLdObjectWithAtId](type-aliases/JsonLdObjectWithAtId.md)
|
|
31
|
+
- [JsonLdObjectWithAtType](type-aliases/JsonLdObjectWithAtType.md)
|
|
32
|
+
- [JsonLdObjectWithContext](type-aliases/JsonLdObjectWithContext.md)
|
|
33
|
+
- [JsonLdObjectWithId](type-aliases/JsonLdObjectWithId.md)
|
|
34
|
+
- [JsonLdObjectWithNoAtId](type-aliases/JsonLdObjectWithNoAtId.md)
|
|
35
|
+
- [JsonLdObjectWithNoAtType](type-aliases/JsonLdObjectWithNoAtType.md)
|
|
36
|
+
- [JsonLdObjectWithNoContext](type-aliases/JsonLdObjectWithNoContext.md)
|
|
37
|
+
- [JsonLdObjectWithNoId](type-aliases/JsonLdObjectWithNoId.md)
|
|
38
|
+
- [JsonLdObjectWithNoType](type-aliases/JsonLdObjectWithNoType.md)
|
|
39
|
+
- [JsonLdObjectWithOptionalAtId](type-aliases/JsonLdObjectWithOptionalAtId.md)
|
|
40
|
+
- [JsonLdObjectWithOptionalAtType](type-aliases/JsonLdObjectWithOptionalAtType.md)
|
|
41
|
+
- [JsonLdObjectWithOptionalContext](type-aliases/JsonLdObjectWithOptionalContext.md)
|
|
42
|
+
- [JsonLdObjectWithOptionalId](type-aliases/JsonLdObjectWithOptionalId.md)
|
|
43
|
+
- [JsonLdObjectWithOptionalType](type-aliases/JsonLdObjectWithOptionalType.md)
|
|
44
|
+
- [JsonLdObjectWithType](type-aliases/JsonLdObjectWithType.md)
|
|
45
|
+
- [JsonLdOptionalKeys](type-aliases/JsonLdOptionalKeys.md)
|
|
46
|
+
- [JsonLdRequiredKeys](type-aliases/JsonLdRequiredKeys.md)
|
|
47
|
+
- [JsonLdWithAliases](type-aliases/JsonLdWithAliases.md)
|
|
48
|
+
- [IJsonLdContainerType](type-aliases/IJsonLdContainerType.md)
|
|
49
|
+
- [IJsonLdContainerTypeArray](type-aliases/IJsonLdContainerTypeArray.md)
|
|
50
|
+
- [IJsonLdContextDefinitionElement](type-aliases/IJsonLdContextDefinitionElement.md)
|
|
51
|
+
- [IJsonLdContextDefinitionRoot](type-aliases/IJsonLdContextDefinitionRoot.md)
|
|
52
|
+
- [IJsonLdDocument](type-aliases/IJsonLdDocument.md)
|
|
53
|
+
- [IJsonLdExpandedTermDefinition](type-aliases/IJsonLdExpandedTermDefinition.md)
|
|
54
|
+
- [IJsonLdIncludedBlock](type-aliases/IJsonLdIncludedBlock.md)
|
|
55
|
+
- [IJsonLdIndexMapItem](type-aliases/IJsonLdIndexMapItem.md)
|
|
56
|
+
- [IJsonLdJsonArray](type-aliases/IJsonLdJsonArray.md)
|
|
57
|
+
- [IJsonLdJsonPrimitive](type-aliases/IJsonLdJsonPrimitive.md)
|
|
58
|
+
- [IJsonLdJsonValue](type-aliases/IJsonLdJsonValue.md)
|
|
59
|
+
- [IJsonLdListOrSetItem](type-aliases/IJsonLdListOrSetItem.md)
|
|
60
|
+
- [IJsonLdNodePrimitive](type-aliases/IJsonLdNodePrimitive.md)
|
|
61
|
+
- [IJsonLdValueObject](type-aliases/IJsonLdValueObject.md)
|
|
62
|
+
- [JsonLdContexts](type-aliases/JsonLdContexts.md)
|
|
63
|
+
- [JsonLdTypes](type-aliases/JsonLdTypes.md)
|
|
64
|
+
|
|
65
|
+
## Variables
|
|
66
|
+
|
|
67
|
+
- [CompiledJsonLdDocument](variables/CompiledJsonLdDocument.md)
|
|
68
|
+
- [CompiledJsonLdObject](variables/CompiledJsonLdObject.md)
|
|
69
|
+
- [CompiledJsonLdNodeObject](variables/CompiledJsonLdNodeObject.md)
|
|
70
|
+
- [CompiledJsonLdNodePrimitive](variables/CompiledJsonLdNodePrimitive.md)
|
|
71
|
+
- [CompiledJsonLdGraphObject](variables/CompiledJsonLdGraphObject.md)
|
|
72
|
+
- [CompiledJsonLdValueObject](variables/CompiledJsonLdValueObject.md)
|
|
73
|
+
- [CompiledJsonLdListObject](variables/CompiledJsonLdListObject.md)
|
|
74
|
+
- [CompiledJsonLdSetObject](variables/CompiledJsonLdSetObject.md)
|
|
75
|
+
- [CompiledJsonLdLanguageMap](variables/CompiledJsonLdLanguageMap.md)
|
|
76
|
+
- [CompiledJsonLdIndexMap](variables/CompiledJsonLdIndexMap.md)
|
|
77
|
+
- [CompiledJsonLdIndexMapItem](variables/CompiledJsonLdIndexMapItem.md)
|
|
78
|
+
- [CompiledJsonLdIdMap](variables/CompiledJsonLdIdMap.md)
|
|
79
|
+
- [CompiledJsonLdTypeMap](variables/CompiledJsonLdTypeMap.md)
|
|
80
|
+
- [CompiledJsonLdIncludedBlock](variables/CompiledJsonLdIncludedBlock.md)
|
|
81
|
+
- [CompiledJsonLdContextDefinition](variables/CompiledJsonLdContextDefinition.md)
|
|
82
|
+
- [CompiledJsonLdContextDefinitionRoot](variables/CompiledJsonLdContextDefinitionRoot.md)
|
|
83
|
+
- [CompiledJsonLdContextDefinitionElement](variables/CompiledJsonLdContextDefinitionElement.md)
|
|
84
|
+
- [CompiledJsonLdExpandedTermDefinition](variables/CompiledJsonLdExpandedTermDefinition.md)
|
|
85
|
+
- [CompiledJsonLdListOrSetItem](variables/CompiledJsonLdListOrSetItem.md)
|
|
86
|
+
- [CompiledJsonLdContainerType](variables/CompiledJsonLdContainerType.md)
|
|
87
|
+
- [CompiledJsonLdContainerTypeArray](variables/CompiledJsonLdContainerTypeArray.md)
|
|
88
|
+
- [CompiledJsonLdJsonPrimitive](variables/CompiledJsonLdJsonPrimitive.md)
|
|
89
|
+
- [CompiledJsonLdJsonArray](variables/CompiledJsonLdJsonArray.md)
|
|
90
|
+
- [CompiledJsonLdJsonObject](variables/CompiledJsonLdJsonObject.md)
|
|
91
|
+
- [CompiledJsonLdJsonValue](variables/CompiledJsonLdJsonValue.md)
|
|
92
|
+
- [JsonLdContexts](variables/JsonLdContexts.md)
|
|
93
|
+
- [JsonLdTypes](variables/JsonLdTypes.md)
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Interface: IJsonLdContextDefinition
|
|
2
|
+
|
|
3
|
+
A context definition defines a local context in a node object.
|
|
4
|
+
|
|
5
|
+
## See
|
|
6
|
+
|
|
7
|
+
https://www.w3.org/TR/json-ld11/#context-definitions
|
|
8
|
+
|
|
9
|
+
## Indexable
|
|
10
|
+
|
|
11
|
+
> \[`key`: `string`\]: `string` \| `boolean` \| [`IJsonLdExpandedTermDefinition`](../type-aliases/IJsonLdExpandedTermDefinition.md) \| \{ `@container`: `"@set"`; `@protected?`: `boolean`; \} \| `null` \| `undefined`
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
### @base? {#base}
|
|
16
|
+
|
|
17
|
+
> `optional` **@base?**: `string` \| `null`
|
|
18
|
+
|
|
19
|
+
***
|
|
20
|
+
|
|
21
|
+
### @direction? {#direction}
|
|
22
|
+
|
|
23
|
+
> `optional` **@direction?**: `"ltr"` \| `"rtl"` \| `null`
|
|
24
|
+
|
|
25
|
+
***
|
|
26
|
+
|
|
27
|
+
### @import? {#import}
|
|
28
|
+
|
|
29
|
+
> `optional` **@import?**: `string`
|
|
30
|
+
|
|
31
|
+
***
|
|
32
|
+
|
|
33
|
+
### @language? {#language}
|
|
34
|
+
|
|
35
|
+
> `optional` **@language?**: `string`
|
|
36
|
+
|
|
37
|
+
***
|
|
38
|
+
|
|
39
|
+
### @propagate? {#propagate}
|
|
40
|
+
|
|
41
|
+
> `optional` **@propagate?**: `boolean`
|
|
42
|
+
|
|
43
|
+
***
|
|
44
|
+
|
|
45
|
+
### @protected? {#protected}
|
|
46
|
+
|
|
47
|
+
> `optional` **@protected?**: `boolean`
|
|
48
|
+
|
|
49
|
+
***
|
|
50
|
+
|
|
51
|
+
### @type? {#type}
|
|
52
|
+
|
|
53
|
+
> `optional` **@type?**: `object`
|
|
54
|
+
|
|
55
|
+
#### @container
|
|
56
|
+
|
|
57
|
+
> **@container**: `"@set"`
|
|
58
|
+
|
|
59
|
+
#### @protected?
|
|
60
|
+
|
|
61
|
+
> `optional` **@protected?**: `boolean`
|
|
62
|
+
|
|
63
|
+
***
|
|
64
|
+
|
|
65
|
+
### @version? {#version}
|
|
66
|
+
|
|
67
|
+
> `optional` **@version?**: `"1.1"`
|
|
68
|
+
|
|
69
|
+
***
|
|
70
|
+
|
|
71
|
+
### @vocab? {#vocab}
|
|
72
|
+
|
|
73
|
+
> `optional` **@vocab?**: `string` \| `null`
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Interface: IJsonLdGraphObject
|
|
2
|
+
|
|
3
|
+
A graph object represents a named graph, which MAY include an explicit graph name.
|
|
4
|
+
|
|
5
|
+
## See
|
|
6
|
+
|
|
7
|
+
https://www.w3.org/TR/json-ld11/#graph-objects
|
|
8
|
+
|
|
9
|
+
## Properties
|
|
10
|
+
|
|
11
|
+
### @graph {#graph}
|
|
12
|
+
|
|
13
|
+
> **@graph**: [`IJsonLdNodeObject`](IJsonLdNodeObject.md) \| [`IJsonLdNodeObject`](IJsonLdNodeObject.md)[]
|
|
14
|
+
|
|
15
|
+
***
|
|
16
|
+
|
|
17
|
+
### @index? {#index}
|
|
18
|
+
|
|
19
|
+
> `optional` **@index?**: `string`
|
|
20
|
+
|
|
21
|
+
***
|
|
22
|
+
|
|
23
|
+
### @id? {#id}
|
|
24
|
+
|
|
25
|
+
> `optional` **@id?**: `string` \| `string`[]
|
|
26
|
+
|
|
27
|
+
***
|
|
28
|
+
|
|
29
|
+
### @context? {#context}
|
|
30
|
+
|
|
31
|
+
> `optional` **@context?**: [`IJsonLdContextDefinitionRoot`](../type-aliases/IJsonLdContextDefinitionRoot.md)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Interface: IJsonLdIdMap
|
|
2
|
+
|
|
3
|
+
An id map is used to associate an IRI with a value that allows easy programmatic access.
|
|
4
|
+
|
|
5
|
+
## See
|
|
6
|
+
|
|
7
|
+
https://www.w3.org/TR/json-ld11/#id-maps
|
|
8
|
+
|
|
9
|
+
## Indexable
|
|
10
|
+
|
|
11
|
+
> \[`key`: `string`\]: [`IJsonLdNodeObject`](IJsonLdNodeObject.md)
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# Interface: IJsonLdIndexMap
|
|
2
|
+
|
|
3
|
+
An index map allows keys that have no semantic meaning, but should be preserved regardless,
|
|
4
|
+
to be used in JSON-LD documents.
|
|
5
|
+
|
|
6
|
+
## See
|
|
7
|
+
|
|
8
|
+
https://www.w3.org/TR/json-ld11/#index-maps
|
|
9
|
+
|
|
10
|
+
## Indexable
|
|
11
|
+
|
|
12
|
+
> \[`key`: `string`\]: [`IJsonLdIndexMapItem`](../type-aliases/IJsonLdIndexMapItem.md) \| [`IJsonLdIndexMapItem`](../type-aliases/IJsonLdIndexMapItem.md)[]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Interface: IJsonLdLanguageMap
|
|
2
|
+
|
|
3
|
+
A language map is used to associate a language with a value in a way that allows easy programmatic access.
|
|
4
|
+
|
|
5
|
+
## See
|
|
6
|
+
|
|
7
|
+
https://www.w3.org/TR/json-ld11/#language-maps
|
|
8
|
+
|
|
9
|
+
## Indexable
|
|
10
|
+
|
|
11
|
+
> \[`key`: `string`\]: `string` \| `string`[] \| `null`
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Interface: IJsonLdListObject
|
|
2
|
+
|
|
3
|
+
A list represents an ordered set of values.
|
|
4
|
+
|
|
5
|
+
## See
|
|
6
|
+
|
|
7
|
+
https://www.w3.org/TR/json-ld11/#lists-and-sets
|
|
8
|
+
|
|
9
|
+
## Properties
|
|
10
|
+
|
|
11
|
+
### @list {#list}
|
|
12
|
+
|
|
13
|
+
> **@list**: [`IJsonLdListOrSetItem`](../type-aliases/IJsonLdListOrSetItem.md) \| [`IJsonLdListOrSetItem`](../type-aliases/IJsonLdListOrSetItem.md)[]
|
|
14
|
+
|
|
15
|
+
***
|
|
16
|
+
|
|
17
|
+
### @index? {#index}
|
|
18
|
+
|
|
19
|
+
> `optional` **@index?**: `string`
|