@ldo/solid-type-index 1.0.0-alpha.5 → 1.0.0-alpha.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/dist/_ldo/profile.context.cjs +20 -0
- package/dist/_ldo/profile.context.mjs +22 -0
- package/dist/_ldo/profile.context.mjs.map +1 -0
- package/dist/_ldo/profile.schema.cjs +50 -0
- package/dist/_ldo/profile.schema.mjs +52 -0
- package/dist/_ldo/profile.schema.mjs.map +1 -0
- package/dist/_ldo/profile.shapeTypes.cjs +18 -0
- package/dist/_ldo/profile.shapeTypes.mjs +20 -0
- package/dist/_ldo/profile.shapeTypes.mjs.map +1 -0
- package/dist/_ldo/profile.typings.d.cts +30 -0
- package/dist/_ldo/profile.typings.d.cts.map +1 -0
- package/dist/_ldo/profile.typings.d.mts +30 -0
- package/dist/_ldo/profile.typings.d.mts.map +1 -0
- package/dist/_ldo/typeIndex.context.cjs +53 -0
- package/dist/_ldo/typeIndex.context.mjs +55 -0
- package/dist/_ldo/typeIndex.context.mjs.map +1 -0
- package/dist/_ldo/typeIndex.schema.cjs +115 -0
- package/dist/_ldo/typeIndex.schema.mjs +117 -0
- package/dist/_ldo/typeIndex.schema.mjs.map +1 -0
- package/dist/_ldo/typeIndex.shapeTypes.cjs +27 -0
- package/dist/_ldo/typeIndex.shapeTypes.mjs +28 -0
- package/dist/_ldo/typeIndex.shapeTypes.mjs.map +1 -0
- package/dist/_ldo/typeIndex.typings.d.cts +37 -0
- package/dist/_ldo/typeIndex.typings.d.cts.map +1 -0
- package/dist/_ldo/typeIndex.typings.d.mts +37 -0
- package/dist/_ldo/typeIndex.typings.d.mts.map +1 -0
- package/dist/constants.cjs +8 -0
- package/dist/constants.mjs +8 -0
- package/dist/constants.mjs.map +1 -0
- package/dist/getTypeIndex.cjs +52 -0
- package/dist/getTypeIndex.d.cts +14 -0
- package/dist/getTypeIndex.d.cts.map +1 -0
- package/dist/getTypeIndex.d.mts +14 -0
- package/dist/getTypeIndex.d.mts.map +1 -0
- package/dist/getTypeIndex.mjs +51 -0
- package/dist/getTypeIndex.mjs.map +1 -0
- package/dist/index.cjs +16 -0
- package/dist/index.d.cts +5 -0
- package/dist/index.d.mts +5 -0
- package/dist/index.mjs +5 -0
- package/dist/react/useInstanceUris.cjs +27 -0
- package/dist/react/useInstanceUris.d.cts +13 -0
- package/dist/react/useInstanceUris.d.cts.map +1 -0
- package/dist/react/useInstanceUris.d.mts +13 -0
- package/dist/react/useInstanceUris.d.mts.map +1 -0
- package/dist/react/useInstanceUris.mjs +29 -0
- package/dist/react/useInstanceUris.mjs.map +1 -0
- package/dist/react/useTypeIndexProfile.cjs +10 -0
- package/dist/react/useTypeIndexProfile.d.cts +7 -0
- package/dist/react/useTypeIndexProfile.d.cts.map +1 -0
- package/dist/react/useTypeIndexProfile.d.mts +7 -0
- package/dist/react/useTypeIndexProfile.d.mts.map +1 -0
- package/dist/react/useTypeIndexProfile.mjs +12 -0
- package/dist/react/useTypeIndexProfile.mjs.map +1 -0
- package/dist/react/util/useSubscribeToUris.cjs +24 -0
- package/dist/react/util/useSubscribeToUris.mjs +26 -0
- package/dist/react/util/useSubscribeToUris.mjs.map +1 -0
- package/dist/setTypeIndex.cjs +125 -0
- package/dist/setTypeIndex.d.cts +56 -0
- package/dist/setTypeIndex.d.cts.map +1 -0
- package/dist/setTypeIndex.d.mts +56 -0
- package/dist/setTypeIndex.d.mts.map +1 -0
- package/dist/setTypeIndex.mjs +123 -0
- package/dist/setTypeIndex.mjs.map +1 -0
- package/dist/util/Options.cjs +13 -0
- package/dist/util/Options.d.cts +11 -0
- package/dist/util/Options.d.cts.map +1 -0
- package/dist/util/Options.d.mts +11 -0
- package/dist/util/Options.d.mts.map +1 -0
- package/dist/util/Options.mjs +15 -0
- package/dist/util/Options.mjs.map +1 -0
- package/package.json +36 -21
- package/src/{.ldo → _ldo}/profile.context.ts +1 -1
- package/src/{.ldo → _ldo}/profile.schema.ts +1 -1
- package/src/{.ldo → _ldo}/profile.shapeTypes.ts +2 -2
- package/src/{.ldo → _ldo}/profile.typings.ts +1 -1
- package/src/{.ldo → _ldo}/typeIndex.context.ts +1 -1
- package/src/{.ldo → _ldo}/typeIndex.schema.ts +1 -1
- package/src/{.ldo → _ldo}/typeIndex.shapeTypes.ts +2 -2
- package/src/{.ldo → _ldo}/typeIndex.typings.ts +1 -1
- package/src/getTypeIndex.ts +4 -4
- package/src/react/useInstanceUris.ts +3 -1
- package/src/react/useTypeIndexProfile.ts +2 -2
- package/src/setTypeIndex.ts +7 -7
- package/src/util/Options.ts +0 -2
- package/dist/.ldo/profile.context.d.ts +0 -2
- package/dist/.ldo/profile.context.js +0 -16
- package/dist/.ldo/profile.context.js.map +0 -1
- package/dist/.ldo/profile.schema.d.ts +0 -2
- package/dist/.ldo/profile.schema.js +0 -59
- package/dist/.ldo/profile.schema.js.map +0 -1
- package/dist/.ldo/profile.shapeTypes.d.ts +0 -3
- package/dist/.ldo/profile.shapeTypes.js +0 -11
- package/dist/.ldo/profile.shapeTypes.js.map +0 -1
- package/dist/.ldo/profile.typings.d.ts +0 -11
- package/dist/.ldo/profile.typings.js +0 -3
- package/dist/.ldo/profile.typings.js.map +0 -1
- package/dist/.ldo/typeIndex.context.d.ts +0 -2
- package/dist/.ldo/typeIndex.context.js +0 -61
- package/dist/.ldo/typeIndex.context.js.map +0 -1
- package/dist/.ldo/typeIndex.schema.d.ts +0 -2
- package/dist/.ldo/typeIndex.schema.js +0 -141
- package/dist/.ldo/typeIndex.schema.js.map +0 -1
- package/dist/.ldo/typeIndex.shapeTypes.d.ts +0 -4
- package/dist/.ldo/typeIndex.shapeTypes.js +0 -16
- package/dist/.ldo/typeIndex.shapeTypes.js.map +0 -1
- package/dist/.ldo/typeIndex.typings.d.ts +0 -26
- package/dist/.ldo/typeIndex.typings.js +0 -3
- package/dist/.ldo/typeIndex.typings.js.map +0 -1
- package/dist/constants.d.ts +0 -5
- package/dist/constants.js +0 -9
- package/dist/constants.js.map +0 -1
- package/dist/getTypeIndex.d.ts +0 -9
- package/dist/getTypeIndex.js +0 -62
- package/dist/getTypeIndex.js.map +0 -1
- package/dist/index.d.ts +0 -4
- package/dist/index.js +0 -21
- package/dist/index.js.map +0 -1
- package/dist/react/useInstanceUris.d.ts +0 -2
- package/dist/react/useInstanceUris.js +0 -26
- package/dist/react/useInstanceUris.js.map +0 -1
- package/dist/react/useTypeIndexProfile.d.ts +0 -2
- package/dist/react/useTypeIndexProfile.js +0 -13
- package/dist/react/useTypeIndexProfile.js.map +0 -1
- package/dist/react/util/useSubscribeToUris.d.ts +0 -1
- package/dist/react/util/useSubscribeToUris.js +0 -31
- package/dist/react/util/useSubscribeToUris.js.map +0 -1
- package/dist/setTypeIndex.d.ts +0 -14
- package/dist/setTypeIndex.js +0 -124
- package/dist/setTypeIndex.js.map +0 -1
- package/dist/util/Options.d.ts +0 -10
- package/dist/util/Options.js +0 -13
- package/dist/util/Options.js.map +0 -1
- /package/src/{.shapes → _shapes}/profile.shex +0 -0
- /package/src/{.shapes → _shapes}/typeIndex.shex +0 -0
package/README.md
CHANGED
|
@@ -10,10 +10,9 @@ npm i @ldo/solid-type-index @ldo/solid
|
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
13
|
-
|
|
14
13
|
```typescript
|
|
15
14
|
import { initTypeIndex } from "@ldo/solid-type-index";
|
|
16
|
-
import { createSolidLdoDataset } from "@ldo/solid";
|
|
15
|
+
import { createSolidLdoDataset } from "@ldo/solid";
|
|
17
16
|
|
|
18
17
|
async function main() {
|
|
19
18
|
const myWebId = "https://example.com/profile/card#me";
|
|
@@ -23,7 +22,7 @@ async function main() {
|
|
|
23
22
|
await initTypeIndex(myWebId, { solidLdoDataset });
|
|
24
23
|
|
|
25
24
|
// Get Type Registrations
|
|
26
|
-
const typeRegistrations = await getTypeRegistrations(WEB_ID, {
|
|
25
|
+
const typeRegistrations = await getTypeRegistrations(WEB_ID, {
|
|
27
26
|
solidLdoDataset,
|
|
28
27
|
});
|
|
29
28
|
|
|
@@ -32,18 +31,19 @@ async function main() {
|
|
|
32
31
|
const bookmarkUris: string[] = await getInstanceUris(
|
|
33
32
|
"http://www.w3.org/2002/01/bookmark#Bookmark",
|
|
34
33
|
typeRegistrations,
|
|
35
|
-
{ solidLdoDataset }
|
|
34
|
+
{ solidLdoDataset },
|
|
36
35
|
);
|
|
37
|
-
|
|
38
36
|
}
|
|
39
37
|
main();
|
|
40
38
|
```
|
|
41
39
|
|
|
42
40
|
## Sponsorship
|
|
41
|
+
|
|
43
42
|
This project was made possible by a grant from NGI Zero Entrust via nlnet. Learn more on the [NLnet project page](https://nlnet.nl/project/SolidUsableApps/).
|
|
44
43
|
|
|
45
44
|
[<img src="https://nlnet.nl/logo/banner.png" alt="nlnet foundation logo" width="300" />](https://nlnet.nl/)
|
|
46
45
|
[<img src="https://nlnet.nl/image/logos/NGI0Entrust_tag.svg" alt="NGI Zero Entrust Logo" width="300" />](https://nlnet.nl/)
|
|
47
46
|
|
|
48
|
-
##
|
|
47
|
+
## License
|
|
48
|
+
|
|
49
49
|
MIT
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//#region src/_ldo/profile.context.ts
|
|
2
|
+
/**
|
|
3
|
+
* =============================================================================
|
|
4
|
+
* profileContext: JSONLD Context for profile
|
|
5
|
+
* =============================================================================
|
|
6
|
+
*/
|
|
7
|
+
const profileContext = {
|
|
8
|
+
privateTypeIndex: {
|
|
9
|
+
"@id": "http://www.w3.org/ns/solid/terms#privateTypeIndex",
|
|
10
|
+
"@type": "@id",
|
|
11
|
+
"@isCollection": true
|
|
12
|
+
},
|
|
13
|
+
publicTypeIndex: {
|
|
14
|
+
"@id": "http://www.w3.org/ns/solid/terms#publicTypeIndex",
|
|
15
|
+
"@type": "@id",
|
|
16
|
+
"@isCollection": true
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
exports.profileContext = profileContext;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
//#region src/_ldo/profile.context.ts
|
|
2
|
+
/**
|
|
3
|
+
* =============================================================================
|
|
4
|
+
* profileContext: JSONLD Context for profile
|
|
5
|
+
* =============================================================================
|
|
6
|
+
*/
|
|
7
|
+
const profileContext = {
|
|
8
|
+
privateTypeIndex: {
|
|
9
|
+
"@id": "http://www.w3.org/ns/solid/terms#privateTypeIndex",
|
|
10
|
+
"@type": "@id",
|
|
11
|
+
"@isCollection": true
|
|
12
|
+
},
|
|
13
|
+
publicTypeIndex: {
|
|
14
|
+
"@id": "http://www.w3.org/ns/solid/terms#publicTypeIndex",
|
|
15
|
+
"@type": "@id",
|
|
16
|
+
"@isCollection": true
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
//#endregion
|
|
20
|
+
export { profileContext };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=profile.context.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.context.mjs","names":[],"sources":["../../src/_ldo/profile.context.ts"],"sourcesContent":["import type { LdoJsonldContext } from \"@ldo/ldo\";\n\n/**\n * =============================================================================\n * profileContext: JSONLD Context for profile\n * =============================================================================\n */\nexport const profileContext: LdoJsonldContext = {\n privateTypeIndex: {\n \"@id\": \"http://www.w3.org/ns/solid/terms#privateTypeIndex\",\n \"@type\": \"@id\",\n \"@isCollection\": true,\n },\n publicTypeIndex: {\n \"@id\": \"http://www.w3.org/ns/solid/terms#publicTypeIndex\",\n \"@type\": \"@id\",\n \"@isCollection\": true,\n },\n};\n"],"mappings":";;;;;;AAOA,MAAa,iBAAmC;CAC9C,kBAAkB;EAChB,OAAO;EACP,SAAS;EACT,iBAAiB;EAClB;CACD,iBAAiB;EACf,OAAO;EACP,SAAS;EACT,iBAAiB;EAClB;CACF"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
//#region src/_ldo/profile.schema.ts
|
|
2
|
+
/**
|
|
3
|
+
* =============================================================================
|
|
4
|
+
* profileSchema: ShexJ Schema for profile
|
|
5
|
+
* =============================================================================
|
|
6
|
+
*/
|
|
7
|
+
const profileSchema = {
|
|
8
|
+
type: "Schema",
|
|
9
|
+
shapes: [{
|
|
10
|
+
id: "https://shaperepo.com/schemas/solidProfile#TypeIndexProfile",
|
|
11
|
+
type: "ShapeDecl",
|
|
12
|
+
shapeExpr: {
|
|
13
|
+
type: "Shape",
|
|
14
|
+
expression: {
|
|
15
|
+
type: "EachOf",
|
|
16
|
+
expressions: [{
|
|
17
|
+
type: "TripleConstraint",
|
|
18
|
+
predicate: "http://www.w3.org/ns/solid/terms#privateTypeIndex",
|
|
19
|
+
valueExpr: {
|
|
20
|
+
type: "NodeConstraint",
|
|
21
|
+
nodeKind: "iri"
|
|
22
|
+
},
|
|
23
|
+
min: 0,
|
|
24
|
+
max: -1,
|
|
25
|
+
annotations: [{
|
|
26
|
+
type: "Annotation",
|
|
27
|
+
predicate: "http://www.w3.org/2000/01/rdf-schema#comment",
|
|
28
|
+
object: { value: "A registry of all types used on the user's Pod (for private access only)" }
|
|
29
|
+
}]
|
|
30
|
+
}, {
|
|
31
|
+
type: "TripleConstraint",
|
|
32
|
+
predicate: "http://www.w3.org/ns/solid/terms#publicTypeIndex",
|
|
33
|
+
valueExpr: {
|
|
34
|
+
type: "NodeConstraint",
|
|
35
|
+
nodeKind: "iri"
|
|
36
|
+
},
|
|
37
|
+
min: 0,
|
|
38
|
+
max: -1,
|
|
39
|
+
annotations: [{
|
|
40
|
+
type: "Annotation",
|
|
41
|
+
predicate: "http://www.w3.org/2000/01/rdf-schema#comment",
|
|
42
|
+
object: { value: "A registry of all types used on the user's Pod (for public access)" }
|
|
43
|
+
}]
|
|
44
|
+
}]
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}]
|
|
48
|
+
};
|
|
49
|
+
//#endregion
|
|
50
|
+
exports.profileSchema = profileSchema;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
//#region src/_ldo/profile.schema.ts
|
|
2
|
+
/**
|
|
3
|
+
* =============================================================================
|
|
4
|
+
* profileSchema: ShexJ Schema for profile
|
|
5
|
+
* =============================================================================
|
|
6
|
+
*/
|
|
7
|
+
const profileSchema = {
|
|
8
|
+
type: "Schema",
|
|
9
|
+
shapes: [{
|
|
10
|
+
id: "https://shaperepo.com/schemas/solidProfile#TypeIndexProfile",
|
|
11
|
+
type: "ShapeDecl",
|
|
12
|
+
shapeExpr: {
|
|
13
|
+
type: "Shape",
|
|
14
|
+
expression: {
|
|
15
|
+
type: "EachOf",
|
|
16
|
+
expressions: [{
|
|
17
|
+
type: "TripleConstraint",
|
|
18
|
+
predicate: "http://www.w3.org/ns/solid/terms#privateTypeIndex",
|
|
19
|
+
valueExpr: {
|
|
20
|
+
type: "NodeConstraint",
|
|
21
|
+
nodeKind: "iri"
|
|
22
|
+
},
|
|
23
|
+
min: 0,
|
|
24
|
+
max: -1,
|
|
25
|
+
annotations: [{
|
|
26
|
+
type: "Annotation",
|
|
27
|
+
predicate: "http://www.w3.org/2000/01/rdf-schema#comment",
|
|
28
|
+
object: { value: "A registry of all types used on the user's Pod (for private access only)" }
|
|
29
|
+
}]
|
|
30
|
+
}, {
|
|
31
|
+
type: "TripleConstraint",
|
|
32
|
+
predicate: "http://www.w3.org/ns/solid/terms#publicTypeIndex",
|
|
33
|
+
valueExpr: {
|
|
34
|
+
type: "NodeConstraint",
|
|
35
|
+
nodeKind: "iri"
|
|
36
|
+
},
|
|
37
|
+
min: 0,
|
|
38
|
+
max: -1,
|
|
39
|
+
annotations: [{
|
|
40
|
+
type: "Annotation",
|
|
41
|
+
predicate: "http://www.w3.org/2000/01/rdf-schema#comment",
|
|
42
|
+
object: { value: "A registry of all types used on the user's Pod (for public access)" }
|
|
43
|
+
}]
|
|
44
|
+
}]
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}]
|
|
48
|
+
};
|
|
49
|
+
//#endregion
|
|
50
|
+
export { profileSchema };
|
|
51
|
+
|
|
52
|
+
//# sourceMappingURL=profile.schema.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.schema.mjs","names":[],"sources":["../../src/_ldo/profile.schema.ts"],"sourcesContent":["import type { Schema } from \"shexj\";\n\n/**\n * =============================================================================\n * profileSchema: ShexJ Schema for profile\n * =============================================================================\n */\nexport const profileSchema: Schema = {\n type: \"Schema\",\n shapes: [\n {\n id: \"https://shaperepo.com/schemas/solidProfile#TypeIndexProfile\",\n type: \"ShapeDecl\",\n shapeExpr: {\n type: \"Shape\",\n expression: {\n type: \"EachOf\",\n expressions: [\n {\n type: \"TripleConstraint\",\n predicate: \"http://www.w3.org/ns/solid/terms#privateTypeIndex\",\n valueExpr: {\n type: \"NodeConstraint\",\n nodeKind: \"iri\",\n },\n min: 0,\n max: -1,\n annotations: [\n {\n type: \"Annotation\",\n predicate: \"http://www.w3.org/2000/01/rdf-schema#comment\",\n object: {\n value:\n \"A registry of all types used on the user's Pod (for private access only)\",\n },\n },\n ],\n },\n {\n type: \"TripleConstraint\",\n predicate: \"http://www.w3.org/ns/solid/terms#publicTypeIndex\",\n valueExpr: {\n type: \"NodeConstraint\",\n nodeKind: \"iri\",\n },\n min: 0,\n max: -1,\n annotations: [\n {\n type: \"Annotation\",\n predicate: \"http://www.w3.org/2000/01/rdf-schema#comment\",\n object: {\n value:\n \"A registry of all types used on the user's Pod (for public access)\",\n },\n },\n ],\n },\n ],\n },\n },\n },\n ],\n};\n"],"mappings":";;;;;;AAOA,MAAa,gBAAwB;CACnC,MAAM;CACN,QAAQ,CACN;EACE,IAAI;EACJ,MAAM;EACN,WAAW;GACT,MAAM;GACN,YAAY;IACV,MAAM;IACN,aAAa,CACX;KACE,MAAM;KACN,WAAW;KACX,WAAW;MACT,MAAM;MACN,UAAU;MACX;KACD,KAAK;KACL,KAAK;KACL,aAAa,CACX;MACE,MAAM;MACN,WAAW;MACX,QAAQ,EACN,OACE,4EACH;MACF,CACF;KACF,EACD;KACE,MAAM;KACN,WAAW;KACX,WAAW;MACT,MAAM;MACN,UAAU;MACX;KACD,KAAK;KACL,KAAK;KACL,aAAa,CACX;MACE,MAAM;MACN,WAAW;MACX,QAAQ,EACN,OACE,sEACH;MACF,CACF;KACF,CACF;IACF;GACF;EACF,CACF;CACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const require_profile_schema = require("./profile.schema.cjs");
|
|
2
|
+
const require_profile_context = require("./profile.context.cjs");
|
|
3
|
+
//#region src/_ldo/profile.shapeTypes.ts
|
|
4
|
+
/**
|
|
5
|
+
* =============================================================================
|
|
6
|
+
* LDO ShapeTypes profile
|
|
7
|
+
* =============================================================================
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* TypeIndexProfile ShapeType
|
|
11
|
+
*/
|
|
12
|
+
const TypeIndexProfileShapeType = {
|
|
13
|
+
schema: require_profile_schema.profileSchema,
|
|
14
|
+
shape: "https://shaperepo.com/schemas/solidProfile#TypeIndexProfile",
|
|
15
|
+
context: require_profile_context.profileContext
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
exports.TypeIndexProfileShapeType = TypeIndexProfileShapeType;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { profileSchema } from "./profile.schema.mjs";
|
|
2
|
+
import { profileContext } from "./profile.context.mjs";
|
|
3
|
+
//#region src/_ldo/profile.shapeTypes.ts
|
|
4
|
+
/**
|
|
5
|
+
* =============================================================================
|
|
6
|
+
* LDO ShapeTypes profile
|
|
7
|
+
* =============================================================================
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* TypeIndexProfile ShapeType
|
|
11
|
+
*/
|
|
12
|
+
const TypeIndexProfileShapeType = {
|
|
13
|
+
schema: profileSchema,
|
|
14
|
+
shape: "https://shaperepo.com/schemas/solidProfile#TypeIndexProfile",
|
|
15
|
+
context: profileContext
|
|
16
|
+
};
|
|
17
|
+
//#endregion
|
|
18
|
+
export { TypeIndexProfileShapeType };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=profile.shapeTypes.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.shapeTypes.mjs","names":[],"sources":["../../src/_ldo/profile.shapeTypes.ts"],"sourcesContent":["import type { ShapeType } from \"@ldo/ldo\";\nimport { profileSchema } from \"./profile.schema\";\nimport { profileContext } from \"./profile.context\";\nimport type { TypeIndexProfile } from \"./profile.typings\";\n\n/**\n * =============================================================================\n * LDO ShapeTypes profile\n * =============================================================================\n */\n\n/**\n * TypeIndexProfile ShapeType\n */\nexport const TypeIndexProfileShapeType: ShapeType<TypeIndexProfile> = {\n schema: profileSchema,\n shape: \"https://shaperepo.com/schemas/solidProfile#TypeIndexProfile\",\n context: profileContext,\n};\n"],"mappings":";;;;;;;;;;;AAcA,MAAa,4BAAyD;CACpE,QAAQ;CACR,OAAO;CACP,SAAS;CACV"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { LdSet, LdoJsonldContext } from "@ldo/ldo";
|
|
2
|
+
|
|
3
|
+
//#region src/_ldo/profile.typings.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* =============================================================================
|
|
6
|
+
* Typescript Typings for profile
|
|
7
|
+
* =============================================================================
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* TypeIndexProfile Type
|
|
11
|
+
*/
|
|
12
|
+
interface TypeIndexProfile {
|
|
13
|
+
"@id"?: string;
|
|
14
|
+
"@context"?: LdoJsonldContext;
|
|
15
|
+
/**
|
|
16
|
+
* A registry of all types used on the user's Pod (for private access only)
|
|
17
|
+
*/
|
|
18
|
+
privateTypeIndex?: LdSet<{
|
|
19
|
+
"@id": string;
|
|
20
|
+
}>;
|
|
21
|
+
/**
|
|
22
|
+
* A registry of all types used on the user's Pod (for public access)
|
|
23
|
+
*/
|
|
24
|
+
publicTypeIndex?: LdSet<{
|
|
25
|
+
"@id": string;
|
|
26
|
+
}>;
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { TypeIndexProfile };
|
|
30
|
+
//# sourceMappingURL=profile.typings.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.typings.d.cts","names":[],"sources":["../../src/_ldo/profile.typings.ts"],"mappings":";;;;;AAWA;;;;;;UAAiB,gBAAA;EACf,KAAA;EACA,UAAA,GAAa,gBAAA;EAAb;;;EAIA,gBAAA,GAAmB,KAAA;IACjB,KAAA;EAAA;EAKgB;;;EAAlB,eAAA,GAAkB,KAAA;IAChB,KAAA;EAAA;AAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { LdSet, LdoJsonldContext } from "@ldo/ldo";
|
|
2
|
+
|
|
3
|
+
//#region src/_ldo/profile.typings.d.ts
|
|
4
|
+
/**
|
|
5
|
+
* =============================================================================
|
|
6
|
+
* Typescript Typings for profile
|
|
7
|
+
* =============================================================================
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* TypeIndexProfile Type
|
|
11
|
+
*/
|
|
12
|
+
interface TypeIndexProfile {
|
|
13
|
+
"@id"?: string;
|
|
14
|
+
"@context"?: LdoJsonldContext;
|
|
15
|
+
/**
|
|
16
|
+
* A registry of all types used on the user's Pod (for private access only)
|
|
17
|
+
*/
|
|
18
|
+
privateTypeIndex?: LdSet<{
|
|
19
|
+
"@id": string;
|
|
20
|
+
}>;
|
|
21
|
+
/**
|
|
22
|
+
* A registry of all types used on the user's Pod (for public access)
|
|
23
|
+
*/
|
|
24
|
+
publicTypeIndex?: LdSet<{
|
|
25
|
+
"@id": string;
|
|
26
|
+
}>;
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { TypeIndexProfile };
|
|
30
|
+
//# sourceMappingURL=profile.typings.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.typings.d.mts","names":[],"sources":["../../src/_ldo/profile.typings.ts"],"mappings":";;;;;AAWA;;;;;;UAAiB,gBAAA;EACf,KAAA;EACA,UAAA,GAAa,gBAAA;EAAb;;;EAIA,gBAAA,GAAmB,KAAA;IACjB,KAAA;EAAA;EAKgB;;;EAAlB,eAAA,GAAkB,KAAA;IAChB,KAAA;EAAA;AAAA"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
//#region src/_ldo/typeIndex.context.ts
|
|
2
|
+
/**
|
|
3
|
+
* =============================================================================
|
|
4
|
+
* typeIndexContext: JSONLD Context for typeIndex
|
|
5
|
+
* =============================================================================
|
|
6
|
+
*/
|
|
7
|
+
const typeIndexContext = {
|
|
8
|
+
type: { "@id": "@type" },
|
|
9
|
+
TypeIndex: {
|
|
10
|
+
"@id": "http://www.w3.org/ns/solid/terms#TypeIndex",
|
|
11
|
+
"@context": { type: { "@id": "@type" } }
|
|
12
|
+
},
|
|
13
|
+
ListedDocument: {
|
|
14
|
+
"@id": "http://www.w3.org/ns/solid/terms#ListedDocument",
|
|
15
|
+
"@context": { type: { "@id": "@type" } }
|
|
16
|
+
},
|
|
17
|
+
TypeRegistration: {
|
|
18
|
+
"@id": "http://www.w3.org/ns/solid/terms#TypeRegistration",
|
|
19
|
+
"@context": {
|
|
20
|
+
type: { "@id": "@type" },
|
|
21
|
+
forClass: {
|
|
22
|
+
"@id": "http://www.w3.org/ns/solid/terms#forClass",
|
|
23
|
+
"@type": "@id"
|
|
24
|
+
},
|
|
25
|
+
instance: {
|
|
26
|
+
"@id": "http://www.w3.org/ns/solid/terms#instance",
|
|
27
|
+
"@type": "@id",
|
|
28
|
+
"@isCollection": true
|
|
29
|
+
},
|
|
30
|
+
instanceContainer: {
|
|
31
|
+
"@id": "http://www.w3.org/ns/solid/terms#instanceContainer",
|
|
32
|
+
"@type": "@id",
|
|
33
|
+
"@isCollection": true
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
forClass: {
|
|
38
|
+
"@id": "http://www.w3.org/ns/solid/terms#forClass",
|
|
39
|
+
"@type": "@id"
|
|
40
|
+
},
|
|
41
|
+
instance: {
|
|
42
|
+
"@id": "http://www.w3.org/ns/solid/terms#instance",
|
|
43
|
+
"@type": "@id",
|
|
44
|
+
"@isCollection": true
|
|
45
|
+
},
|
|
46
|
+
instanceContainer: {
|
|
47
|
+
"@id": "http://www.w3.org/ns/solid/terms#instanceContainer",
|
|
48
|
+
"@type": "@id",
|
|
49
|
+
"@isCollection": true
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
//#endregion
|
|
53
|
+
exports.typeIndexContext = typeIndexContext;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
//#region src/_ldo/typeIndex.context.ts
|
|
2
|
+
/**
|
|
3
|
+
* =============================================================================
|
|
4
|
+
* typeIndexContext: JSONLD Context for typeIndex
|
|
5
|
+
* =============================================================================
|
|
6
|
+
*/
|
|
7
|
+
const typeIndexContext = {
|
|
8
|
+
type: { "@id": "@type" },
|
|
9
|
+
TypeIndex: {
|
|
10
|
+
"@id": "http://www.w3.org/ns/solid/terms#TypeIndex",
|
|
11
|
+
"@context": { type: { "@id": "@type" } }
|
|
12
|
+
},
|
|
13
|
+
ListedDocument: {
|
|
14
|
+
"@id": "http://www.w3.org/ns/solid/terms#ListedDocument",
|
|
15
|
+
"@context": { type: { "@id": "@type" } }
|
|
16
|
+
},
|
|
17
|
+
TypeRegistration: {
|
|
18
|
+
"@id": "http://www.w3.org/ns/solid/terms#TypeRegistration",
|
|
19
|
+
"@context": {
|
|
20
|
+
type: { "@id": "@type" },
|
|
21
|
+
forClass: {
|
|
22
|
+
"@id": "http://www.w3.org/ns/solid/terms#forClass",
|
|
23
|
+
"@type": "@id"
|
|
24
|
+
},
|
|
25
|
+
instance: {
|
|
26
|
+
"@id": "http://www.w3.org/ns/solid/terms#instance",
|
|
27
|
+
"@type": "@id",
|
|
28
|
+
"@isCollection": true
|
|
29
|
+
},
|
|
30
|
+
instanceContainer: {
|
|
31
|
+
"@id": "http://www.w3.org/ns/solid/terms#instanceContainer",
|
|
32
|
+
"@type": "@id",
|
|
33
|
+
"@isCollection": true
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
forClass: {
|
|
38
|
+
"@id": "http://www.w3.org/ns/solid/terms#forClass",
|
|
39
|
+
"@type": "@id"
|
|
40
|
+
},
|
|
41
|
+
instance: {
|
|
42
|
+
"@id": "http://www.w3.org/ns/solid/terms#instance",
|
|
43
|
+
"@type": "@id",
|
|
44
|
+
"@isCollection": true
|
|
45
|
+
},
|
|
46
|
+
instanceContainer: {
|
|
47
|
+
"@id": "http://www.w3.org/ns/solid/terms#instanceContainer",
|
|
48
|
+
"@type": "@id",
|
|
49
|
+
"@isCollection": true
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
//#endregion
|
|
53
|
+
export { typeIndexContext };
|
|
54
|
+
|
|
55
|
+
//# sourceMappingURL=typeIndex.context.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typeIndex.context.mjs","names":[],"sources":["../../src/_ldo/typeIndex.context.ts"],"sourcesContent":["import type { LdoJsonldContext } from \"@ldo/ldo\";\n\n/**\n * =============================================================================\n * typeIndexContext: JSONLD Context for typeIndex\n * =============================================================================\n */\nexport const typeIndexContext: LdoJsonldContext = {\n type: {\n \"@id\": \"@type\",\n },\n TypeIndex: {\n \"@id\": \"http://www.w3.org/ns/solid/terms#TypeIndex\",\n \"@context\": {\n type: {\n \"@id\": \"@type\",\n },\n },\n },\n ListedDocument: {\n \"@id\": \"http://www.w3.org/ns/solid/terms#ListedDocument\",\n \"@context\": {\n type: {\n \"@id\": \"@type\",\n },\n },\n },\n TypeRegistration: {\n \"@id\": \"http://www.w3.org/ns/solid/terms#TypeRegistration\",\n \"@context\": {\n type: {\n \"@id\": \"@type\",\n },\n forClass: {\n \"@id\": \"http://www.w3.org/ns/solid/terms#forClass\",\n \"@type\": \"@id\",\n },\n instance: {\n \"@id\": \"http://www.w3.org/ns/solid/terms#instance\",\n \"@type\": \"@id\",\n \"@isCollection\": true,\n },\n instanceContainer: {\n \"@id\": \"http://www.w3.org/ns/solid/terms#instanceContainer\",\n \"@type\": \"@id\",\n \"@isCollection\": true,\n },\n },\n },\n forClass: {\n \"@id\": \"http://www.w3.org/ns/solid/terms#forClass\",\n \"@type\": \"@id\",\n },\n instance: {\n \"@id\": \"http://www.w3.org/ns/solid/terms#instance\",\n \"@type\": \"@id\",\n \"@isCollection\": true,\n },\n instanceContainer: {\n \"@id\": \"http://www.w3.org/ns/solid/terms#instanceContainer\",\n \"@type\": \"@id\",\n \"@isCollection\": true,\n },\n};\n"],"mappings":";;;;;;AAOA,MAAa,mBAAqC;CAChD,MAAM,EACJ,OAAO,SACR;CACD,WAAW;EACT,OAAO;EACP,YAAY,EACV,MAAM,EACJ,OAAO,SACR,EACF;EACF;CACD,gBAAgB;EACd,OAAO;EACP,YAAY,EACV,MAAM,EACJ,OAAO,SACR,EACF;EACF;CACD,kBAAkB;EAChB,OAAO;EACP,YAAY;GACV,MAAM,EACJ,OAAO,SACR;GACD,UAAU;IACR,OAAO;IACP,SAAS;IACV;GACD,UAAU;IACR,OAAO;IACP,SAAS;IACT,iBAAiB;IAClB;GACD,mBAAmB;IACjB,OAAO;IACP,SAAS;IACT,iBAAiB;IAClB;GACF;EACF;CACD,UAAU;EACR,OAAO;EACP,SAAS;EACV;CACD,UAAU;EACR,OAAO;EACP,SAAS;EACT,iBAAiB;EAClB;CACD,mBAAmB;EACjB,OAAO;EACP,SAAS;EACT,iBAAiB;EAClB;CACF"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
//#region src/_ldo/typeIndex.schema.ts
|
|
2
|
+
/**
|
|
3
|
+
* =============================================================================
|
|
4
|
+
* typeIndexSchema: ShexJ Schema for typeIndex
|
|
5
|
+
* =============================================================================
|
|
6
|
+
*/
|
|
7
|
+
const typeIndexSchema = {
|
|
8
|
+
type: "Schema",
|
|
9
|
+
shapes: [{
|
|
10
|
+
id: "https://shaperepo.com/schemas/solidProfile#TypeIndexDocument",
|
|
11
|
+
type: "ShapeDecl",
|
|
12
|
+
shapeExpr: {
|
|
13
|
+
type: "Shape",
|
|
14
|
+
expression: {
|
|
15
|
+
type: "EachOf",
|
|
16
|
+
expressions: [{
|
|
17
|
+
type: "TripleConstraint",
|
|
18
|
+
predicate: "http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
|
|
19
|
+
valueExpr: {
|
|
20
|
+
type: "NodeConstraint",
|
|
21
|
+
values: ["http://www.w3.org/ns/solid/terms#TypeIndex"]
|
|
22
|
+
},
|
|
23
|
+
annotations: [{
|
|
24
|
+
type: "Annotation",
|
|
25
|
+
predicate: "http://www.w3.org/2000/01/rdf-schema#comment",
|
|
26
|
+
object: { value: "Defines the node as a TypeIndex" }
|
|
27
|
+
}]
|
|
28
|
+
}, {
|
|
29
|
+
type: "TripleConstraint",
|
|
30
|
+
predicate: "http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
|
|
31
|
+
valueExpr: {
|
|
32
|
+
type: "NodeConstraint",
|
|
33
|
+
values: ["http://www.w3.org/ns/solid/terms#ListedDocument"]
|
|
34
|
+
},
|
|
35
|
+
annotations: [{
|
|
36
|
+
type: "Annotation",
|
|
37
|
+
predicate: "http://www.w3.org/2000/01/rdf-schema#comment",
|
|
38
|
+
object: { value: "Defines the node as a Listed Document" }
|
|
39
|
+
}]
|
|
40
|
+
}]
|
|
41
|
+
},
|
|
42
|
+
extra: ["http://www.w3.org/1999/02/22-rdf-syntax-ns#type"]
|
|
43
|
+
}
|
|
44
|
+
}, {
|
|
45
|
+
id: "https://shaperepo.com/schemas/solidProfile#TypeRegistration",
|
|
46
|
+
type: "ShapeDecl",
|
|
47
|
+
shapeExpr: {
|
|
48
|
+
type: "Shape",
|
|
49
|
+
expression: {
|
|
50
|
+
type: "EachOf",
|
|
51
|
+
expressions: [
|
|
52
|
+
{
|
|
53
|
+
type: "TripleConstraint",
|
|
54
|
+
predicate: "http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
|
|
55
|
+
valueExpr: {
|
|
56
|
+
type: "NodeConstraint",
|
|
57
|
+
values: ["http://www.w3.org/ns/solid/terms#TypeRegistration"]
|
|
58
|
+
},
|
|
59
|
+
annotations: [{
|
|
60
|
+
type: "Annotation",
|
|
61
|
+
predicate: "http://www.w3.org/2000/01/rdf-schema#comment",
|
|
62
|
+
object: { value: "Defines this node as a Type Registration" }
|
|
63
|
+
}]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
type: "TripleConstraint",
|
|
67
|
+
predicate: "http://www.w3.org/ns/solid/terms#forClass",
|
|
68
|
+
valueExpr: {
|
|
69
|
+
type: "NodeConstraint",
|
|
70
|
+
nodeKind: "iri"
|
|
71
|
+
},
|
|
72
|
+
annotations: [{
|
|
73
|
+
type: "Annotation",
|
|
74
|
+
predicate: "http://www.w3.org/2000/01/rdf-schema#comment",
|
|
75
|
+
object: { value: "The class of object at this type." }
|
|
76
|
+
}]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
type: "TripleConstraint",
|
|
80
|
+
predicate: "http://www.w3.org/ns/solid/terms#instance",
|
|
81
|
+
valueExpr: {
|
|
82
|
+
type: "NodeConstraint",
|
|
83
|
+
nodeKind: "iri"
|
|
84
|
+
},
|
|
85
|
+
min: 0,
|
|
86
|
+
max: -1,
|
|
87
|
+
annotations: [{
|
|
88
|
+
type: "Annotation",
|
|
89
|
+
predicate: "http://www.w3.org/2000/01/rdf-schema#comment",
|
|
90
|
+
object: { value: "A specific resource that contains the class." }
|
|
91
|
+
}]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
type: "TripleConstraint",
|
|
95
|
+
predicate: "http://www.w3.org/ns/solid/terms#instanceContainer",
|
|
96
|
+
valueExpr: {
|
|
97
|
+
type: "NodeConstraint",
|
|
98
|
+
nodeKind: "iri"
|
|
99
|
+
},
|
|
100
|
+
min: 0,
|
|
101
|
+
max: -1,
|
|
102
|
+
annotations: [{
|
|
103
|
+
type: "Annotation",
|
|
104
|
+
predicate: "http://www.w3.org/2000/01/rdf-schema#comment",
|
|
105
|
+
object: { value: "Containers that contain resources with the class." }
|
|
106
|
+
}]
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
extra: ["http://www.w3.org/1999/02/22-rdf-syntax-ns#type"]
|
|
111
|
+
}
|
|
112
|
+
}]
|
|
113
|
+
};
|
|
114
|
+
//#endregion
|
|
115
|
+
exports.typeIndexSchema = typeIndexSchema;
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
//#region src/_ldo/typeIndex.schema.ts
|
|
2
|
+
/**
|
|
3
|
+
* =============================================================================
|
|
4
|
+
* typeIndexSchema: ShexJ Schema for typeIndex
|
|
5
|
+
* =============================================================================
|
|
6
|
+
*/
|
|
7
|
+
const typeIndexSchema = {
|
|
8
|
+
type: "Schema",
|
|
9
|
+
shapes: [{
|
|
10
|
+
id: "https://shaperepo.com/schemas/solidProfile#TypeIndexDocument",
|
|
11
|
+
type: "ShapeDecl",
|
|
12
|
+
shapeExpr: {
|
|
13
|
+
type: "Shape",
|
|
14
|
+
expression: {
|
|
15
|
+
type: "EachOf",
|
|
16
|
+
expressions: [{
|
|
17
|
+
type: "TripleConstraint",
|
|
18
|
+
predicate: "http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
|
|
19
|
+
valueExpr: {
|
|
20
|
+
type: "NodeConstraint",
|
|
21
|
+
values: ["http://www.w3.org/ns/solid/terms#TypeIndex"]
|
|
22
|
+
},
|
|
23
|
+
annotations: [{
|
|
24
|
+
type: "Annotation",
|
|
25
|
+
predicate: "http://www.w3.org/2000/01/rdf-schema#comment",
|
|
26
|
+
object: { value: "Defines the node as a TypeIndex" }
|
|
27
|
+
}]
|
|
28
|
+
}, {
|
|
29
|
+
type: "TripleConstraint",
|
|
30
|
+
predicate: "http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
|
|
31
|
+
valueExpr: {
|
|
32
|
+
type: "NodeConstraint",
|
|
33
|
+
values: ["http://www.w3.org/ns/solid/terms#ListedDocument"]
|
|
34
|
+
},
|
|
35
|
+
annotations: [{
|
|
36
|
+
type: "Annotation",
|
|
37
|
+
predicate: "http://www.w3.org/2000/01/rdf-schema#comment",
|
|
38
|
+
object: { value: "Defines the node as a Listed Document" }
|
|
39
|
+
}]
|
|
40
|
+
}]
|
|
41
|
+
},
|
|
42
|
+
extra: ["http://www.w3.org/1999/02/22-rdf-syntax-ns#type"]
|
|
43
|
+
}
|
|
44
|
+
}, {
|
|
45
|
+
id: "https://shaperepo.com/schemas/solidProfile#TypeRegistration",
|
|
46
|
+
type: "ShapeDecl",
|
|
47
|
+
shapeExpr: {
|
|
48
|
+
type: "Shape",
|
|
49
|
+
expression: {
|
|
50
|
+
type: "EachOf",
|
|
51
|
+
expressions: [
|
|
52
|
+
{
|
|
53
|
+
type: "TripleConstraint",
|
|
54
|
+
predicate: "http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
|
|
55
|
+
valueExpr: {
|
|
56
|
+
type: "NodeConstraint",
|
|
57
|
+
values: ["http://www.w3.org/ns/solid/terms#TypeRegistration"]
|
|
58
|
+
},
|
|
59
|
+
annotations: [{
|
|
60
|
+
type: "Annotation",
|
|
61
|
+
predicate: "http://www.w3.org/2000/01/rdf-schema#comment",
|
|
62
|
+
object: { value: "Defines this node as a Type Registration" }
|
|
63
|
+
}]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
type: "TripleConstraint",
|
|
67
|
+
predicate: "http://www.w3.org/ns/solid/terms#forClass",
|
|
68
|
+
valueExpr: {
|
|
69
|
+
type: "NodeConstraint",
|
|
70
|
+
nodeKind: "iri"
|
|
71
|
+
},
|
|
72
|
+
annotations: [{
|
|
73
|
+
type: "Annotation",
|
|
74
|
+
predicate: "http://www.w3.org/2000/01/rdf-schema#comment",
|
|
75
|
+
object: { value: "The class of object at this type." }
|
|
76
|
+
}]
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
type: "TripleConstraint",
|
|
80
|
+
predicate: "http://www.w3.org/ns/solid/terms#instance",
|
|
81
|
+
valueExpr: {
|
|
82
|
+
type: "NodeConstraint",
|
|
83
|
+
nodeKind: "iri"
|
|
84
|
+
},
|
|
85
|
+
min: 0,
|
|
86
|
+
max: -1,
|
|
87
|
+
annotations: [{
|
|
88
|
+
type: "Annotation",
|
|
89
|
+
predicate: "http://www.w3.org/2000/01/rdf-schema#comment",
|
|
90
|
+
object: { value: "A specific resource that contains the class." }
|
|
91
|
+
}]
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
type: "TripleConstraint",
|
|
95
|
+
predicate: "http://www.w3.org/ns/solid/terms#instanceContainer",
|
|
96
|
+
valueExpr: {
|
|
97
|
+
type: "NodeConstraint",
|
|
98
|
+
nodeKind: "iri"
|
|
99
|
+
},
|
|
100
|
+
min: 0,
|
|
101
|
+
max: -1,
|
|
102
|
+
annotations: [{
|
|
103
|
+
type: "Annotation",
|
|
104
|
+
predicate: "http://www.w3.org/2000/01/rdf-schema#comment",
|
|
105
|
+
object: { value: "Containers that contain resources with the class." }
|
|
106
|
+
}]
|
|
107
|
+
}
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
extra: ["http://www.w3.org/1999/02/22-rdf-syntax-ns#type"]
|
|
111
|
+
}
|
|
112
|
+
}]
|
|
113
|
+
};
|
|
114
|
+
//#endregion
|
|
115
|
+
export { typeIndexSchema };
|
|
116
|
+
|
|
117
|
+
//# sourceMappingURL=typeIndex.schema.mjs.map
|