@ldo/solid-type-index 1.0.0-alpha.33 → 1.0.0-alpha.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.ldo/profile.context.cjs +22 -0
- package/dist/.ldo/profile.context.js +22 -0
- package/dist/.ldo/profile.context.js.map +1 -0
- package/dist/.ldo/profile.schema.cjs +52 -0
- package/dist/.ldo/profile.schema.js +52 -0
- package/dist/.ldo/profile.schema.js.map +1 -0
- package/dist/.ldo/profile.shapeTypes.cjs +20 -0
- package/dist/.ldo/profile.shapeTypes.js +21 -0
- package/dist/.ldo/profile.shapeTypes.js.map +1 -0
- package/dist/.ldo/profile.typings.d.cts +32 -0
- package/dist/.ldo/profile.typings.d.cts.map +1 -0
- package/dist/.ldo/profile.typings.d.ts +32 -0
- package/dist/.ldo/profile.typings.d.ts.map +1 -0
- package/dist/.ldo/typeIndex.context.cjs +55 -0
- package/dist/.ldo/typeIndex.context.js +55 -0
- package/dist/.ldo/typeIndex.context.js.map +1 -0
- package/dist/.ldo/typeIndex.schema.cjs +117 -0
- package/dist/.ldo/typeIndex.schema.js +117 -0
- package/dist/.ldo/typeIndex.schema.js.map +1 -0
- package/dist/.ldo/typeIndex.shapeTypes.cjs +29 -0
- package/dist/.ldo/typeIndex.shapeTypes.js +29 -0
- package/dist/.ldo/typeIndex.shapeTypes.js.map +1 -0
- package/dist/.ldo/typeIndex.typings.d.cts +39 -0
- package/dist/.ldo/typeIndex.typings.d.cts.map +1 -0
- package/dist/.ldo/typeIndex.typings.d.ts +39 -0
- package/dist/.ldo/typeIndex.typings.d.ts.map +1 -0
- package/dist/_virtual/rolldown_runtime.cjs +30 -0
- package/dist/constants.cjs +10 -0
- package/dist/constants.js +8 -0
- package/dist/constants.js.map +1 -0
- package/dist/getTypeIndex.cjs +57 -0
- package/dist/getTypeIndex.d.cts +16 -0
- package/dist/getTypeIndex.d.cts.map +1 -0
- package/dist/getTypeIndex.d.ts +16 -0
- package/dist/getTypeIndex.d.ts.map +1 -0
- package/dist/getTypeIndex.js +55 -0
- package/dist/getTypeIndex.js.map +1 -0
- package/dist/index.cjs +16 -0
- package/dist/index.d.cts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +6 -0
- package/dist/react/useInstanceUris.cjs +31 -0
- package/dist/react/useInstanceUris.d.cts +15 -0
- package/dist/react/useInstanceUris.d.cts.map +1 -0
- package/dist/react/useInstanceUris.d.ts +15 -0
- package/dist/react/useInstanceUris.d.ts.map +1 -0
- package/dist/react/useInstanceUris.js +31 -0
- package/dist/react/useInstanceUris.js.map +1 -0
- package/dist/react/useTypeIndexProfile.cjs +14 -0
- package/dist/react/useTypeIndexProfile.d.cts +9 -0
- package/dist/react/useTypeIndexProfile.d.cts.map +1 -0
- package/dist/react/useTypeIndexProfile.d.ts +9 -0
- package/dist/react/useTypeIndexProfile.d.ts.map +1 -0
- package/dist/react/useTypeIndexProfile.js +14 -0
- package/dist/react/useTypeIndexProfile.js.map +1 -0
- package/dist/react/util/useSubscribeToUris.cjs +28 -0
- package/dist/react/util/useSubscribeToUris.js +28 -0
- package/dist/react/util/useSubscribeToUris.js.map +1 -0
- package/dist/setTypeIndex.cjs +129 -0
- package/dist/{types/setTypeIndex.d.ts → setTypeIndex.d.cts} +17 -13
- package/dist/setTypeIndex.d.cts.map +1 -0
- package/dist/setTypeIndex.d.ts +57 -0
- package/dist/setTypeIndex.d.ts.map +1 -0
- package/dist/setTypeIndex.js +125 -0
- package/dist/setTypeIndex.js.map +1 -0
- package/dist/util/Options.cjs +16 -0
- package/dist/util/Options.d.cts +11 -0
- package/dist/util/Options.d.cts.map +1 -0
- package/dist/util/Options.d.ts +11 -0
- package/dist/util/Options.d.ts.map +1 -0
- package/dist/util/Options.js +16 -0
- package/dist/util/Options.js.map +1 -0
- package/package.json +22 -18
- package/src/.ldo/profile.shapeTypes.ts +3 -3
- package/src/.ldo/typeIndex.shapeTypes.ts +3 -3
- package/src/getTypeIndex.ts +7 -7
- package/src/index.ts +4 -4
- package/src/react/useInstanceUris.ts +5 -5
- package/src/react/useTypeIndexProfile.ts +2 -2
- package/src/setTypeIndex.ts +6 -6
- package/dist/cjs/.ldo/profile.context.cjs +0 -21
- package/dist/cjs/.ldo/profile.context.js.map +0 -1
- package/dist/cjs/.ldo/profile.schema.cjs +0 -64
- package/dist/cjs/.ldo/profile.schema.js.map +0 -1
- package/dist/cjs/.ldo/profile.shapeTypes.cjs +0 -19
- package/dist/cjs/.ldo/profile.shapeTypes.js.map +0 -1
- package/dist/cjs/.ldo/profile.typings.cjs +0 -3
- package/dist/cjs/.ldo/profile.typings.js.map +0 -1
- package/dist/cjs/.ldo/typeIndex.context.cjs +0 -66
- package/dist/cjs/.ldo/typeIndex.context.js.map +0 -1
- package/dist/cjs/.ldo/typeIndex.schema.cjs +0 -146
- package/dist/cjs/.ldo/typeIndex.schema.js.map +0 -1
- package/dist/cjs/.ldo/typeIndex.shapeTypes.cjs +0 -27
- package/dist/cjs/.ldo/typeIndex.shapeTypes.js.map +0 -1
- package/dist/cjs/.ldo/typeIndex.typings.cjs +0 -3
- package/dist/cjs/.ldo/typeIndex.typings.js.map +0 -1
- package/dist/cjs/constants.cjs +0 -9
- package/dist/cjs/constants.js.map +0 -1
- package/dist/cjs/getTypeIndex.cjs +0 -67
- package/dist/cjs/getTypeIndex.js.map +0 -1
- package/dist/cjs/index.cjs +0 -21
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/react/useInstanceUris.cjs +0 -33
- package/dist/cjs/react/useInstanceUris.js.map +0 -1
- package/dist/cjs/react/useTypeIndexProfile.cjs +0 -12
- package/dist/cjs/react/useTypeIndexProfile.js.map +0 -1
- package/dist/cjs/react/util/useSubscribeToUris.cjs +0 -33
- package/dist/cjs/react/util/useSubscribeToUris.js.map +0 -1
- package/dist/cjs/setTypeIndex.cjs +0 -163
- package/dist/cjs/setTypeIndex.js.map +0 -1
- package/dist/cjs/util/Options.cjs +0 -12
- package/dist/cjs/util/Options.js.map +0 -1
- package/dist/esm/.ldo/profile.context.js +0 -18
- package/dist/esm/.ldo/profile.context.js.map +0 -1
- package/dist/esm/.ldo/profile.schema.js +0 -61
- package/dist/esm/.ldo/profile.schema.js.map +0 -1
- package/dist/esm/.ldo/profile.shapeTypes.js +0 -16
- package/dist/esm/.ldo/profile.shapeTypes.js.map +0 -1
- package/dist/esm/.ldo/profile.typings.js +0 -2
- package/dist/esm/.ldo/profile.typings.js.map +0 -1
- package/dist/esm/.ldo/typeIndex.context.js +0 -63
- package/dist/esm/.ldo/typeIndex.context.js.map +0 -1
- package/dist/esm/.ldo/typeIndex.schema.js +0 -143
- package/dist/esm/.ldo/typeIndex.schema.js.map +0 -1
- package/dist/esm/.ldo/typeIndex.shapeTypes.js +0 -24
- package/dist/esm/.ldo/typeIndex.shapeTypes.js.map +0 -1
- package/dist/esm/.ldo/typeIndex.typings.js +0 -2
- package/dist/esm/.ldo/typeIndex.typings.js.map +0 -1
- package/dist/esm/constants.js +0 -6
- package/dist/esm/constants.js.map +0 -1
- package/dist/esm/getTypeIndex.js +0 -61
- package/dist/esm/getTypeIndex.js.map +0 -1
- package/dist/esm/index.js +0 -5
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/react/useInstanceUris.js +0 -30
- package/dist/esm/react/useInstanceUris.js.map +0 -1
- package/dist/esm/react/useTypeIndexProfile.js +0 -9
- package/dist/esm/react/useTypeIndexProfile.js.map +0 -1
- package/dist/esm/react/util/useSubscribeToUris.js +0 -30
- package/dist/esm/react/util/useSubscribeToUris.js.map +0 -1
- package/dist/esm/setTypeIndex.js +0 -156
- package/dist/esm/setTypeIndex.js.map +0 -1
- package/dist/esm/util/Options.js +0 -9
- package/dist/esm/util/Options.js.map +0 -1
- package/dist/types/.ldo/profile.context.d.ts +0 -8
- package/dist/types/.ldo/profile.context.d.ts.map +0 -1
- package/dist/types/.ldo/profile.schema.d.ts +0 -8
- package/dist/types/.ldo/profile.schema.d.ts.map +0 -1
- package/dist/types/.ldo/profile.shapeTypes.d.ts +0 -12
- package/dist/types/.ldo/profile.shapeTypes.d.ts.map +0 -1
- package/dist/types/.ldo/profile.typings.d.ts +0 -26
- package/dist/types/.ldo/profile.typings.d.ts.map +0 -1
- package/dist/types/.ldo/typeIndex.context.d.ts +0 -8
- package/dist/types/.ldo/typeIndex.context.d.ts.map +0 -1
- package/dist/types/.ldo/typeIndex.schema.d.ts +0 -8
- package/dist/types/.ldo/typeIndex.schema.d.ts.map +0 -1
- package/dist/types/.ldo/typeIndex.shapeTypes.d.ts +0 -16
- package/dist/types/.ldo/typeIndex.shapeTypes.d.ts.map +0 -1
- package/dist/types/.ldo/typeIndex.typings.d.ts +0 -53
- package/dist/types/.ldo/typeIndex.typings.d.ts.map +0 -1
- package/dist/types/constants.d.ts +0 -6
- package/dist/types/constants.d.ts.map +0 -1
- package/dist/types/getTypeIndex.d.ts +0 -10
- package/dist/types/getTypeIndex.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -5
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/react/useInstanceUris.d.ts +0 -9
- package/dist/types/react/useInstanceUris.d.ts.map +0 -1
- package/dist/types/react/useTypeIndexProfile.d.ts +0 -3
- package/dist/types/react/useTypeIndexProfile.d.ts.map +0 -1
- package/dist/types/react/util/useSubscribeToUris.d.ts +0 -2
- package/dist/types/react/util/useSubscribeToUris.d.ts.map +0 -1
- package/dist/types/setTypeIndex.d.ts.map +0 -1
- package/dist/types/util/Options.d.ts +0 -11
- package/dist/types/util/Options.d.ts.map +0 -1
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/.ldo/profile.context.ts
|
|
3
|
+
/**
|
|
4
|
+
* =============================================================================
|
|
5
|
+
* profileContext: JSONLD Context for profile
|
|
6
|
+
* =============================================================================
|
|
7
|
+
*/
|
|
8
|
+
const profileContext = {
|
|
9
|
+
privateTypeIndex: {
|
|
10
|
+
"@id": "http://www.w3.org/ns/solid/terms#privateTypeIndex",
|
|
11
|
+
"@type": "@id",
|
|
12
|
+
"@isCollection": true
|
|
13
|
+
},
|
|
14
|
+
publicTypeIndex: {
|
|
15
|
+
"@id": "http://www.w3.org/ns/solid/terms#publicTypeIndex",
|
|
16
|
+
"@type": "@id",
|
|
17
|
+
"@isCollection": true
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
//#endregion
|
|
22
|
+
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
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
export { profileContext };
|
|
22
|
+
//# sourceMappingURL=profile.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.context.js","names":["profileContext: LdoJsonldContext"],"sources":["../../src/.ldo/profile.context.ts"],"sourcesContent":["import { 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,MAAaA,iBAAmC;CAC9C,kBAAkB;EAChB,OAAO;EACP,SAAS;EACT,iBAAiB;CAClB;CACD,iBAAiB;EACf,OAAO;EACP,SAAS;EACT,iBAAiB;CAClB;AACF"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/.ldo/profile.schema.ts
|
|
3
|
+
/**
|
|
4
|
+
* =============================================================================
|
|
5
|
+
* profileSchema: ShexJ Schema for profile
|
|
6
|
+
* =============================================================================
|
|
7
|
+
*/
|
|
8
|
+
const profileSchema = {
|
|
9
|
+
type: "Schema",
|
|
10
|
+
shapes: [{
|
|
11
|
+
id: "https://shaperepo.com/schemas/solidProfile#TypeIndexProfile",
|
|
12
|
+
type: "ShapeDecl",
|
|
13
|
+
shapeExpr: {
|
|
14
|
+
type: "Shape",
|
|
15
|
+
expression: {
|
|
16
|
+
type: "EachOf",
|
|
17
|
+
expressions: [{
|
|
18
|
+
type: "TripleConstraint",
|
|
19
|
+
predicate: "http://www.w3.org/ns/solid/terms#privateTypeIndex",
|
|
20
|
+
valueExpr: {
|
|
21
|
+
type: "NodeConstraint",
|
|
22
|
+
nodeKind: "iri"
|
|
23
|
+
},
|
|
24
|
+
min: 0,
|
|
25
|
+
max: -1,
|
|
26
|
+
annotations: [{
|
|
27
|
+
type: "Annotation",
|
|
28
|
+
predicate: "http://www.w3.org/2000/01/rdf-schema#comment",
|
|
29
|
+
object: { value: "A registry of all types used on the user's Pod (for private access only)" }
|
|
30
|
+
}]
|
|
31
|
+
}, {
|
|
32
|
+
type: "TripleConstraint",
|
|
33
|
+
predicate: "http://www.w3.org/ns/solid/terms#publicTypeIndex",
|
|
34
|
+
valueExpr: {
|
|
35
|
+
type: "NodeConstraint",
|
|
36
|
+
nodeKind: "iri"
|
|
37
|
+
},
|
|
38
|
+
min: 0,
|
|
39
|
+
max: -1,
|
|
40
|
+
annotations: [{
|
|
41
|
+
type: "Annotation",
|
|
42
|
+
predicate: "http://www.w3.org/2000/01/rdf-schema#comment",
|
|
43
|
+
object: { value: "A registry of all types used on the user's Pod (for public access)" }
|
|
44
|
+
}]
|
|
45
|
+
}]
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}]
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
//#endregion
|
|
52
|
+
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
|
+
|
|
50
|
+
//#endregion
|
|
51
|
+
export { profileSchema };
|
|
52
|
+
//# sourceMappingURL=profile.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.schema.js","names":["profileSchema: Schema"],"sources":["../../src/.ldo/profile.schema.ts"],"sourcesContent":["import { 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,MAAaA,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;KACX;KACD,KAAK;KACL,KAAK;KACL,aAAa,CACX;MACE,MAAM;MACN,WAAW;MACX,QAAQ,EACN,OACE,2EACH;KACF,CACF;IACF,GACD;KACE,MAAM;KACN,WAAW;KACX,WAAW;MACT,MAAM;MACN,UAAU;KACX;KACD,KAAK;KACL,KAAK;KACL,aAAa,CACX;MACE,MAAM;MACN,WAAW;MACX,QAAQ,EACN,OACE,qEACH;KACF,CACF;IACF,CACF;GACF;EACF;CACF,CACF;AACF"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const require__Users_jacksonmorgan_O_ldo_packages_solid_type_index_src__ldo_profile_schema = require('./profile.schema.cjs');
|
|
2
|
+
const require__Users_jacksonmorgan_O_ldo_packages_solid_type_index_src__ldo_profile_context = require('./profile.context.cjs');
|
|
3
|
+
|
|
4
|
+
//#region src/.ldo/profile.shapeTypes.ts
|
|
5
|
+
/**
|
|
6
|
+
* =============================================================================
|
|
7
|
+
* LDO ShapeTypes profile
|
|
8
|
+
* =============================================================================
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* TypeIndexProfile ShapeType
|
|
12
|
+
*/
|
|
13
|
+
const TypeIndexProfileShapeType = {
|
|
14
|
+
schema: require__Users_jacksonmorgan_O_ldo_packages_solid_type_index_src__ldo_profile_schema.profileSchema,
|
|
15
|
+
shape: "https://shaperepo.com/schemas/solidProfile#TypeIndexProfile",
|
|
16
|
+
context: require__Users_jacksonmorgan_O_ldo_packages_solid_type_index_src__ldo_profile_context.profileContext
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
exports.TypeIndexProfileShapeType = TypeIndexProfileShapeType;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { profileSchema } from "./profile.schema.js";
|
|
2
|
+
import { profileContext } from "./profile.context.js";
|
|
3
|
+
|
|
4
|
+
//#region src/.ldo/profile.shapeTypes.ts
|
|
5
|
+
/**
|
|
6
|
+
* =============================================================================
|
|
7
|
+
* LDO ShapeTypes profile
|
|
8
|
+
* =============================================================================
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* TypeIndexProfile ShapeType
|
|
12
|
+
*/
|
|
13
|
+
const TypeIndexProfileShapeType = {
|
|
14
|
+
schema: profileSchema,
|
|
15
|
+
shape: "https://shaperepo.com/schemas/solidProfile#TypeIndexProfile",
|
|
16
|
+
context: profileContext
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
//#endregion
|
|
20
|
+
export { TypeIndexProfileShapeType };
|
|
21
|
+
//# sourceMappingURL=profile.shapeTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.shapeTypes.js","names":["TypeIndexProfileShapeType: ShapeType<TypeIndexProfile>"],"sources":["../../src/.ldo/profile.shapeTypes.ts"],"sourcesContent":["import { ShapeType } from \"@ldo/ldo\";\nimport { profileSchema } from \"./profile.schema\";\nimport { profileContext } from \"./profile.context\";\nimport { 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,MAAaA,4BAAyD;CACpE,QAAQ;CACR,OAAO;CACP,SAAS;AACV"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { LdSet, LdoJsonldContext } from "@ldo/ldo";
|
|
2
|
+
|
|
3
|
+
//#region src/.ldo/profile.typings.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* =============================================================================
|
|
7
|
+
* Typescript Typings for profile
|
|
8
|
+
* =============================================================================
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* TypeIndexProfile Type
|
|
12
|
+
*/
|
|
13
|
+
interface TypeIndexProfile {
|
|
14
|
+
"@id"?: string;
|
|
15
|
+
"@context"?: LdoJsonldContext;
|
|
16
|
+
/**
|
|
17
|
+
* A registry of all types used on the user's Pod (for private access only)
|
|
18
|
+
*/
|
|
19
|
+
privateTypeIndex?: LdSet<{
|
|
20
|
+
"@id": string;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* A registry of all types used on the user's Pod (for public access)
|
|
24
|
+
*/
|
|
25
|
+
publicTypeIndex?: LdSet<{
|
|
26
|
+
"@id": string;
|
|
27
|
+
}>;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=profile.typings.d.ts.map
|
|
30
|
+
//#endregion
|
|
31
|
+
export { TypeIndexProfile };
|
|
32
|
+
//# sourceMappingURL=profile.typings.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.typings.d.cts","names":[],"sources":["../../../src/.ldo/profile.typings.ts"],"sourcesContent":[],"mappings":";;;;;;AAWA;;;;;AAYyB;UAZR,gBAAA;;eAEF;;;;qBAIM;;;;;;oBAMD"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { LdSet, LdoJsonldContext } from "@ldo/ldo";
|
|
2
|
+
|
|
3
|
+
//#region src/.ldo/profile.typings.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* =============================================================================
|
|
7
|
+
* Typescript Typings for profile
|
|
8
|
+
* =============================================================================
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* TypeIndexProfile Type
|
|
12
|
+
*/
|
|
13
|
+
interface TypeIndexProfile {
|
|
14
|
+
"@id"?: string;
|
|
15
|
+
"@context"?: LdoJsonldContext;
|
|
16
|
+
/**
|
|
17
|
+
* A registry of all types used on the user's Pod (for private access only)
|
|
18
|
+
*/
|
|
19
|
+
privateTypeIndex?: LdSet<{
|
|
20
|
+
"@id": string;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* A registry of all types used on the user's Pod (for public access)
|
|
24
|
+
*/
|
|
25
|
+
publicTypeIndex?: LdSet<{
|
|
26
|
+
"@id": string;
|
|
27
|
+
}>;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=profile.typings.d.ts.map
|
|
30
|
+
//#endregion
|
|
31
|
+
export { TypeIndexProfile };
|
|
32
|
+
//# sourceMappingURL=profile.typings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"profile.typings.d.ts","names":[],"sources":["../../../src/.ldo/profile.typings.ts"],"sourcesContent":[],"mappings":";;;;;;AAWA;;;;;AAYyB;UAZR,gBAAA;;eAEF;;;;qBAIM;;;;;;oBAMD"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/.ldo/typeIndex.context.ts
|
|
3
|
+
/**
|
|
4
|
+
* =============================================================================
|
|
5
|
+
* typeIndexContext: JSONLD Context for typeIndex
|
|
6
|
+
* =============================================================================
|
|
7
|
+
*/
|
|
8
|
+
const typeIndexContext = {
|
|
9
|
+
type: { "@id": "@type" },
|
|
10
|
+
TypeIndex: {
|
|
11
|
+
"@id": "http://www.w3.org/ns/solid/terms#TypeIndex",
|
|
12
|
+
"@context": { type: { "@id": "@type" } }
|
|
13
|
+
},
|
|
14
|
+
ListedDocument: {
|
|
15
|
+
"@id": "http://www.w3.org/ns/solid/terms#ListedDocument",
|
|
16
|
+
"@context": { type: { "@id": "@type" } }
|
|
17
|
+
},
|
|
18
|
+
TypeRegistration: {
|
|
19
|
+
"@id": "http://www.w3.org/ns/solid/terms#TypeRegistration",
|
|
20
|
+
"@context": {
|
|
21
|
+
type: { "@id": "@type" },
|
|
22
|
+
forClass: {
|
|
23
|
+
"@id": "http://www.w3.org/ns/solid/terms#forClass",
|
|
24
|
+
"@type": "@id"
|
|
25
|
+
},
|
|
26
|
+
instance: {
|
|
27
|
+
"@id": "http://www.w3.org/ns/solid/terms#instance",
|
|
28
|
+
"@type": "@id",
|
|
29
|
+
"@isCollection": true
|
|
30
|
+
},
|
|
31
|
+
instanceContainer: {
|
|
32
|
+
"@id": "http://www.w3.org/ns/solid/terms#instanceContainer",
|
|
33
|
+
"@type": "@id",
|
|
34
|
+
"@isCollection": true
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
forClass: {
|
|
39
|
+
"@id": "http://www.w3.org/ns/solid/terms#forClass",
|
|
40
|
+
"@type": "@id"
|
|
41
|
+
},
|
|
42
|
+
instance: {
|
|
43
|
+
"@id": "http://www.w3.org/ns/solid/terms#instance",
|
|
44
|
+
"@type": "@id",
|
|
45
|
+
"@isCollection": true
|
|
46
|
+
},
|
|
47
|
+
instanceContainer: {
|
|
48
|
+
"@id": "http://www.w3.org/ns/solid/terms#instanceContainer",
|
|
49
|
+
"@type": "@id",
|
|
50
|
+
"@isCollection": true
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
//#endregion
|
|
55
|
+
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
|
+
|
|
53
|
+
//#endregion
|
|
54
|
+
export { typeIndexContext };
|
|
55
|
+
//# sourceMappingURL=typeIndex.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typeIndex.context.js","names":["typeIndexContext: LdoJsonldContext"],"sources":["../../src/.ldo/typeIndex.context.ts"],"sourcesContent":["import { 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,MAAaA,mBAAqC;CAChD,MAAM,EACJ,OAAO,QACR;CACD,WAAW;EACT,OAAO;EACP,YAAY,EACV,MAAM,EACJ,OAAO,QACR,EACF;CACF;CACD,gBAAgB;EACd,OAAO;EACP,YAAY,EACV,MAAM,EACJ,OAAO,QACR,EACF;CACF;CACD,kBAAkB;EAChB,OAAO;EACP,YAAY;GACV,MAAM,EACJ,OAAO,QACR;GACD,UAAU;IACR,OAAO;IACP,SAAS;GACV;GACD,UAAU;IACR,OAAO;IACP,SAAS;IACT,iBAAiB;GAClB;GACD,mBAAmB;IACjB,OAAO;IACP,SAAS;IACT,iBAAiB;GAClB;EACF;CACF;CACD,UAAU;EACR,OAAO;EACP,SAAS;CACV;CACD,UAAU;EACR,OAAO;EACP,SAAS;EACT,iBAAiB;CAClB;CACD,mBAAmB;EACjB,OAAO;EACP,SAAS;EACT,iBAAiB;CAClB;AACF"}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/.ldo/typeIndex.schema.ts
|
|
3
|
+
/**
|
|
4
|
+
* =============================================================================
|
|
5
|
+
* typeIndexSchema: ShexJ Schema for typeIndex
|
|
6
|
+
* =============================================================================
|
|
7
|
+
*/
|
|
8
|
+
const typeIndexSchema = {
|
|
9
|
+
type: "Schema",
|
|
10
|
+
shapes: [{
|
|
11
|
+
id: "https://shaperepo.com/schemas/solidProfile#TypeIndexDocument",
|
|
12
|
+
type: "ShapeDecl",
|
|
13
|
+
shapeExpr: {
|
|
14
|
+
type: "Shape",
|
|
15
|
+
expression: {
|
|
16
|
+
type: "EachOf",
|
|
17
|
+
expressions: [{
|
|
18
|
+
type: "TripleConstraint",
|
|
19
|
+
predicate: "http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
|
|
20
|
+
valueExpr: {
|
|
21
|
+
type: "NodeConstraint",
|
|
22
|
+
values: ["http://www.w3.org/ns/solid/terms#TypeIndex"]
|
|
23
|
+
},
|
|
24
|
+
annotations: [{
|
|
25
|
+
type: "Annotation",
|
|
26
|
+
predicate: "http://www.w3.org/2000/01/rdf-schema#comment",
|
|
27
|
+
object: { value: "Defines the node as a TypeIndex" }
|
|
28
|
+
}]
|
|
29
|
+
}, {
|
|
30
|
+
type: "TripleConstraint",
|
|
31
|
+
predicate: "http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
|
|
32
|
+
valueExpr: {
|
|
33
|
+
type: "NodeConstraint",
|
|
34
|
+
values: ["http://www.w3.org/ns/solid/terms#ListedDocument"]
|
|
35
|
+
},
|
|
36
|
+
annotations: [{
|
|
37
|
+
type: "Annotation",
|
|
38
|
+
predicate: "http://www.w3.org/2000/01/rdf-schema#comment",
|
|
39
|
+
object: { value: "Defines the node as a Listed Document" }
|
|
40
|
+
}]
|
|
41
|
+
}]
|
|
42
|
+
},
|
|
43
|
+
extra: ["http://www.w3.org/1999/02/22-rdf-syntax-ns#type"]
|
|
44
|
+
}
|
|
45
|
+
}, {
|
|
46
|
+
id: "https://shaperepo.com/schemas/solidProfile#TypeRegistration",
|
|
47
|
+
type: "ShapeDecl",
|
|
48
|
+
shapeExpr: {
|
|
49
|
+
type: "Shape",
|
|
50
|
+
expression: {
|
|
51
|
+
type: "EachOf",
|
|
52
|
+
expressions: [
|
|
53
|
+
{
|
|
54
|
+
type: "TripleConstraint",
|
|
55
|
+
predicate: "http://www.w3.org/1999/02/22-rdf-syntax-ns#type",
|
|
56
|
+
valueExpr: {
|
|
57
|
+
type: "NodeConstraint",
|
|
58
|
+
values: ["http://www.w3.org/ns/solid/terms#TypeRegistration"]
|
|
59
|
+
},
|
|
60
|
+
annotations: [{
|
|
61
|
+
type: "Annotation",
|
|
62
|
+
predicate: "http://www.w3.org/2000/01/rdf-schema#comment",
|
|
63
|
+
object: { value: "Defines this node as a Type Registration" }
|
|
64
|
+
}]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
type: "TripleConstraint",
|
|
68
|
+
predicate: "http://www.w3.org/ns/solid/terms#forClass",
|
|
69
|
+
valueExpr: {
|
|
70
|
+
type: "NodeConstraint",
|
|
71
|
+
nodeKind: "iri"
|
|
72
|
+
},
|
|
73
|
+
annotations: [{
|
|
74
|
+
type: "Annotation",
|
|
75
|
+
predicate: "http://www.w3.org/2000/01/rdf-schema#comment",
|
|
76
|
+
object: { value: "The class of object at this type." }
|
|
77
|
+
}]
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
type: "TripleConstraint",
|
|
81
|
+
predicate: "http://www.w3.org/ns/solid/terms#instance",
|
|
82
|
+
valueExpr: {
|
|
83
|
+
type: "NodeConstraint",
|
|
84
|
+
nodeKind: "iri"
|
|
85
|
+
},
|
|
86
|
+
min: 0,
|
|
87
|
+
max: -1,
|
|
88
|
+
annotations: [{
|
|
89
|
+
type: "Annotation",
|
|
90
|
+
predicate: "http://www.w3.org/2000/01/rdf-schema#comment",
|
|
91
|
+
object: { value: "A specific resource that contains the class." }
|
|
92
|
+
}]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
type: "TripleConstraint",
|
|
96
|
+
predicate: "http://www.w3.org/ns/solid/terms#instanceContainer",
|
|
97
|
+
valueExpr: {
|
|
98
|
+
type: "NodeConstraint",
|
|
99
|
+
nodeKind: "iri"
|
|
100
|
+
},
|
|
101
|
+
min: 0,
|
|
102
|
+
max: -1,
|
|
103
|
+
annotations: [{
|
|
104
|
+
type: "Annotation",
|
|
105
|
+
predicate: "http://www.w3.org/2000/01/rdf-schema#comment",
|
|
106
|
+
object: { value: "Containers that contain resources with the class." }
|
|
107
|
+
}]
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
extra: ["http://www.w3.org/1999/02/22-rdf-syntax-ns#type"]
|
|
112
|
+
}
|
|
113
|
+
}]
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
//#endregion
|
|
117
|
+
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
|
+
|
|
115
|
+
//#endregion
|
|
116
|
+
export { typeIndexSchema };
|
|
117
|
+
//# sourceMappingURL=typeIndex.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typeIndex.schema.js","names":["typeIndexSchema: Schema"],"sources":["../../src/.ldo/typeIndex.schema.ts"],"sourcesContent":["import { Schema } from \"shexj\";\n\n/**\n * =============================================================================\n * typeIndexSchema: ShexJ Schema for typeIndex\n * =============================================================================\n */\nexport const typeIndexSchema: Schema = {\n type: \"Schema\",\n shapes: [\n {\n id: \"https://shaperepo.com/schemas/solidProfile#TypeIndexDocument\",\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/1999/02/22-rdf-syntax-ns#type\",\n valueExpr: {\n type: \"NodeConstraint\",\n values: [\"http://www.w3.org/ns/solid/terms#TypeIndex\"],\n },\n annotations: [\n {\n type: \"Annotation\",\n predicate: \"http://www.w3.org/2000/01/rdf-schema#comment\",\n object: {\n value: \"Defines the node as a TypeIndex\",\n },\n },\n ],\n },\n {\n type: \"TripleConstraint\",\n predicate: \"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\",\n valueExpr: {\n type: \"NodeConstraint\",\n values: [\"http://www.w3.org/ns/solid/terms#ListedDocument\"],\n },\n annotations: [\n {\n type: \"Annotation\",\n predicate: \"http://www.w3.org/2000/01/rdf-schema#comment\",\n object: {\n value: \"Defines the node as a Listed Document\",\n },\n },\n ],\n },\n ],\n },\n extra: [\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\"],\n },\n },\n {\n id: \"https://shaperepo.com/schemas/solidProfile#TypeRegistration\",\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/1999/02/22-rdf-syntax-ns#type\",\n valueExpr: {\n type: \"NodeConstraint\",\n values: [\"http://www.w3.org/ns/solid/terms#TypeRegistration\"],\n },\n annotations: [\n {\n type: \"Annotation\",\n predicate: \"http://www.w3.org/2000/01/rdf-schema#comment\",\n object: {\n value: \"Defines this node as a Type Registration\",\n },\n },\n ],\n },\n {\n type: \"TripleConstraint\",\n predicate: \"http://www.w3.org/ns/solid/terms#forClass\",\n valueExpr: {\n type: \"NodeConstraint\",\n nodeKind: \"iri\",\n },\n annotations: [\n {\n type: \"Annotation\",\n predicate: \"http://www.w3.org/2000/01/rdf-schema#comment\",\n object: {\n value: \"The class of object at this type.\",\n },\n },\n ],\n },\n {\n type: \"TripleConstraint\",\n predicate: \"http://www.w3.org/ns/solid/terms#instance\",\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: \"A specific resource that contains the class.\",\n },\n },\n ],\n },\n {\n type: \"TripleConstraint\",\n predicate: \"http://www.w3.org/ns/solid/terms#instanceContainer\",\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: \"Containers that contain resources with the class.\",\n },\n },\n ],\n },\n ],\n },\n extra: [\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\"],\n },\n },\n ],\n};\n"],"mappings":";;;;;;AAOA,MAAaA,kBAA0B;CACrC,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,QAAQ,CAAC,4CAA6C;KACvD;KACD,aAAa,CACX;MACE,MAAM;MACN,WAAW;MACX,QAAQ,EACN,OAAO,kCACR;KACF,CACF;IACF,GACD;KACE,MAAM;KACN,WAAW;KACX,WAAW;MACT,MAAM;MACN,QAAQ,CAAC,iDAAkD;KAC5D;KACD,aAAa,CACX;MACE,MAAM;MACN,WAAW;MACX,QAAQ,EACN,OAAO,wCACR;KACF,CACF;IACF,CACF;GACF;GACD,OAAO,CAAC,iDAAkD;EAC3D;CACF,GACD;EACE,IAAI;EACJ,MAAM;EACN,WAAW;GACT,MAAM;GACN,YAAY;IACV,MAAM;IACN,aAAa;KACX;MACE,MAAM;MACN,WAAW;MACX,WAAW;OACT,MAAM;OACN,QAAQ,CAAC,mDAAoD;MAC9D;MACD,aAAa,CACX;OACE,MAAM;OACN,WAAW;OACX,QAAQ,EACN,OAAO,2CACR;MACF,CACF;KACF;KACD;MACE,MAAM;MACN,WAAW;MACX,WAAW;OACT,MAAM;OACN,UAAU;MACX;MACD,aAAa,CACX;OACE,MAAM;OACN,WAAW;OACX,QAAQ,EACN,OAAO,oCACR;MACF,CACF;KACF;KACD;MACE,MAAM;MACN,WAAW;MACX,WAAW;OACT,MAAM;OACN,UAAU;MACX;MACD,KAAK;MACL,KAAK;MACL,aAAa,CACX;OACE,MAAM;OACN,WAAW;OACX,QAAQ,EACN,OAAO,+CACR;MACF,CACF;KACF;KACD;MACE,MAAM;MACN,WAAW;MACX,WAAW;OACT,MAAM;OACN,UAAU;MACX;MACD,KAAK;MACL,KAAK;MACL,aAAa,CACX;OACE,MAAM;OACN,WAAW;OACX,QAAQ,EACN,OAAO,oDACR;MACF,CACF;KACF;IACF;GACF;GACD,OAAO,CAAC,iDAAkD;EAC3D;CACF,CACF;AACF"}
|