@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 @@
|
|
|
1
|
+
{"version":3,"file":"IJsonLdIndexMap.js","sourceRoot":"","sources":["../../../src/models/IJsonLdIndexMap.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdIndexMapItem } from \"./IJsonLdIndexMapItem.js\";\n\n/**\n * This is a copy of the types from the npm jsonld package. This is necessary as the JSON schema generators\n * that are used in other packages cannot understand some of the types e.g. OrArray\n */\n\n/**\n * An index map allows keys that have no semantic meaning, but should be preserved regardless,\n * to be used in JSON-LD documents.\n * @see https://www.w3.org/TR/json-ld11/#index-maps\n */\nexport interface IJsonLdIndexMap {\n\t[key: string]: IJsonLdIndexMapItem | IJsonLdIndexMapItem[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IJsonLdIndexMapItem.js","sourceRoot":"","sources":["../../../src/models/IJsonLdIndexMapItem.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdListObject } from \"./IJsonLdListObject.js\";\nimport type { IJsonLdNodeObject } from \"./IJsonLdNodeObject.js\";\nimport type { IJsonLdSetObject } from \"./IJsonLdSetObject.js\";\nimport type { IJsonLdValueObject } from \"./IJsonLdValueObject.js\";\n\n/**\n * This is a copy of the types from the npm jsonld package. This is necessary as the JSON schema generators\n * that are used in other packages cannot understand some of the types e.g. OrArray\n */\n\n/**\n * The items that can be stored in an index map.\n */\nexport type IJsonLdIndexMapItem =\n\t| null\n\t| boolean\n\t| number\n\t| string\n\t| IJsonLdNodeObject\n\t| IJsonLdValueObject\n\t| IJsonLdListObject\n\t| IJsonLdSetObject;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IJsonLdJsonArray.js","sourceRoot":"","sources":["../../../src/models/IJsonLdJsonArray.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdJsonValue } from \"./IJsonLdJsonValue.js\";\n\n/**\n * This is a copy of the types from the npm jsonld package. This is necessary as the JSON schema generators\n * that are used in other packages cannot understand some of the types e.g. OrArray\n */\n\n/**\n * JSON Type for array.\n */\nexport type IJsonLdJsonArray = IJsonLdJsonValue[];\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IJsonLdJsonObject.js","sourceRoot":"","sources":["../../../src/models/IJsonLdJsonObject.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdJsonValue } from \"./IJsonLdJsonValue.js\";\n\n/**\n * This is a copy of the types from the npm jsonld package. This is necessary as the JSON schema generators\n * that are used in other packages cannot understand some of the types e.g. OrArray\n */\n\n/**\n * JSON Type for object.\n */\nexport interface IJsonLdJsonObject {\n\t[key: string]: IJsonLdJsonValue | undefined;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IJsonLdJsonPrimitive.js","sourceRoot":"","sources":["../../../src/models/IJsonLdJsonPrimitive.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * This is a copy of the types from the npm jsonld package. This is necessary as the JSON schema generators\n * that are used in other packages cannot understand some of the types e.g. OrArray\n */\n\n/**\n * JSON Primitive.\n */\nexport type IJsonLdJsonPrimitive = string | number | boolean | null;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IJsonLdJsonValue.js","sourceRoot":"","sources":["../../../src/models/IJsonLdJsonValue.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdJsonArray } from \"./IJsonLdJsonArray.js\";\nimport type { IJsonLdJsonObject } from \"./IJsonLdJsonObject.js\";\nimport type { IJsonLdJsonPrimitive } from \"./IJsonLdJsonPrimitive.js\";\n\n/**\n * This is a copy of the types from the npm jsonld package. This is necessary as the JSON schema generators\n * that are used in other packages cannot understand some of the types e.g. OrArray\n */\n\n/**\n * JSON Value.\n */\nexport type IJsonLdJsonValue = IJsonLdJsonPrimitive | IJsonLdJsonArray | IJsonLdJsonObject;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IJsonLdLanguageMap.js","sourceRoot":"","sources":["../../../src/models/IJsonLdLanguageMap.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * This is a copy of the types from the npm jsonld package. This is necessary as the JSON schema generators\n * that are used in other packages cannot understand some of the types e.g. OrArray\n */\n\n/**\n * A language map is used to associate a language with a value in a way that allows easy programmatic access.\n * @see https://www.w3.org/TR/json-ld11/#language-maps\n */\nexport interface IJsonLdLanguageMap {\n\t[key: string]: null | string | string[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IJsonLdListObject.js","sourceRoot":"","sources":["../../../src/models/IJsonLdListObject.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n/* eslint-disable jsdoc/require-jsdoc */\nimport type { IJsonLdListOrSetItem } from \"./IJsonLdListOrSetItem.js\";\n\n/**\n * This is a copy of the types from the npm jsonld package. This is necessary as the JSON schema generators\n * that are used in other packages cannot understand some of the types e.g. OrArray\n */\n\n/**\n * A list represents an ordered set of values.\n * @see https://www.w3.org/TR/json-ld11/#lists-and-sets\n */\nexport interface IJsonLdListObject {\n\t\"@list\": IJsonLdListOrSetItem | IJsonLdListOrSetItem[];\n\t\"@index\"?: string | undefined;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IJsonLdListOrSetItem.js","sourceRoot":"","sources":["../../../src/models/IJsonLdListOrSetItem.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"./IJsonLdNodeObject.js\";\nimport type { IJsonLdValueObject } from \"./IJsonLdValueObject.js\";\n\n/**\n * This is a copy of the types from the npm jsonld package. This is necessary as the JSON schema generators\n * that are used in other packages cannot understand some of the types e.g. OrArray\n */\n\n/**\n * A list or set item can be a null, boolean, number, string, node object, or value object.\n */\nexport type IJsonLdListOrSetItem =\n\tnull | boolean | number | string | IJsonLdNodeObject | IJsonLdValueObject;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IJsonLdNodeObject.js","sourceRoot":"","sources":["../../../src/models/IJsonLdNodeObject.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdIdMap } from \"./IJsonLdIdMap.js\";\nimport type { IJsonLdIncludedBlock } from \"./IJsonLdIncludedBlock.js\";\nimport type { IJsonLdIndexMap } from \"./IJsonLdIndexMap.js\";\nimport type { IJsonLdLanguageMap } from \"./IJsonLdLanguageMap.js\";\nimport type { IJsonLdNodePrimitive } from \"./IJsonLdNodePrimitive.js\";\nimport type { IJsonLdObject } from \"./IJsonLdObject.js\";\nimport type { IJsonLdTypeMap } from \"./IJsonLdTypeMap.js\";\n\n/**\n * This is a copy of the types from the npm jsonld package. This is necessary as the JSON schema generators\n * that are used in other packages cannot understand some of the types e.g. OrArray\n */\n\n/**\n * A node object represents zero or more properties of a node\n * in the graph serialized by the JSON-LD document.\n * @see https://www.w3.org/TR/json-ld11/#node-objects\n */\nexport interface IJsonLdNodeObject extends IJsonLdObject {\n\t[key: string]:\n\t\t| IJsonLdNodePrimitive\n\t\t| IJsonLdNodePrimitive[]\n\t\t| IJsonLdLanguageMap\n\t\t| IJsonLdIndexMap\n\t\t| IJsonLdIncludedBlock\n\t\t| IJsonLdIdMap\n\t\t| IJsonLdTypeMap\n\t\t| IJsonLdNodeObject[keyof IJsonLdNodeObject];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IJsonLdNodePrimitive.js","sourceRoot":"","sources":["../../../src/models/IJsonLdNodePrimitive.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdGraphObject } from \"./IJsonLdGraphObject.js\";\nimport type { IJsonLdListObject } from \"./IJsonLdListObject.js\";\nimport type { IJsonLdNodeObject } from \"./IJsonLdNodeObject.js\";\nimport type { IJsonLdSetObject } from \"./IJsonLdSetObject.js\";\nimport type { IJsonLdValueObject } from \"./IJsonLdValueObject.js\";\n\n/**\n * This is a copy of the types from the npm jsonld package. This is necessary as the JSON schema generators\n * that are used in other packages cannot understand some of the types e.g. OrArray\n */\n\n/**\n * A node primitive is a JSON-LD value which is not one of the defined NodeObject properties.\n */\nexport type IJsonLdNodePrimitive =\n\t| null\n\t| boolean\n\t| number\n\t| string\n\t| IJsonLdNodeObject\n\t| IJsonLdGraphObject\n\t| IJsonLdValueObject\n\t| IJsonLdListObject\n\t| IJsonLdSetObject;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IJsonLdObject.js","sourceRoot":"","sources":["../../../src/models/IJsonLdObject.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n/* eslint-disable jsdoc/require-jsdoc */\nimport type { IJsonLdContextDefinitionRoot } from \"./IJsonLdContextDefinitionRoot.js\";\nimport type { IJsonLdIncludedBlock } from \"./IJsonLdIncludedBlock.js\";\nimport type { IJsonLdJsonObject } from \"./IJsonLdJsonObject.js\";\nimport type { IJsonLdNodeObject } from \"./IJsonLdNodeObject.js\";\n\n/**\n * This is a copy of the types from the npm jsonld package. This is necessary as the JSON schema generators\n * that are used in other packages cannot understand some of the types e.g. OrArray\n */\n\n/**\n * An object represents the pre-defined properties of the node object\n * in the graph serialized by the JSON-LD document.\n * @see https://www.w3.org/TR/json-ld11/#node-objects\n */\nexport interface IJsonLdObject {\n\t\"@context\"?: IJsonLdContextDefinitionRoot | undefined;\n\t\"@id\"?: string | string[] | undefined;\n\t\"@included\"?: IJsonLdIncludedBlock | undefined;\n\t\"@graph\"?: IJsonLdNodeObject | IJsonLdNodeObject[] | undefined;\n\t\"@nest\"?: IJsonLdJsonObject | IJsonLdJsonObject[] | undefined;\n\t\"@type\"?: string | string[] | undefined;\n\t\"@reverse\"?: { [key: string]: string } | undefined;\n\t\"@index\"?: string | undefined;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IJsonLdSetObject.js","sourceRoot":"","sources":["../../../src/models/IJsonLdSetObject.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n/* eslint-disable jsdoc/require-jsdoc */\nimport type { IJsonLdListOrSetItem } from \"./IJsonLdListOrSetItem.js\";\n\n/**\n * This is a copy of the types from the npm jsonld package. This is necessary as the JSON schema generators\n * that are used in other packages cannot understand some of the types e.g. OrArray\n */\n\n/**\n * A set represents an unordered set of values.\n * @see https://www.w3.org/TR/json-ld11/#lists-and-sets\n */\nexport interface IJsonLdSetObject {\n\t\"@set\": IJsonLdListOrSetItem | IJsonLdListOrSetItem[];\n\t\"@index\"?: string | undefined;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IJsonLdTypeMap.js","sourceRoot":"","sources":["../../../src/models/IJsonLdTypeMap.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdNodeObject } from \"./IJsonLdNodeObject.js\";\n\n/**\n * This is a copy of the types from the npm jsonld package. This is necessary as the JSON schema generators\n * that are used in other packages cannot understand some of the types e.g. OrArray\n */\n\n/**\n * A type map is used to associate an IRI with a value that allows easy programmatic access.\n * @see https://www.w3.org/TR/json-ld11/#type-maps\n */\nexport interface IJsonLdTypeMap {\n\t[key: string]: string | IJsonLdNodeObject;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IJsonLdValueObject.js","sourceRoot":"","sources":["../../../src/models/IJsonLdValueObject.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport type { IJsonLdContextDefinitionRoot } from \"./IJsonLdContextDefinitionRoot.js\";\nimport type { IJsonLdJsonArray } from \"./IJsonLdJsonArray.js\";\nimport type { IJsonLdJsonObject } from \"./IJsonLdJsonObject.js\";\n\n/**\n * This is a copy of the types from the npm jsonld package. This is necessary as the JSON schema generators\n * that are used in other packages cannot understand some of the types e.g. OrArray\n */\n\n/**\n * A value object is used to explicitly associate a type or a language with a value\n * to create a typed value or a language-tagged string and possibly associate a base direction.\n * @see https://www.w3.org/TR/json-ld11/#value-objects\n */\nexport type IJsonLdValueObject = {\n\t\"@index\"?: string | undefined;\n\t\"@context\"?: IJsonLdContextDefinitionRoot | undefined;\n} & (\n\t| {\n\t\t\t\"@value\": null | boolean | number | string;\n\t\t\t\"@language\"?: string | undefined;\n\t\t\t\"@direction\"?: \"ltr\" | \"rtl\" | null | undefined;\n\t }\n\t| {\n\t\t\t\"@value\": null | boolean | number | string;\n\t\t\t\"@type\": string;\n\t }\n\t| {\n\t\t\t\"@value\": null | boolean | number | string | IJsonLdJsonObject | IJsonLdJsonArray;\n\t\t\t\"@type\": \"@json\";\n\t }\n);\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* The contexts of JSON-LD data.
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const JsonLdContexts = {
|
|
8
|
+
/**
|
|
9
|
+
* The canonical RDF namespace URI for JSON-LD.
|
|
10
|
+
*/
|
|
11
|
+
Namespace: "https://schema.3sixty.global/json-ld/",
|
|
12
|
+
/**
|
|
13
|
+
* The value to use in JSON-LD context for JSON-LD.
|
|
14
|
+
*/
|
|
15
|
+
Context: "https://schema.3sixty.global/json-ld/",
|
|
16
|
+
/**
|
|
17
|
+
* The JSON-LD Context URL for JSON-LD.
|
|
18
|
+
*/
|
|
19
|
+
JsonLdContext: "https://schema.3sixty.global/json-ld/types.jsonld"
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=jsonLdContexts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsonLdContexts.js","sourceRoot":"","sources":["../../../src/models/jsonLdContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,cAAc,GAAG;IAC7B;;OAEG;IACH,SAAS,EAAE,uCAAuC;IAElD;;OAEG;IACH,OAAO,EAAE,uCAAuC;IAEhD;;OAEG;IACH,aAAa,EAAE,mDAAmD;CACzD,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The contexts of JSON-LD data.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const JsonLdContexts = {\n\t/**\n\t * The canonical RDF namespace URI for JSON-LD.\n\t */\n\tNamespace: \"https://schema.3sixty.global/json-ld/\",\n\n\t/**\n\t * The value to use in JSON-LD context for JSON-LD.\n\t */\n\tContext: \"https://schema.3sixty.global/json-ld/\",\n\n\t/**\n\t * The JSON-LD Context URL for JSON-LD.\n\t */\n\tJsonLdContext: \"https://schema.3sixty.global/json-ld/types.jsonld\"\n} as const;\n\n/**\n * The contexts of JSON-LD data.\n */\nexport type JsonLdContexts = (typeof JsonLdContexts)[keyof typeof JsonLdContexts];\n"]}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
// Copyright 2024 IOTA Stiftung.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0.
|
|
3
|
+
/**
|
|
4
|
+
* The types of JSON-LD data.
|
|
5
|
+
*/
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
|
+
export const JsonLdTypes = {
|
|
8
|
+
/**
|
|
9
|
+
* Represents JSON-LD Document.
|
|
10
|
+
*/
|
|
11
|
+
Document: "JsonLdDocument",
|
|
12
|
+
/**
|
|
13
|
+
* Represents JSON-LD Object.
|
|
14
|
+
*/
|
|
15
|
+
Object: "JsonLdObject",
|
|
16
|
+
/**
|
|
17
|
+
* Represents JSON-LD Node Object.
|
|
18
|
+
*/
|
|
19
|
+
NodeObject: "JsonLdNodeObject",
|
|
20
|
+
/**
|
|
21
|
+
* Represents JSON-LD Node Primitive.
|
|
22
|
+
*/
|
|
23
|
+
NodePrimitive: "JsonLdNodePrimitive",
|
|
24
|
+
/**
|
|
25
|
+
* Represents JSON-LD Graph Object.
|
|
26
|
+
*/
|
|
27
|
+
GraphObject: "JsonLdGraphObject",
|
|
28
|
+
/**
|
|
29
|
+
* Represents JSON-LD Value Object.
|
|
30
|
+
*/
|
|
31
|
+
ValueObject: "JsonLdValueObject",
|
|
32
|
+
/**
|
|
33
|
+
* Represents JSON-LD List Object.
|
|
34
|
+
*/
|
|
35
|
+
ListObject: "JsonLdListObject",
|
|
36
|
+
/**
|
|
37
|
+
* Represents JSON-LD Set Object.
|
|
38
|
+
*/
|
|
39
|
+
SetObject: "JsonLdSetObject",
|
|
40
|
+
/**
|
|
41
|
+
* Represents JSON-LD Language Map.
|
|
42
|
+
*/
|
|
43
|
+
LanguageMap: "JsonLdLanguageMap",
|
|
44
|
+
/**
|
|
45
|
+
* Represents JSON-LD Index Map.
|
|
46
|
+
*/
|
|
47
|
+
IndexMap: "JsonLdIndexMap",
|
|
48
|
+
/**
|
|
49
|
+
* Represents JSON-LD Index Map Item.
|
|
50
|
+
*/
|
|
51
|
+
IndexMapItem: "JsonLdIndexMapItem",
|
|
52
|
+
/**
|
|
53
|
+
* Represents JSON-LD Id Map.
|
|
54
|
+
*/
|
|
55
|
+
IdMap: "JsonLdIdMap",
|
|
56
|
+
/**
|
|
57
|
+
* Represents JSON-LD Type Map.
|
|
58
|
+
*/
|
|
59
|
+
TypeMap: "JsonLdTypeMap",
|
|
60
|
+
/**
|
|
61
|
+
* Represents JSON-LD Included block.
|
|
62
|
+
*/
|
|
63
|
+
IncludedBlock: "JsonLdIncludedBlock",
|
|
64
|
+
/**
|
|
65
|
+
* Represents JSON-LD Context Definition.
|
|
66
|
+
*/
|
|
67
|
+
ContextDefinition: "JsonLdContextDefinition",
|
|
68
|
+
/**
|
|
69
|
+
* Represents JSON-LD Context Definition Element.
|
|
70
|
+
*/
|
|
71
|
+
ContextDefinitionElement: "JsonLdContextDefinitionElement",
|
|
72
|
+
/**
|
|
73
|
+
* Represents JSON-LD Context Definition Root.
|
|
74
|
+
*/
|
|
75
|
+
ContextDefinitionRoot: "JsonLdContextDefinitionRoot",
|
|
76
|
+
/**
|
|
77
|
+
* Represents JSON-LD Expanded Term Definition.
|
|
78
|
+
*/
|
|
79
|
+
ExpandedTermDefinition: "JsonLdExpandedTermDefinition",
|
|
80
|
+
/**
|
|
81
|
+
* Represents JSON-LD Keyword.
|
|
82
|
+
*/
|
|
83
|
+
Keyword: "JsonLdKeyword",
|
|
84
|
+
/**
|
|
85
|
+
* Represents JSON-LD List or Set Item.
|
|
86
|
+
*/
|
|
87
|
+
ListOrSetItem: "JsonLdListOrSetItem",
|
|
88
|
+
/**
|
|
89
|
+
* Represents JSON-LD Container Type.
|
|
90
|
+
*/
|
|
91
|
+
ContainerType: "JsonLdContainerType",
|
|
92
|
+
/**
|
|
93
|
+
* Represents JSON-LD Container Type Array.
|
|
94
|
+
*/
|
|
95
|
+
ContainerTypeArray: "JsonLdContainerTypeArray",
|
|
96
|
+
/**
|
|
97
|
+
* Represents JSON-LD JSON Primitive.
|
|
98
|
+
*/
|
|
99
|
+
JsonPrimitive: "JsonLdJsonPrimitive",
|
|
100
|
+
/**
|
|
101
|
+
* Represents JSON-LD JSON Array.
|
|
102
|
+
*/
|
|
103
|
+
JsonArray: "JsonLdJsonArray",
|
|
104
|
+
/**
|
|
105
|
+
* Represents JSON-LD JSON Object.
|
|
106
|
+
*/
|
|
107
|
+
JsonObject: "JsonLdJsonObject",
|
|
108
|
+
/**
|
|
109
|
+
* Represents JSON-LD JSON Value.
|
|
110
|
+
*/
|
|
111
|
+
JsonValue: "JsonLdJsonValue"
|
|
112
|
+
};
|
|
113
|
+
//# sourceMappingURL=jsonLdTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsonLdTypes.js","sourceRoot":"","sources":["../../../src/models/jsonLdTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B;;OAEG;IACH,QAAQ,EAAE,gBAAgB;IAE1B;;OAEG;IACH,MAAM,EAAE,cAAc;IAEtB;;OAEG;IACH,UAAU,EAAE,kBAAkB;IAE9B;;OAEG;IACH,aAAa,EAAE,qBAAqB;IAEpC;;OAEG;IACH,WAAW,EAAE,mBAAmB;IAEhC;;OAEG;IACH,WAAW,EAAE,mBAAmB;IAEhC;;OAEG;IACH,UAAU,EAAE,kBAAkB;IAE9B;;OAEG;IACH,SAAS,EAAE,iBAAiB;IAE5B;;OAEG;IACH,WAAW,EAAE,mBAAmB;IAEhC;;OAEG;IACH,QAAQ,EAAE,gBAAgB;IAE1B;;OAEG;IACH,YAAY,EAAE,oBAAoB;IAElC;;OAEG;IACH,KAAK,EAAE,aAAa;IAEpB;;OAEG;IACH,OAAO,EAAE,eAAe;IAExB;;OAEG;IACH,aAAa,EAAE,qBAAqB;IAEpC;;OAEG;IACH,iBAAiB,EAAE,yBAAyB;IAE5C;;OAEG;IACH,wBAAwB,EAAE,gCAAgC;IAE1D;;OAEG;IACH,qBAAqB,EAAE,6BAA6B;IAEpD;;OAEG;IACH,sBAAsB,EAAE,8BAA8B;IAEtD;;OAEG;IACH,OAAO,EAAE,eAAe;IAExB;;OAEG;IACH,aAAa,EAAE,qBAAqB;IAEpC;;OAEG;IACH,aAAa,EAAE,qBAAqB;IAEpC;;OAEG;IACH,kBAAkB,EAAE,0BAA0B;IAE9C;;OAEG;IACH,aAAa,EAAE,qBAAqB;IAEpC;;OAEG;IACH,SAAS,EAAE,iBAAiB;IAE5B;;OAEG;IACH,UAAU,EAAE,kBAAkB;IAE9B;;OAEG;IACH,SAAS,EAAE,iBAAiB;CACnB,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The types of JSON-LD data.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const JsonLdTypes = {\n\t/**\n\t * Represents JSON-LD Document.\n\t */\n\tDocument: \"JsonLdDocument\",\n\n\t/**\n\t * Represents JSON-LD Object.\n\t */\n\tObject: \"JsonLdObject\",\n\n\t/**\n\t * Represents JSON-LD Node Object.\n\t */\n\tNodeObject: \"JsonLdNodeObject\",\n\n\t/**\n\t * Represents JSON-LD Node Primitive.\n\t */\n\tNodePrimitive: \"JsonLdNodePrimitive\",\n\n\t/**\n\t * Represents JSON-LD Graph Object.\n\t */\n\tGraphObject: \"JsonLdGraphObject\",\n\n\t/**\n\t * Represents JSON-LD Value Object.\n\t */\n\tValueObject: \"JsonLdValueObject\",\n\n\t/**\n\t * Represents JSON-LD List Object.\n\t */\n\tListObject: \"JsonLdListObject\",\n\n\t/**\n\t * Represents JSON-LD Set Object.\n\t */\n\tSetObject: \"JsonLdSetObject\",\n\n\t/**\n\t * Represents JSON-LD Language Map.\n\t */\n\tLanguageMap: \"JsonLdLanguageMap\",\n\n\t/**\n\t * Represents JSON-LD Index Map.\n\t */\n\tIndexMap: \"JsonLdIndexMap\",\n\n\t/**\n\t * Represents JSON-LD Index Map Item.\n\t */\n\tIndexMapItem: \"JsonLdIndexMapItem\",\n\n\t/**\n\t * Represents JSON-LD Id Map.\n\t */\n\tIdMap: \"JsonLdIdMap\",\n\n\t/**\n\t * Represents JSON-LD Type Map.\n\t */\n\tTypeMap: \"JsonLdTypeMap\",\n\n\t/**\n\t * Represents JSON-LD Included block.\n\t */\n\tIncludedBlock: \"JsonLdIncludedBlock\",\n\n\t/**\n\t * Represents JSON-LD Context Definition.\n\t */\n\tContextDefinition: \"JsonLdContextDefinition\",\n\n\t/**\n\t * Represents JSON-LD Context Definition Element.\n\t */\n\tContextDefinitionElement: \"JsonLdContextDefinitionElement\",\n\n\t/**\n\t * Represents JSON-LD Context Definition Root.\n\t */\n\tContextDefinitionRoot: \"JsonLdContextDefinitionRoot\",\n\n\t/**\n\t * Represents JSON-LD Expanded Term Definition.\n\t */\n\tExpandedTermDefinition: \"JsonLdExpandedTermDefinition\",\n\n\t/**\n\t * Represents JSON-LD Keyword.\n\t */\n\tKeyword: \"JsonLdKeyword\",\n\n\t/**\n\t * Represents JSON-LD List or Set Item.\n\t */\n\tListOrSetItem: \"JsonLdListOrSetItem\",\n\n\t/**\n\t * Represents JSON-LD Container Type.\n\t */\n\tContainerType: \"JsonLdContainerType\",\n\n\t/**\n\t * Represents JSON-LD Container Type Array.\n\t */\n\tContainerTypeArray: \"JsonLdContainerTypeArray\",\n\n\t/**\n\t * Represents JSON-LD JSON Primitive.\n\t */\n\tJsonPrimitive: \"JsonLdJsonPrimitive\",\n\n\t/**\n\t * Represents JSON-LD JSON Array.\n\t */\n\tJsonArray: \"JsonLdJsonArray\",\n\n\t/**\n\t * Represents JSON-LD JSON Object.\n\t */\n\tJsonObject: \"JsonLdJsonObject\",\n\n\t/**\n\t * Represents JSON-LD JSON Value.\n\t */\n\tJsonValue: \"JsonLdJsonValue\"\n} as const;\n\n/**\n * The types of JSON-LD data.\n */\nexport type JsonLdTypes = (typeof JsonLdTypes)[keyof typeof JsonLdTypes];\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.3sixty.global/json-ld/JsonLdContainerType",
|
|
4
|
+
"title": "JsonLdContainerType",
|
|
5
|
+
"description": "JSON-LD container types.",
|
|
6
|
+
"anyOf": [
|
|
7
|
+
{
|
|
8
|
+
"const": "@language"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"const": "@index"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"const": "@id"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"const": "@graph"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"const": "@type"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.3sixty.global/json-ld/JsonLdContainerTypeArray",
|
|
4
|
+
"title": "JsonLdContainerTypeArray",
|
|
5
|
+
"description": "JSON-LD container type array.",
|
|
6
|
+
"anyOf": [
|
|
7
|
+
{
|
|
8
|
+
"type": "array",
|
|
9
|
+
"prefixItems": [
|
|
10
|
+
{
|
|
11
|
+
"const": "@graph"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"const": "@id"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"items": false,
|
|
18
|
+
"minItems": 2,
|
|
19
|
+
"maxItems": 2
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "array",
|
|
23
|
+
"prefixItems": [
|
|
24
|
+
{
|
|
25
|
+
"const": "@id"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"const": "@graph"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
31
|
+
"items": false,
|
|
32
|
+
"minItems": 2,
|
|
33
|
+
"maxItems": 2
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"type": "array",
|
|
37
|
+
"prefixItems": [
|
|
38
|
+
{
|
|
39
|
+
"const": "@set"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"const": "@graph"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"const": "@id"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"items": false,
|
|
49
|
+
"minItems": 3,
|
|
50
|
+
"maxItems": 3
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"type": "array",
|
|
54
|
+
"prefixItems": [
|
|
55
|
+
{
|
|
56
|
+
"const": "@set"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"const": "@id"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"const": "@graph"
|
|
63
|
+
}
|
|
64
|
+
],
|
|
65
|
+
"items": false,
|
|
66
|
+
"minItems": 3,
|
|
67
|
+
"maxItems": 3
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"type": "array",
|
|
71
|
+
"prefixItems": [
|
|
72
|
+
{
|
|
73
|
+
"const": "@graph"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"const": "@set"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"const": "@id"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
"items": false,
|
|
83
|
+
"minItems": 3,
|
|
84
|
+
"maxItems": 3
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"type": "array",
|
|
88
|
+
"prefixItems": [
|
|
89
|
+
{
|
|
90
|
+
"const": "@id"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"const": "@set"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"const": "@graph"
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
"items": false,
|
|
100
|
+
"minItems": 3,
|
|
101
|
+
"maxItems": 3
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"type": "array",
|
|
105
|
+
"prefixItems": [
|
|
106
|
+
{
|
|
107
|
+
"const": "@graph"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"const": "@id"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"const": "@set"
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"items": false,
|
|
117
|
+
"minItems": 3,
|
|
118
|
+
"maxItems": 3
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"type": "array",
|
|
122
|
+
"prefixItems": [
|
|
123
|
+
{
|
|
124
|
+
"const": "@id"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"const": "@graph"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"const": "@set"
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"items": false,
|
|
134
|
+
"minItems": 3,
|
|
135
|
+
"maxItems": 3
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"type": "array",
|
|
139
|
+
"prefixItems": [
|
|
140
|
+
{
|
|
141
|
+
"const": "@set"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"$ref": "https://schema.3sixty.global/json-ld/JsonLdContainerType"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"items": false,
|
|
148
|
+
"minItems": 2,
|
|
149
|
+
"maxItems": 2
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"type": "array",
|
|
153
|
+
"prefixItems": [
|
|
154
|
+
{
|
|
155
|
+
"$ref": "https://schema.3sixty.global/json-ld/JsonLdContainerType"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"const": "@set"
|
|
159
|
+
}
|
|
160
|
+
],
|
|
161
|
+
"items": false,
|
|
162
|
+
"minItems": 2,
|
|
163
|
+
"maxItems": 2
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.3sixty.global/json-ld/JsonLdContextDefinition",
|
|
4
|
+
"title": "JsonLdContextDefinition",
|
|
5
|
+
"description": "A context definition defines a local context in a node object.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"@base": {
|
|
9
|
+
"anyOf": [
|
|
10
|
+
{
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"type": "null"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"@direction": {
|
|
19
|
+
"anyOf": [
|
|
20
|
+
{
|
|
21
|
+
"const": "ltr"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"const": "rtl"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"type": "null"
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"@import": {
|
|
32
|
+
"type": "string"
|
|
33
|
+
},
|
|
34
|
+
"@language": {
|
|
35
|
+
"type": "string"
|
|
36
|
+
},
|
|
37
|
+
"@propagate": {
|
|
38
|
+
"type": "boolean"
|
|
39
|
+
},
|
|
40
|
+
"@protected": {
|
|
41
|
+
"type": "boolean"
|
|
42
|
+
},
|
|
43
|
+
"@type": {
|
|
44
|
+
"type": "object",
|
|
45
|
+
"properties": {
|
|
46
|
+
"@container": {
|
|
47
|
+
"const": "@set"
|
|
48
|
+
},
|
|
49
|
+
"@protected": {
|
|
50
|
+
"type": "boolean"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"required": [
|
|
54
|
+
"@container"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"@version": {
|
|
58
|
+
"const": "1.1"
|
|
59
|
+
},
|
|
60
|
+
"@vocab": {
|
|
61
|
+
"anyOf": [
|
|
62
|
+
{
|
|
63
|
+
"type": "string"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"type": "null"
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"additionalProperties": {
|
|
72
|
+
"anyOf": [
|
|
73
|
+
{
|
|
74
|
+
"type": "null"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"type": "string"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"$ref": "https://schema.3sixty.global/json-ld/JsonLdExpandedTermDefinition"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"anyOf": [
|
|
84
|
+
{
|
|
85
|
+
"anyOf": [
|
|
86
|
+
{
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"type": "null"
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"anyOf": [
|
|
96
|
+
{
|
|
97
|
+
"const": "ltr"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"const": "rtl"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"type": "null"
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"type": "string"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"type": "boolean"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"type": "object",
|
|
115
|
+
"properties": {
|
|
116
|
+
"@container": {
|
|
117
|
+
"const": "@set"
|
|
118
|
+
},
|
|
119
|
+
"@protected": {
|
|
120
|
+
"type": "boolean"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"required": [
|
|
124
|
+
"@container"
|
|
125
|
+
]
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"const": "1.1"
|
|
129
|
+
}
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://schema.3sixty.global/json-ld/JsonLdContextDefinitionElement",
|
|
4
|
+
"title": "JsonLdContextDefinitionElement",
|
|
5
|
+
"description": "A context definition element is used to define the types of a context definition.",
|
|
6
|
+
"anyOf": [
|
|
7
|
+
{
|
|
8
|
+
"type": "null"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"type": "string"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"$ref": "https://schema.3sixty.global/json-ld/JsonLdContextDefinition"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|