@ldo/solid-type-index 1.0.0-alpha.34 → 1.0.0-alpha.38

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.
Files changed (59) hide show
  1. package/dist/{.ldo → _ldo}/profile.context.cjs +1 -1
  2. package/dist/{.ldo → _ldo}/profile.context.js +1 -1
  3. package/dist/{.ldo → _ldo}/profile.context.js.map +1 -1
  4. package/dist/{.ldo → _ldo}/profile.schema.cjs +1 -1
  5. package/dist/{.ldo → _ldo}/profile.schema.js +1 -1
  6. package/dist/{.ldo → _ldo}/profile.schema.js.map +1 -1
  7. package/dist/{.ldo → _ldo}/profile.shapeTypes.cjs +1 -1
  8. package/dist/{.ldo → _ldo}/profile.shapeTypes.js +1 -1
  9. package/dist/{.ldo → _ldo}/profile.shapeTypes.js.map +1 -1
  10. package/dist/{.ldo → _ldo}/profile.typings.d.cts +1 -1
  11. package/dist/{.ldo → _ldo}/profile.typings.d.cts.map +1 -1
  12. package/dist/{.ldo → _ldo}/profile.typings.d.ts +1 -1
  13. package/dist/{.ldo → _ldo}/profile.typings.d.ts.map +1 -1
  14. package/dist/{.ldo → _ldo}/typeIndex.context.cjs +1 -1
  15. package/dist/{.ldo → _ldo}/typeIndex.context.js +1 -1
  16. package/dist/{.ldo → _ldo}/typeIndex.context.js.map +1 -1
  17. package/dist/{.ldo → _ldo}/typeIndex.schema.cjs +1 -1
  18. package/dist/{.ldo → _ldo}/typeIndex.schema.js +1 -1
  19. package/dist/{.ldo → _ldo}/typeIndex.schema.js.map +1 -1
  20. package/dist/{.ldo → _ldo}/typeIndex.shapeTypes.cjs +1 -1
  21. package/dist/{.ldo → _ldo}/typeIndex.shapeTypes.js +1 -1
  22. package/dist/{.ldo → _ldo}/typeIndex.shapeTypes.js.map +1 -1
  23. package/dist/{.ldo → _ldo}/typeIndex.typings.d.cts +1 -1
  24. package/dist/{.ldo → _ldo}/typeIndex.typings.d.cts.map +1 -1
  25. package/dist/{.ldo → _ldo}/typeIndex.typings.d.ts +1 -1
  26. package/dist/{.ldo → _ldo}/typeIndex.typings.d.ts.map +1 -1
  27. package/dist/getTypeIndex.cjs +2 -2
  28. package/dist/getTypeIndex.d.cts +2 -2
  29. package/dist/getTypeIndex.d.ts +2 -2
  30. package/dist/getTypeIndex.js +2 -2
  31. package/dist/getTypeIndex.js.map +1 -1
  32. package/dist/react/useInstanceUris.cjs +1 -1
  33. package/dist/react/useInstanceUris.js +1 -1
  34. package/dist/react/useInstanceUris.js.map +1 -1
  35. package/dist/react/useTypeIndexProfile.cjs +1 -1
  36. package/dist/react/useTypeIndexProfile.d.cts +1 -1
  37. package/dist/react/useTypeIndexProfile.d.ts +1 -1
  38. package/dist/react/useTypeIndexProfile.js +1 -1
  39. package/dist/react/useTypeIndexProfile.js.map +1 -1
  40. package/dist/setTypeIndex.cjs +2 -2
  41. package/dist/setTypeIndex.d.cts +1 -1
  42. package/dist/setTypeIndex.d.ts +1 -1
  43. package/dist/setTypeIndex.js +2 -2
  44. package/dist/setTypeIndex.js.map +1 -1
  45. package/package.json +9 -9
  46. package/src/getTypeIndex.ts +4 -4
  47. package/src/react/useInstanceUris.ts +1 -1
  48. package/src/react/useTypeIndexProfile.ts +2 -2
  49. package/src/setTypeIndex.ts +3 -3
  50. /package/src/{.ldo → _ldo}/profile.context.ts +0 -0
  51. /package/src/{.ldo → _ldo}/profile.schema.ts +0 -0
  52. /package/src/{.ldo → _ldo}/profile.shapeTypes.ts +0 -0
  53. /package/src/{.ldo → _ldo}/profile.typings.ts +0 -0
  54. /package/src/{.ldo → _ldo}/typeIndex.context.ts +0 -0
  55. /package/src/{.ldo → _ldo}/typeIndex.schema.ts +0 -0
  56. /package/src/{.ldo → _ldo}/typeIndex.shapeTypes.ts +0 -0
  57. /package/src/{.ldo → _ldo}/typeIndex.typings.ts +0 -0
  58. /package/src/{.shapes → _shapes}/profile.shex +0 -0
  59. /package/src/{.shapes → _shapes}/typeIndex.shex +0 -0
@@ -1,5 +1,5 @@
1
1
 
2
- //#region src/.ldo/profile.context.ts
2
+ //#region src/_ldo/profile.context.ts
3
3
  /**
4
4
  * =============================================================================
5
5
  * profileContext: JSONLD Context for profile
@@ -1,4 +1,4 @@
1
- //#region src/.ldo/profile.context.ts
1
+ //#region src/_ldo/profile.context.ts
2
2
  /**
3
3
  * =============================================================================
4
4
  * profileContext: JSONLD Context for profile
@@ -1 +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"}
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"}
@@ -1,5 +1,5 @@
1
1
 
2
- //#region src/.ldo/profile.schema.ts
2
+ //#region src/_ldo/profile.schema.ts
3
3
  /**
4
4
  * =============================================================================
5
5
  * profileSchema: ShexJ Schema for profile
@@ -1,4 +1,4 @@
1
- //#region src/.ldo/profile.schema.ts
1
+ //#region src/_ldo/profile.schema.ts
2
2
  /**
3
3
  * =============================================================================
4
4
  * profileSchema: ShexJ Schema for profile
@@ -1 +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"}
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"}
@@ -1,7 +1,7 @@
1
1
  const require__Users_jacksonmorgan_O_ldo_packages_solid_type_index_src__ldo_profile_schema = require('./profile.schema.cjs');
2
2
  const require__Users_jacksonmorgan_O_ldo_packages_solid_type_index_src__ldo_profile_context = require('./profile.context.cjs');
3
3
 
4
- //#region src/.ldo/profile.shapeTypes.ts
4
+ //#region src/_ldo/profile.shapeTypes.ts
5
5
  /**
6
6
  * =============================================================================
7
7
  * LDO ShapeTypes profile
@@ -1,7 +1,7 @@
1
1
  import { profileSchema } from "./profile.schema.js";
2
2
  import { profileContext } from "./profile.context.js";
3
3
 
4
- //#region src/.ldo/profile.shapeTypes.ts
4
+ //#region src/_ldo/profile.shapeTypes.ts
5
5
  /**
6
6
  * =============================================================================
7
7
  * LDO ShapeTypes profile
@@ -1 +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"}
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"}
@@ -1,6 +1,6 @@
1
1
  import { LdSet, LdoJsonldContext } from "@ldo/ldo";
2
2
 
3
- //#region src/.ldo/profile.typings.d.ts
3
+ //#region src/_ldo/profile.typings.d.ts
4
4
 
5
5
  /**
6
6
  * =============================================================================
@@ -1 +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"}
1
+ {"version":3,"file":"profile.typings.d.cts","names":[],"sources":["../../../src/_ldo/profile.typings.ts"],"sourcesContent":[],"mappings":";;;;;;AAWA;;;;;AAYyB;UAZR,gBAAA;;eAEF;;;;qBAIM;;;;;;oBAMD"}
@@ -1,6 +1,6 @@
1
1
  import { LdSet, LdoJsonldContext } from "@ldo/ldo";
2
2
 
3
- //#region src/.ldo/profile.typings.d.ts
3
+ //#region src/_ldo/profile.typings.d.ts
4
4
 
5
5
  /**
6
6
  * =============================================================================
@@ -1 +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"}
1
+ {"version":3,"file":"profile.typings.d.ts","names":[],"sources":["../../../src/_ldo/profile.typings.ts"],"sourcesContent":[],"mappings":";;;;;;AAWA;;;;;AAYyB;UAZR,gBAAA;;eAEF;;;;qBAIM;;;;;;oBAMD"}
@@ -1,5 +1,5 @@
1
1
 
2
- //#region src/.ldo/typeIndex.context.ts
2
+ //#region src/_ldo/typeIndex.context.ts
3
3
  /**
4
4
  * =============================================================================
5
5
  * typeIndexContext: JSONLD Context for typeIndex
@@ -1,4 +1,4 @@
1
- //#region src/.ldo/typeIndex.context.ts
1
+ //#region src/_ldo/typeIndex.context.ts
2
2
  /**
3
3
  * =============================================================================
4
4
  * typeIndexContext: JSONLD Context for typeIndex
@@ -1 +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"}
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"}
@@ -1,5 +1,5 @@
1
1
 
2
- //#region src/.ldo/typeIndex.schema.ts
2
+ //#region src/_ldo/typeIndex.schema.ts
3
3
  /**
4
4
  * =============================================================================
5
5
  * typeIndexSchema: ShexJ Schema for typeIndex
@@ -1,4 +1,4 @@
1
- //#region src/.ldo/typeIndex.schema.ts
1
+ //#region src/_ldo/typeIndex.schema.ts
2
2
  /**
3
3
  * =============================================================================
4
4
  * typeIndexSchema: ShexJ Schema for typeIndex
@@ -1 +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"}
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"}
@@ -1,7 +1,7 @@
1
1
  const require__Users_jacksonmorgan_O_ldo_packages_solid_type_index_src__ldo_typeIndex_schema = require('./typeIndex.schema.cjs');
2
2
  const require__Users_jacksonmorgan_O_ldo_packages_solid_type_index_src__ldo_typeIndex_context = require('./typeIndex.context.cjs');
3
3
 
4
- //#region src/.ldo/typeIndex.shapeTypes.ts
4
+ //#region src/_ldo/typeIndex.shapeTypes.ts
5
5
  /**
6
6
  * =============================================================================
7
7
  * LDO ShapeTypes typeIndex
@@ -1,7 +1,7 @@
1
1
  import { typeIndexSchema } from "./typeIndex.schema.js";
2
2
  import { typeIndexContext } from "./typeIndex.context.js";
3
3
 
4
- //#region src/.ldo/typeIndex.shapeTypes.ts
4
+ //#region src/_ldo/typeIndex.shapeTypes.ts
5
5
  /**
6
6
  * =============================================================================
7
7
  * LDO ShapeTypes typeIndex
@@ -1 +1 @@
1
- {"version":3,"file":"typeIndex.shapeTypes.js","names":["TypeIndexDocumentShapeType: ShapeType<TypeIndexDocument>","TypeRegistrationShapeType: ShapeType<TypeRegistration>"],"sources":["../../src/.ldo/typeIndex.shapeTypes.ts"],"sourcesContent":["import { ShapeType } from \"@ldo/ldo\";\nimport { typeIndexSchema } from \"./typeIndex.schema\";\nimport { typeIndexContext } from \"./typeIndex.context\";\nimport { TypeIndexDocument, TypeRegistration } from \"./typeIndex.typings\";\n\n/**\n * =============================================================================\n * LDO ShapeTypes typeIndex\n * =============================================================================\n */\n\n/**\n * TypeIndexDocument ShapeType\n */\nexport const TypeIndexDocumentShapeType: ShapeType<TypeIndexDocument> = {\n schema: typeIndexSchema,\n shape: \"https://shaperepo.com/schemas/solidProfile#TypeIndexDocument\",\n context: typeIndexContext,\n};\n\n/**\n * TypeRegistration ShapeType\n */\nexport const TypeRegistrationShapeType: ShapeType<TypeRegistration> = {\n schema: typeIndexSchema,\n shape: \"https://shaperepo.com/schemas/solidProfile#TypeRegistration\",\n context: typeIndexContext,\n};\n"],"mappings":";;;;;;;;;;;;AAcA,MAAaA,6BAA2D;CACtE,QAAQ;CACR,OAAO;CACP,SAAS;AACV;;;;AAKD,MAAaC,4BAAyD;CACpE,QAAQ;CACR,OAAO;CACP,SAAS;AACV"}
1
+ {"version":3,"file":"typeIndex.shapeTypes.js","names":["TypeIndexDocumentShapeType: ShapeType<TypeIndexDocument>","TypeRegistrationShapeType: ShapeType<TypeRegistration>"],"sources":["../../src/_ldo/typeIndex.shapeTypes.ts"],"sourcesContent":["import { ShapeType } from \"@ldo/ldo\";\nimport { typeIndexSchema } from \"./typeIndex.schema\";\nimport { typeIndexContext } from \"./typeIndex.context\";\nimport { TypeIndexDocument, TypeRegistration } from \"./typeIndex.typings\";\n\n/**\n * =============================================================================\n * LDO ShapeTypes typeIndex\n * =============================================================================\n */\n\n/**\n * TypeIndexDocument ShapeType\n */\nexport const TypeIndexDocumentShapeType: ShapeType<TypeIndexDocument> = {\n schema: typeIndexSchema,\n shape: \"https://shaperepo.com/schemas/solidProfile#TypeIndexDocument\",\n context: typeIndexContext,\n};\n\n/**\n * TypeRegistration ShapeType\n */\nexport const TypeRegistrationShapeType: ShapeType<TypeRegistration> = {\n schema: typeIndexSchema,\n shape: \"https://shaperepo.com/schemas/solidProfile#TypeRegistration\",\n context: typeIndexContext,\n};\n"],"mappings":";;;;;;;;;;;;AAcA,MAAaA,6BAA2D;CACtE,QAAQ;CACR,OAAO;CACP,SAAS;AACV;;;;AAKD,MAAaC,4BAAyD;CACpE,QAAQ;CACR,OAAO;CACP,SAAS;AACV"}
@@ -1,6 +1,6 @@
1
1
  import { LdSet, LdoJsonldContext } from "@ldo/ldo";
2
2
 
3
- //#region src/.ldo/typeIndex.typings.d.ts
3
+ //#region src/_ldo/typeIndex.typings.d.ts
4
4
 
5
5
  /**
6
6
  * TypeRegistration Type
@@ -1 +1 @@
1
- {"version":3,"file":"typeIndex.typings.d.cts","names":[],"sources":["../../../src/.ldo/typeIndex.typings.ts"],"sourcesContent":[],"mappings":";;;;;;;UA8BiB,gBAAA;;eAEF;;;;;;;;;;;;;;;;aAgBF;;;;;;sBAMS"}
1
+ {"version":3,"file":"typeIndex.typings.d.cts","names":[],"sources":["../../../src/_ldo/typeIndex.typings.ts"],"sourcesContent":[],"mappings":";;;;;;;UA8BiB,gBAAA;;eAEF;;;;;;;;;;;;;;;;aAgBF;;;;;;sBAMS"}
@@ -1,6 +1,6 @@
1
1
  import { LdSet, LdoJsonldContext } from "@ldo/ldo";
2
2
 
3
- //#region src/.ldo/typeIndex.typings.d.ts
3
+ //#region src/_ldo/typeIndex.typings.d.ts
4
4
 
5
5
  /**
6
6
  * TypeRegistration Type
@@ -1 +1 @@
1
- {"version":3,"file":"typeIndex.typings.d.ts","names":[],"sources":["../../../src/.ldo/typeIndex.typings.ts"],"sourcesContent":[],"mappings":";;;;;;;UA8BiB,gBAAA;;eAEF;;;;;;;;;;;;;;;;aAgBF;;;;;;sBAMS"}
1
+ {"version":3,"file":"typeIndex.typings.d.ts","names":[],"sources":["../../../src/_ldo/typeIndex.typings.ts"],"sourcesContent":[],"mappings":";;;;;;;UA8BiB,gBAAA;;eAEF;;;;;;;;;;;;;;;;aAgBF;;;;;;sBAMS"}
@@ -1,5 +1,5 @@
1
- const require__Users_jacksonmorgan_O_ldo_packages_solid_type_index_src__ldo_profile_shapeTypes = require('.ldo/profile.shapeTypes.cjs');
2
- const require__Users_jacksonmorgan_O_ldo_packages_solid_type_index_src__ldo_typeIndex_shapeTypes = require('.ldo/typeIndex.shapeTypes.cjs');
1
+ const require__Users_jacksonmorgan_O_ldo_packages_solid_type_index_src__ldo_profile_shapeTypes = require('./_ldo/profile.shapeTypes.cjs');
2
+ const require__Users_jacksonmorgan_O_ldo_packages_solid_type_index_src__ldo_typeIndex_shapeTypes = require('./_ldo/typeIndex.shapeTypes.cjs');
3
3
  const require__Users_jacksonmorgan_O_ldo_packages_solid_type_index_src_constants = require('./constants.cjs');
4
4
  const require__Users_jacksonmorgan_O_ldo_packages_solid_type_index_src_util_Options = require('./util/Options.cjs');
5
5
 
@@ -1,5 +1,5 @@
1
- import { TypeRegistration } from ".ldo/typeIndex.typings.cjs";
2
- import { TypeIndexProfile } from ".ldo/profile.typings.cjs";
1
+ import { TypeRegistration } from "./_ldo/typeIndex.typings.cjs";
2
+ import { TypeIndexProfile } from "./_ldo/profile.typings.cjs";
3
3
  import { Options } from "./util/Options.cjs";
4
4
  import { LdSet } from "@ldo/ldo";
5
5
  import { SolidLeafUri } from "@ldo/connected-solid";
@@ -1,5 +1,5 @@
1
- import { TypeRegistration } from ".ldo/typeIndex.typings.js";
2
- import { TypeIndexProfile } from ".ldo/profile.typings.js";
1
+ import { TypeRegistration } from "./_ldo/typeIndex.typings.js";
2
+ import { TypeIndexProfile } from "./_ldo/profile.typings.js";
3
3
  import { Options } from "./util/Options.js";
4
4
  import { SolidLeafUri } from "@ldo/connected-solid";
5
5
  import { LdSet } from "@ldo/ldo";
@@ -1,5 +1,5 @@
1
- import { TypeIndexProfileShapeType } from ".ldo/profile.shapeTypes.js";
2
- import { TypeRegistrationShapeType } from ".ldo/typeIndex.shapeTypes.js";
1
+ import { TypeIndexProfileShapeType } from "./_ldo/profile.shapeTypes.js";
2
+ import { TypeRegistrationShapeType } from "./_ldo/typeIndex.shapeTypes.js";
3
3
  import { RDF_TYPE, TYPE_REGISTRATION } from "./constants.js";
4
4
  import { guaranteeOptions } from "./util/Options.js";
5
5
 
@@ -1 +1 @@
1
- {"version":3,"file":"getTypeIndex.js","names":["webId: string","options?: Options","profile: TypeIndexProfile","uris: SolidLeafUri[]","classUri: string","typeRegistrations: TypeRegistration[]"],"sources":["../src/getTypeIndex.ts"],"sourcesContent":["import type { TypeRegistration } from \"./.ldo/typeIndex.typings\";\nimport type { TypeIndexProfile } from \"./.ldo/profile.typings\";\nimport { TypeIndexProfileShapeType } from \"./.ldo/profile.shapeTypes\";\nimport { TypeRegistrationShapeType } from \"./.ldo/typeIndex.shapeTypes\";\nimport { RDF_TYPE, TYPE_REGISTRATION } from \"./constants\";\nimport type { Options } from \"./util/Options\";\nimport { guaranteeOptions } from \"./util/Options\";\nimport type { LdSet } from \"@ldo/ldo\";\nimport type { SolidContainerUri, SolidLeafUri } from \"@ldo/connected-solid\";\n\nexport async function getTypeRegistrations(\n webId: string,\n options?: Options,\n): Promise<LdSet<TypeRegistration>> {\n const { dataset } = guaranteeOptions(options);\n\n // Get Profile\n const profile = await getProfile(webId, options);\n\n // Get Type Indexes\n const typeIndexUris = getTypeIndexesUrisFromProfile(profile);\n\n // Fetch the type Indexes\n await Promise.all(\n typeIndexUris.map(async (typeIndexUri) => {\n const typeIndexResource = dataset.getResource(typeIndexUri);\n const readResult = await typeIndexResource.readIfUnfetched();\n if (readResult.isError) throw readResult;\n }),\n );\n\n // Get Type Registrations\n return dataset\n .usingType(TypeRegistrationShapeType)\n .matchSubject(RDF_TYPE, TYPE_REGISTRATION);\n}\n\nexport async function getProfile(\n webId: string,\n options?: Options,\n): Promise<TypeIndexProfile> {\n const { dataset } = guaranteeOptions(options);\n const profileResource = dataset.getResource(webId);\n const readResult = await profileResource.readIfUnfetched();\n if (readResult.isError) throw readResult;\n return dataset.usingType(TypeIndexProfileShapeType).fromSubject(webId);\n}\n\nexport function getTypeIndexesUrisFromProfile(\n profile: TypeIndexProfile,\n): SolidLeafUri[] {\n const uris: SolidLeafUri[] = [];\n profile.privateTypeIndex?.forEach((indexNode) => {\n uris.push(indexNode[\"@id\"] as SolidLeafUri);\n });\n profile.publicTypeIndex?.forEach((indexNode) => {\n uris.push(indexNode[\"@id\"] as SolidLeafUri);\n });\n return uris;\n}\n\nexport async function getInstanceUris(\n classUri: string,\n typeRegistrations: TypeRegistration[],\n options?: Options,\n): Promise<SolidLeafUri[]> {\n const { dataset } = guaranteeOptions(options);\n\n const leafUris = new Set<SolidLeafUri>();\n await Promise.all(\n typeRegistrations.map(async (registration) => {\n if (registration.forClass[\"@id\"] === classUri) {\n // Individual registrations\n registration.instance?.forEach((instance) =>\n leafUris.add(instance[\"@id\"] as SolidLeafUri),\n );\n // Container registrations\n await Promise.all(\n registration.instanceContainer?.map(async (instanceContainer) => {\n const containerResource = dataset.getResource(\n instanceContainer[\"@id\"] as SolidContainerUri,\n );\n await containerResource.readIfUnfetched();\n containerResource.children().forEach((child) => {\n if (child.type === \"SolidLeaf\") leafUris.add(child.uri);\n });\n }) ?? [],\n );\n }\n }),\n );\n return Array.from(leafUris);\n}\n"],"mappings":";;;;;;AAUA,eAAsB,qBACpBA,OACAC,SACkC;CAClC,MAAM,EAAE,SAAS,GAAG,iBAAiB,QAAQ;CAG7C,MAAM,UAAU,MAAM,WAAW,OAAO,QAAQ;CAGhD,MAAM,gBAAgB,8BAA8B,QAAQ;AAG5D,OAAM,QAAQ,IACZ,cAAc,IAAI,OAAO,iBAAiB;EACxC,MAAM,oBAAoB,QAAQ,YAAY,aAAa;EAC3D,MAAM,aAAa,MAAM,kBAAkB,iBAAiB;AAC5D,MAAI,WAAW,QAAS,OAAM;CAC/B,EAAC,CACH;AAGD,QAAO,QACJ,UAAU,0BAA0B,CACpC,aAAa,UAAU,kBAAkB;AAC7C;AAED,eAAsB,WACpBD,OACAC,SAC2B;CAC3B,MAAM,EAAE,SAAS,GAAG,iBAAiB,QAAQ;CAC7C,MAAM,kBAAkB,QAAQ,YAAY,MAAM;CAClD,MAAM,aAAa,MAAM,gBAAgB,iBAAiB;AAC1D,KAAI,WAAW,QAAS,OAAM;AAC9B,QAAO,QAAQ,UAAU,0BAA0B,CAAC,YAAY,MAAM;AACvE;AAED,SAAgB,8BACdC,SACgB;CAChB,MAAMC,OAAuB,CAAE;AAC/B,SAAQ,kBAAkB,QAAQ,CAAC,cAAc;AAC/C,OAAK,KAAK,UAAU,OAAuB;CAC5C,EAAC;AACF,SAAQ,iBAAiB,QAAQ,CAAC,cAAc;AAC9C,OAAK,KAAK,UAAU,OAAuB;CAC5C,EAAC;AACF,QAAO;AACR;AAED,eAAsB,gBACpBC,UACAC,mBACAJ,SACyB;CACzB,MAAM,EAAE,SAAS,GAAG,iBAAiB,QAAQ;CAE7C,MAAM,WAAW,IAAI;AACrB,OAAM,QAAQ,IACZ,kBAAkB,IAAI,OAAO,iBAAiB;AAC5C,MAAI,aAAa,SAAS,WAAW,UAAU;AAE7C,gBAAa,UAAU,QAAQ,CAAC,aAC9B,SAAS,IAAI,SAAS,OAAuB,CAC9C;AAED,SAAM,QAAQ,IACZ,aAAa,mBAAmB,IAAI,OAAO,sBAAsB;IAC/D,MAAM,oBAAoB,QAAQ,YAChC,kBAAkB,OACnB;AACD,UAAM,kBAAkB,iBAAiB;AACzC,sBAAkB,UAAU,CAAC,QAAQ,CAAC,UAAU;AAC9C,SAAI,MAAM,SAAS,YAAa,UAAS,IAAI,MAAM,IAAI;IACxD,EAAC;GACH,EAAC,IAAI,CAAE,EACT;EACF;CACF,EAAC,CACH;AACD,QAAO,MAAM,KAAK,SAAS;AAC5B"}
1
+ {"version":3,"file":"getTypeIndex.js","names":["webId: string","options?: Options","profile: TypeIndexProfile","uris: SolidLeafUri[]","classUri: string","typeRegistrations: TypeRegistration[]"],"sources":["../src/getTypeIndex.ts"],"sourcesContent":["import type { TypeRegistration } from \"./_ldo/typeIndex.typings\";\nimport type { TypeIndexProfile } from \"./_ldo/profile.typings\";\nimport { TypeIndexProfileShapeType } from \"./_ldo/profile.shapeTypes\";\nimport { TypeRegistrationShapeType } from \"./_ldo/typeIndex.shapeTypes\";\nimport { RDF_TYPE, TYPE_REGISTRATION } from \"./constants\";\nimport type { Options } from \"./util/Options\";\nimport { guaranteeOptions } from \"./util/Options\";\nimport type { LdSet } from \"@ldo/ldo\";\nimport type { SolidContainerUri, SolidLeafUri } from \"@ldo/connected-solid\";\n\nexport async function getTypeRegistrations(\n webId: string,\n options?: Options,\n): Promise<LdSet<TypeRegistration>> {\n const { dataset } = guaranteeOptions(options);\n\n // Get Profile\n const profile = await getProfile(webId, options);\n\n // Get Type Indexes\n const typeIndexUris = getTypeIndexesUrisFromProfile(profile);\n\n // Fetch the type Indexes\n await Promise.all(\n typeIndexUris.map(async (typeIndexUri) => {\n const typeIndexResource = dataset.getResource(typeIndexUri);\n const readResult = await typeIndexResource.readIfUnfetched();\n if (readResult.isError) throw readResult;\n }),\n );\n\n // Get Type Registrations\n return dataset\n .usingType(TypeRegistrationShapeType)\n .matchSubject(RDF_TYPE, TYPE_REGISTRATION);\n}\n\nexport async function getProfile(\n webId: string,\n options?: Options,\n): Promise<TypeIndexProfile> {\n const { dataset } = guaranteeOptions(options);\n const profileResource = dataset.getResource(webId);\n const readResult = await profileResource.readIfUnfetched();\n if (readResult.isError) throw readResult;\n return dataset.usingType(TypeIndexProfileShapeType).fromSubject(webId);\n}\n\nexport function getTypeIndexesUrisFromProfile(\n profile: TypeIndexProfile,\n): SolidLeafUri[] {\n const uris: SolidLeafUri[] = [];\n profile.privateTypeIndex?.forEach((indexNode) => {\n uris.push(indexNode[\"@id\"] as SolidLeafUri);\n });\n profile.publicTypeIndex?.forEach((indexNode) => {\n uris.push(indexNode[\"@id\"] as SolidLeafUri);\n });\n return uris;\n}\n\nexport async function getInstanceUris(\n classUri: string,\n typeRegistrations: TypeRegistration[],\n options?: Options,\n): Promise<SolidLeafUri[]> {\n const { dataset } = guaranteeOptions(options);\n\n const leafUris = new Set<SolidLeafUri>();\n await Promise.all(\n typeRegistrations.map(async (registration) => {\n if (registration.forClass[\"@id\"] === classUri) {\n // Individual registrations\n registration.instance?.forEach((instance) =>\n leafUris.add(instance[\"@id\"] as SolidLeafUri),\n );\n // Container registrations\n await Promise.all(\n registration.instanceContainer?.map(async (instanceContainer) => {\n const containerResource = dataset.getResource(\n instanceContainer[\"@id\"] as SolidContainerUri,\n );\n await containerResource.readIfUnfetched();\n containerResource.children().forEach((child) => {\n if (child.type === \"SolidLeaf\") leafUris.add(child.uri);\n });\n }) ?? [],\n );\n }\n }),\n );\n return Array.from(leafUris);\n}\n"],"mappings":";;;;;;AAUA,eAAsB,qBACpBA,OACAC,SACkC;CAClC,MAAM,EAAE,SAAS,GAAG,iBAAiB,QAAQ;CAG7C,MAAM,UAAU,MAAM,WAAW,OAAO,QAAQ;CAGhD,MAAM,gBAAgB,8BAA8B,QAAQ;AAG5D,OAAM,QAAQ,IACZ,cAAc,IAAI,OAAO,iBAAiB;EACxC,MAAM,oBAAoB,QAAQ,YAAY,aAAa;EAC3D,MAAM,aAAa,MAAM,kBAAkB,iBAAiB;AAC5D,MAAI,WAAW,QAAS,OAAM;CAC/B,EAAC,CACH;AAGD,QAAO,QACJ,UAAU,0BAA0B,CACpC,aAAa,UAAU,kBAAkB;AAC7C;AAED,eAAsB,WACpBD,OACAC,SAC2B;CAC3B,MAAM,EAAE,SAAS,GAAG,iBAAiB,QAAQ;CAC7C,MAAM,kBAAkB,QAAQ,YAAY,MAAM;CAClD,MAAM,aAAa,MAAM,gBAAgB,iBAAiB;AAC1D,KAAI,WAAW,QAAS,OAAM;AAC9B,QAAO,QAAQ,UAAU,0BAA0B,CAAC,YAAY,MAAM;AACvE;AAED,SAAgB,8BACdC,SACgB;CAChB,MAAMC,OAAuB,CAAE;AAC/B,SAAQ,kBAAkB,QAAQ,CAAC,cAAc;AAC/C,OAAK,KAAK,UAAU,OAAuB;CAC5C,EAAC;AACF,SAAQ,iBAAiB,QAAQ,CAAC,cAAc;AAC9C,OAAK,KAAK,UAAU,OAAuB;CAC5C,EAAC;AACF,QAAO;AACR;AAED,eAAsB,gBACpBC,UACAC,mBACAJ,SACyB;CACzB,MAAM,EAAE,SAAS,GAAG,iBAAiB,QAAQ;CAE7C,MAAM,WAAW,IAAI;AACrB,OAAM,QAAQ,IACZ,kBAAkB,IAAI,OAAO,iBAAiB;AAC5C,MAAI,aAAa,SAAS,WAAW,UAAU;AAE7C,gBAAa,UAAU,QAAQ,CAAC,aAC9B,SAAS,IAAI,SAAS,OAAuB,CAC9C;AAED,SAAM,QAAQ,IACZ,aAAa,mBAAmB,IAAI,OAAO,sBAAsB;IAC/D,MAAM,oBAAoB,QAAQ,YAChC,kBAAkB,OACnB;AACD,UAAM,kBAAkB,iBAAiB;AACzC,sBAAkB,UAAU,CAAC,QAAQ,CAAC,UAAU;AAC9C,SAAI,MAAM,SAAS,YAAa,UAAS,IAAI,MAAM,IAAI;IACxD,EAAC;GACH,EAAC,IAAI,CAAE,EACT;EACF;CACF,EAAC,CACH;AACD,QAAO,MAAM,KAAK,SAAS;AAC5B"}
@@ -1,5 +1,5 @@
1
1
  const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
- const require__Users_jacksonmorgan_O_ldo_packages_solid_type_index_src__ldo_typeIndex_shapeTypes = require('../.ldo/typeIndex.shapeTypes.cjs');
2
+ const require__Users_jacksonmorgan_O_ldo_packages_solid_type_index_src__ldo_typeIndex_shapeTypes = require('../_ldo/typeIndex.shapeTypes.cjs');
3
3
  const require__Users_jacksonmorgan_O_ldo_packages_solid_type_index_src_constants = require('../constants.cjs');
4
4
  const require__Users_jacksonmorgan_O_ldo_packages_solid_type_index_src_getTypeIndex = require('../getTypeIndex.cjs');
5
5
  const require__Users_jacksonmorgan_O_ldo_packages_solid_type_index_src_react_useTypeIndexProfile = require('./useTypeIndexProfile.cjs');
@@ -1,4 +1,4 @@
1
- import { TypeRegistrationShapeType } from "../.ldo/typeIndex.shapeTypes.js";
1
+ import { TypeRegistrationShapeType } from "../_ldo/typeIndex.shapeTypes.js";
2
2
  import { RDF_TYPE, TYPE_REGISTRATION } from "../constants.js";
3
3
  import { getInstanceUris, getTypeIndexesUrisFromProfile } from "../getTypeIndex.js";
4
4
  import { useTypeIndexProfile } from "./useTypeIndexProfile.js";
@@ -1 +1 @@
1
- {"version":3,"file":"useInstanceUris.js","names":["classUri: string","typeIndexUris: string[]"],"sources":["../../src/react/useInstanceUris.ts"],"sourcesContent":["import { useTypeIndexProfile } from \"./useTypeIndexProfile\";\nimport { useEffect, useMemo, useState } from \"react\";\nimport { useSubscribeToUris } from \"./util/useSubscribeToUris\";\nimport { useLdo, useMatchSubject } from \"@ldo/solid-react\";\nimport { TypeRegistrationShapeType } from \"../.ldo/typeIndex.shapeTypes\";\nimport { RDF_TYPE, TYPE_REGISTRATION } from \"../constants\";\nimport {\n getInstanceUris,\n getTypeIndexesUrisFromProfile,\n} from \"../getTypeIndex\";\nimport type { SolidLeafUri } from \"@ldo/connected-solid\";\n\n/**\n * Provides the LeafUris of everything in a type node for a specific class uri\n *\n * @param classUri - the class uri\n * @returns - URIs of all resources registered with this node\n */\nexport function useInstanceUris(classUri: string): SolidLeafUri[] {\n const { dataset } = useLdo();\n const profile = useTypeIndexProfile();\n\n const typeIndexUris: string[] = useMemo(\n () => (profile ? getTypeIndexesUrisFromProfile(profile) : []),\n [profile],\n );\n\n useSubscribeToUris(typeIndexUris);\n\n const [leafUris, setLeafUris] = useState<SolidLeafUri[]>([]);\n\n const typeRegistrations = useMatchSubject(\n TypeRegistrationShapeType,\n RDF_TYPE,\n TYPE_REGISTRATION,\n );\n\n useEffect(() => {\n getInstanceUris(classUri, typeRegistrations.toArray(), {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore TODO: come back and see if we can fix this\n solidLdoDataset: dataset,\n }).then(setLeafUris);\n }, [typeRegistrations]);\n\n return leafUris;\n}\n"],"mappings":";;;;;;;;;;;;;;;AAkBA,SAAgB,gBAAgBA,UAAkC;CAChE,MAAM,EAAE,SAAS,GAAG,QAAQ;CAC5B,MAAM,UAAU,qBAAqB;CAErC,MAAMC,gBAA0B,QAC9B,MAAO,UAAU,8BAA8B,QAAQ,GAAG,CAAE,GAC5D,CAAC,OAAQ,EACV;AAED,oBAAmB,cAAc;CAEjC,MAAM,CAAC,UAAU,YAAY,GAAG,SAAyB,CAAE,EAAC;CAE5D,MAAM,oBAAoB,gBACxB,2BACA,UACA,kBACD;AAED,WAAU,MAAM;AACd,kBAAgB,UAAU,kBAAkB,SAAS,EAAE,EAGrD,iBAAiB,QAClB,EAAC,CAAC,KAAK,YAAY;CACrB,GAAE,CAAC,iBAAkB,EAAC;AAEvB,QAAO;AACR"}
1
+ {"version":3,"file":"useInstanceUris.js","names":["classUri: string","typeIndexUris: string[]"],"sources":["../../src/react/useInstanceUris.ts"],"sourcesContent":["import { useTypeIndexProfile } from \"./useTypeIndexProfile\";\nimport { useEffect, useMemo, useState } from \"react\";\nimport { useSubscribeToUris } from \"./util/useSubscribeToUris\";\nimport { useLdo, useMatchSubject } from \"@ldo/solid-react\";\nimport { TypeRegistrationShapeType } from \"../_ldo/typeIndex.shapeTypes\";\nimport { RDF_TYPE, TYPE_REGISTRATION } from \"../constants\";\nimport {\n getInstanceUris,\n getTypeIndexesUrisFromProfile,\n} from \"../getTypeIndex\";\nimport type { SolidLeafUri } from \"@ldo/connected-solid\";\n\n/**\n * Provides the LeafUris of everything in a type node for a specific class uri\n *\n * @param classUri - the class uri\n * @returns - URIs of all resources registered with this node\n */\nexport function useInstanceUris(classUri: string): SolidLeafUri[] {\n const { dataset } = useLdo();\n const profile = useTypeIndexProfile();\n\n const typeIndexUris: string[] = useMemo(\n () => (profile ? getTypeIndexesUrisFromProfile(profile) : []),\n [profile],\n );\n\n useSubscribeToUris(typeIndexUris);\n\n const [leafUris, setLeafUris] = useState<SolidLeafUri[]>([]);\n\n const typeRegistrations = useMatchSubject(\n TypeRegistrationShapeType,\n RDF_TYPE,\n TYPE_REGISTRATION,\n );\n\n useEffect(() => {\n getInstanceUris(classUri, typeRegistrations.toArray(), {\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore TODO: come back and see if we can fix this\n solidLdoDataset: dataset,\n }).then(setLeafUris);\n }, [typeRegistrations]);\n\n return leafUris;\n}\n"],"mappings":";;;;;;;;;;;;;;;AAkBA,SAAgB,gBAAgBA,UAAkC;CAChE,MAAM,EAAE,SAAS,GAAG,QAAQ;CAC5B,MAAM,UAAU,qBAAqB;CAErC,MAAMC,gBAA0B,QAC9B,MAAO,UAAU,8BAA8B,QAAQ,GAAG,CAAE,GAC5D,CAAC,OAAQ,EACV;AAED,oBAAmB,cAAc;CAEjC,MAAM,CAAC,UAAU,YAAY,GAAG,SAAyB,CAAE,EAAC;CAE5D,MAAM,oBAAoB,gBACxB,2BACA,UACA,kBACD;AAED,WAAU,MAAM;AACd,kBAAgB,UAAU,kBAAkB,SAAS,EAAE,EAGrD,iBAAiB,QAClB,EAAC,CAAC,KAAK,YAAY;CACrB,GAAE,CAAC,iBAAkB,EAAC;AAEvB,QAAO;AACR"}
@@ -1,5 +1,5 @@
1
1
  const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
- const require__Users_jacksonmorgan_O_ldo_packages_solid_type_index_src__ldo_profile_shapeTypes = require('../.ldo/profile.shapeTypes.cjs');
2
+ const require__Users_jacksonmorgan_O_ldo_packages_solid_type_index_src__ldo_profile_shapeTypes = require('../_ldo/profile.shapeTypes.cjs');
3
3
  const __ldo_solid_react = require_rolldown_runtime.__toESM(require("@ldo/solid-react"));
4
4
 
5
5
  //#region src/react/useTypeIndexProfile.ts
@@ -1,4 +1,4 @@
1
- import { TypeIndexProfile } from "../.ldo/profile.typings.cjs";
1
+ import { TypeIndexProfile } from "../_ldo/profile.typings.cjs";
2
2
 
3
3
  //#region src/react/useTypeIndexProfile.d.ts
4
4
  declare function useTypeIndexProfile(): TypeIndexProfile | undefined;
@@ -1,4 +1,4 @@
1
- import { TypeIndexProfile } from "../.ldo/profile.typings.js";
1
+ import { TypeIndexProfile } from "../_ldo/profile.typings.js";
2
2
 
3
3
  //#region src/react/useTypeIndexProfile.d.ts
4
4
  declare function useTypeIndexProfile(): TypeIndexProfile | undefined;
@@ -1,4 +1,4 @@
1
- import { TypeIndexProfileShapeType } from "../.ldo/profile.shapeTypes.js";
1
+ import { TypeIndexProfileShapeType } from "../_ldo/profile.shapeTypes.js";
2
2
  import { useResource, useSolidAuth, useSubject } from "@ldo/solid-react";
3
3
 
4
4
  //#region src/react/useTypeIndexProfile.ts
@@ -1 +1 @@
1
- {"version":3,"file":"useTypeIndexProfile.js","names":[],"sources":["../../src/react/useTypeIndexProfile.ts"],"sourcesContent":["import { useResource, useSolidAuth, useSubject } from \"@ldo/solid-react\";\nimport type { TypeIndexProfile } from \"../.ldo/profile.typings\";\nimport { TypeIndexProfileShapeType } from \"../.ldo/profile.shapeTypes\";\n\nexport function useTypeIndexProfile(): TypeIndexProfile | undefined {\n const { session } = useSolidAuth();\n useResource(session.webId, { subscribe: true });\n const profile = useSubject(TypeIndexProfileShapeType, session.webId);\n return profile;\n}\n"],"mappings":";;;;AAIA,SAAgB,sBAAoD;CAClE,MAAM,EAAE,SAAS,GAAG,cAAc;AAClC,aAAY,QAAQ,OAAO,EAAE,WAAW,KAAM,EAAC;CAC/C,MAAM,UAAU,WAAW,2BAA2B,QAAQ,MAAM;AACpE,QAAO;AACR"}
1
+ {"version":3,"file":"useTypeIndexProfile.js","names":[],"sources":["../../src/react/useTypeIndexProfile.ts"],"sourcesContent":["import { useResource, useSolidAuth, useSubject } from \"@ldo/solid-react\";\nimport type { TypeIndexProfile } from \"../_ldo/profile.typings\";\nimport { TypeIndexProfileShapeType } from \"../_ldo/profile.shapeTypes\";\n\nexport function useTypeIndexProfile(): TypeIndexProfile | undefined {\n const { session } = useSolidAuth();\n useResource(session.webId, { subscribe: true });\n const profile = useSubject(TypeIndexProfileShapeType, session.webId);\n return profile;\n}\n"],"mappings":";;;;AAIA,SAAgB,sBAAoD;CAClE,MAAM,EAAE,SAAS,GAAG,cAAc;AAClC,aAAY,QAAQ,OAAO,EAAE,WAAW,KAAM,EAAC;CAC/C,MAAM,UAAU,WAAW,2BAA2B,QAAQ,MAAM;AACpE,QAAO;AACR"}
@@ -1,6 +1,6 @@
1
1
  const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
2
- const require__Users_jacksonmorgan_O_ldo_packages_solid_type_index_src__ldo_profile_shapeTypes = require('.ldo/profile.shapeTypes.cjs');
3
- const require__Users_jacksonmorgan_O_ldo_packages_solid_type_index_src__ldo_typeIndex_shapeTypes = require('.ldo/typeIndex.shapeTypes.cjs');
2
+ const require__Users_jacksonmorgan_O_ldo_packages_solid_type_index_src__ldo_profile_shapeTypes = require('./_ldo/profile.shapeTypes.cjs');
3
+ const require__Users_jacksonmorgan_O_ldo_packages_solid_type_index_src__ldo_typeIndex_shapeTypes = require('./_ldo/typeIndex.shapeTypes.cjs');
4
4
  const require__Users_jacksonmorgan_O_ldo_packages_solid_type_index_src_constants = require('./constants.cjs');
5
5
  const require__Users_jacksonmorgan_O_ldo_packages_solid_type_index_src_util_Options = require('./util/Options.cjs');
6
6
  const require__Users_jacksonmorgan_O_ldo_packages_solid_type_index_src_getTypeIndex = require('./getTypeIndex.cjs');
@@ -1,4 +1,4 @@
1
- import { TypeRegistration } from ".ldo/typeIndex.typings.cjs";
1
+ import { TypeRegistration } from "./_ldo/typeIndex.typings.cjs";
2
2
  import { Options } from "./util/Options.cjs";
3
3
  import { ConnectedLdoDataset, ConnectedPlugin } from "@ldo/connected";
4
4
  import { SolidConnectedPlugin, SolidContainer } from "@ldo/connected-solid";
@@ -1,4 +1,4 @@
1
- import { TypeRegistration } from ".ldo/typeIndex.typings.js";
1
+ import { TypeRegistration } from "./_ldo/typeIndex.typings.js";
2
2
  import { Options } from "./util/Options.js";
3
3
  import { SolidConnectedPlugin, SolidContainer } from "@ldo/connected-solid";
4
4
  import { ConnectedLdoDataset, ConnectedPlugin } from "@ldo/connected";
@@ -1,5 +1,5 @@
1
- import { TypeIndexProfileShapeType } from ".ldo/profile.shapeTypes.js";
2
- import { TypeIndexDocumentShapeType, TypeRegistrationShapeType } from ".ldo/typeIndex.shapeTypes.js";
1
+ import { TypeIndexProfileShapeType } from "./_ldo/profile.shapeTypes.js";
2
+ import { TypeIndexDocumentShapeType, TypeRegistrationShapeType } from "./_ldo/typeIndex.shapeTypes.js";
3
3
  import { FOR_CLASS, RDF_TYPE, TYPE_REGISTRATION } from "./constants.js";
4
4
  import { guaranteeOptions } from "./util/Options.js";
5
5
  import { getProfile } from "./getTypeIndex.js";
@@ -1 +1 @@
1
- {"version":3,"file":"setTypeIndex.js","names":["webId: string","options?: Options","profileFolder: SolidContainer","dataset: ConnectedLdoDataset<\n (SolidConnectedPlugin | ConnectedPlugin<any, any, any, any>)[]\n >","isPrivate: boolean","indexUri: string","classUri: string","instances: Instances","existingRegistrationsUris: NamedNode[]","quad","typeRegistration: TypeRegistration"],"sources":["../src/setTypeIndex.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { v4 } from \"uuid\";\nimport { FOR_CLASS, RDF_TYPE, TYPE_REGISTRATION } from \"./constants\";\nimport { guaranteeOptions, type Options } from \"./util/Options\";\nimport { namedNode, quad } from \"@ldo/rdf-utils\";\nimport type { TypeRegistration } from \"./.ldo/typeIndex.typings\";\nimport { getProfile } from \"./getTypeIndex\";\nimport { TypeIndexProfileShapeType } from \"./.ldo/profile.shapeTypes\";\nimport type { NamedNode } from \"@rdfjs/types\";\nimport { set } from \"@ldo/ldo\";\nimport type {\n SolidConnectedPlugin,\n SolidContainer,\n SolidContainerUri,\n SolidLeafUri,\n} from \"@ldo/connected-solid\";\nimport type { ConnectedLdoDataset, ConnectedPlugin } from \"@ldo/connected\";\nimport {\n TypeIndexDocumentShapeType,\n TypeRegistrationShapeType,\n} from \"./.ldo/typeIndex.shapeTypes\";\n\n/**\n * =============================================================================\n * INITIALIZERS\n * =============================================================================\n */\nexport async function initTypeIndex(\n webId: string,\n options?: Options,\n): Promise<void> {\n const { dataset } = guaranteeOptions(options);\n const profile = await getProfile(webId, options);\n if (!profile.privateTypeIndex?.size || !profile.publicTypeIndex?.size) {\n const profileFolder = await dataset\n .getResource(webId as SolidLeafUri | SolidContainerUri)\n .getParentContainer();\n if (profileFolder?.isError) throw profileFolder;\n if (!profileFolder)\n throw new Error(\"No folder to save the type indexes to.\");\n if (!profile.privateTypeIndex?.size) {\n await createIndex(webId, profileFolder, dataset, true);\n }\n if (!profile.publicTypeIndex?.size) {\n await createIndex(webId, profileFolder, dataset, false);\n }\n }\n}\n\n/**\n * @internal\n * @param webId\n * @param profileFolder\n * @param dataset\n */\nexport async function createIndex(\n webId,\n profileFolder: SolidContainer,\n dataset: ConnectedLdoDataset<\n (SolidConnectedPlugin | ConnectedPlugin<any, any, any, any>)[]\n >,\n isPrivate: boolean,\n) {\n // Create a private type index\n const createResult = await profileFolder.createChildAndOverwrite(\n `${isPrivate ? \"private\" : \"public\"}_index_${v4()}`,\n );\n if (createResult.isError) throw createResult;\n const indexResource = createResult.resource;\n const wacResult = await indexResource.setWac({\n agent: {\n [webId]: { read: true, write: true, append: true, control: true },\n },\n public: {\n read: isPrivate ? false : true,\n write: true,\n append: true,\n control: true,\n },\n authenticated: {\n read: isPrivate ? false : true,\n write: true,\n append: true,\n control: true,\n },\n });\n if (wacResult.isError) throw wacResult;\n const transaction = dataset.startTransaction();\n const cProfile = transaction\n .usingType(TypeIndexProfileShapeType)\n .write(dataset.getResource(webId).uri)\n .fromSubject(webId);\n if (isPrivate) {\n cProfile.privateTypeIndex?.add({ \"@id\": indexResource.uri });\n } else {\n cProfile.publicTypeIndex?.add({ \"@id\": indexResource.uri });\n }\n const cTypeIndex = transaction\n .usingType(TypeIndexDocumentShapeType)\n .write(indexResource.uri)\n .fromSubject(indexResource.uri);\n\n cTypeIndex.type = set({ \"@id\": \"ListedDocument\" }, { \"@id\": \"TypeIndex\" });\n const commitResult = await transaction.commitToRemote();\n if (commitResult.isError) throw commitResult;\n}\n\n/**\n * =============================================================================\n * DATASET MODIFIERS\n * =============================================================================\n */\ninterface Instances {\n instance?: string[];\n instanceContainer?: string[];\n}\n\n/**\n * Adds an instance to a TypeRegistration\n * @param indexUri The URI of the TypeIndex\n * @param classUri The URI for the class the instance should be added to\n * @param instances Objects representing the instances to add\n * @param options Options\n */\nexport function addRegistration(\n indexUri: string,\n classUri: string,\n instances: Instances,\n options?: Options,\n): void {\n // Check to see if its already in the index\n const typeRegistration = findAppropriateTypeRegistration(\n indexUri,\n classUri,\n options,\n );\n\n // Add instances to type registration\n instances.instance?.forEach((instance) => {\n typeRegistration.instance?.add({ \"@id\": instance });\n });\n instances.instanceContainer?.forEach((instanceContainer) => {\n typeRegistration.instanceContainer?.add({ \"@id\": instanceContainer });\n });\n}\n\n/**\n * Removes instances from a TypeRegistration\n * @param indexUri The URI of the TypeIndex\n * @param classUri The URI for the class the instance should be removed from\n * @param instances Objects representing the instances to remove\n * @param options Options\n */\nexport async function removeRegistration(\n indexUri: string,\n classUri: string,\n instances: Instances,\n options?: Options,\n) {\n // Check to see if its already in the index\n const typeRegistration = findAppropriateTypeRegistration(\n indexUri,\n classUri,\n options,\n );\n\n // Add instances to type registration\n instances.instance?.forEach((instanceUri) => {\n typeRegistration.instance?.delete({ \"@id\": instanceUri });\n });\n instances.instanceContainer?.forEach((instanceContainerUri) => {\n typeRegistration.instanceContainer?.delete({ \"@id\": instanceContainerUri });\n });\n}\n\n/**\n * Finds a TypeRegistration inside of a type index. If it doesn't exist, it\n * creates one.\n * @param indexUri The URI of the typeIndex\n * @param classUri The URI of the class in question for the TypeRegistration\n * @param options\n * @returns The Type Index\n */\nexport function findAppropriateTypeRegistration(\n indexUri: string,\n classUri: string,\n options?: Options,\n): TypeRegistration {\n const { dataset } = guaranteeOptions(options);\n // Check to see if its already in the index\n const existingRegistrationsUris: NamedNode[] = dataset\n .match(\n null,\n namedNode(RDF_TYPE),\n namedNode(TYPE_REGISTRATION),\n namedNode(indexUri),\n )\n .toArray()\n .map((quad) => quad.subject) as NamedNode[];\n\n const existingRegistrationForClassUri = existingRegistrationsUris.find(\n (registrationUri) => {\n return dataset.has(\n quad(\n registrationUri,\n namedNode(FOR_CLASS),\n namedNode(classUri),\n namedNode(indexUri),\n ),\n );\n },\n )?.value;\n\n let typeRegistration: TypeRegistration;\n if (existingRegistrationForClassUri) {\n typeRegistration = dataset\n .usingType(TypeRegistrationShapeType)\n .write(indexUri)\n .fromSubject(existingRegistrationForClassUri);\n } else {\n typeRegistration = dataset\n .usingType(TypeRegistrationShapeType)\n .write(indexUri)\n .fromSubject(`${indexUri}#${v4()}`);\n typeRegistration.type = { \"@id\": \"TypeRegistration\" };\n typeRegistration.forClass = { \"@id\": classUri };\n }\n return typeRegistration;\n}\n"],"mappings":"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"}
1
+ {"version":3,"file":"setTypeIndex.js","names":["webId: string","options?: Options","profileFolder: SolidContainer","dataset: ConnectedLdoDataset<\n (SolidConnectedPlugin | ConnectedPlugin<any, any, any, any>)[]\n >","isPrivate: boolean","indexUri: string","classUri: string","instances: Instances","existingRegistrationsUris: NamedNode[]","quad","typeRegistration: TypeRegistration"],"sources":["../src/setTypeIndex.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { v4 } from \"uuid\";\nimport { FOR_CLASS, RDF_TYPE, TYPE_REGISTRATION } from \"./constants\";\nimport { guaranteeOptions, type Options } from \"./util/Options\";\nimport { namedNode, quad } from \"@ldo/rdf-utils\";\nimport type { TypeRegistration } from \"./_ldo/typeIndex.typings\";\nimport { getProfile } from \"./getTypeIndex\";\nimport { TypeIndexProfileShapeType } from \"./_ldo/profile.shapeTypes\";\nimport type { NamedNode } from \"@rdfjs/types\";\nimport { set } from \"@ldo/ldo\";\nimport type {\n SolidConnectedPlugin,\n SolidContainer,\n SolidContainerUri,\n SolidLeafUri,\n} from \"@ldo/connected-solid\";\nimport type { ConnectedLdoDataset, ConnectedPlugin } from \"@ldo/connected\";\nimport {\n TypeIndexDocumentShapeType,\n TypeRegistrationShapeType,\n} from \"./_ldo/typeIndex.shapeTypes\";\n\n/**\n * =============================================================================\n * INITIALIZERS\n * =============================================================================\n */\nexport async function initTypeIndex(\n webId: string,\n options?: Options,\n): Promise<void> {\n const { dataset } = guaranteeOptions(options);\n const profile = await getProfile(webId, options);\n if (!profile.privateTypeIndex?.size || !profile.publicTypeIndex?.size) {\n const profileFolder = await dataset\n .getResource(webId as SolidLeafUri | SolidContainerUri)\n .getParentContainer();\n if (profileFolder?.isError) throw profileFolder;\n if (!profileFolder)\n throw new Error(\"No folder to save the type indexes to.\");\n if (!profile.privateTypeIndex?.size) {\n await createIndex(webId, profileFolder, dataset, true);\n }\n if (!profile.publicTypeIndex?.size) {\n await createIndex(webId, profileFolder, dataset, false);\n }\n }\n}\n\n/**\n * @internal\n * @param webId\n * @param profileFolder\n * @param dataset\n */\nexport async function createIndex(\n webId,\n profileFolder: SolidContainer,\n dataset: ConnectedLdoDataset<\n (SolidConnectedPlugin | ConnectedPlugin<any, any, any, any>)[]\n >,\n isPrivate: boolean,\n) {\n // Create a private type index\n const createResult = await profileFolder.createChildAndOverwrite(\n `${isPrivate ? \"private\" : \"public\"}_index_${v4()}`,\n );\n if (createResult.isError) throw createResult;\n const indexResource = createResult.resource;\n const wacResult = await indexResource.setWac({\n agent: {\n [webId]: { read: true, write: true, append: true, control: true },\n },\n public: {\n read: isPrivate ? false : true,\n write: true,\n append: true,\n control: true,\n },\n authenticated: {\n read: isPrivate ? false : true,\n write: true,\n append: true,\n control: true,\n },\n });\n if (wacResult.isError) throw wacResult;\n const transaction = dataset.startTransaction();\n const cProfile = transaction\n .usingType(TypeIndexProfileShapeType)\n .write(dataset.getResource(webId).uri)\n .fromSubject(webId);\n if (isPrivate) {\n cProfile.privateTypeIndex?.add({ \"@id\": indexResource.uri });\n } else {\n cProfile.publicTypeIndex?.add({ \"@id\": indexResource.uri });\n }\n const cTypeIndex = transaction\n .usingType(TypeIndexDocumentShapeType)\n .write(indexResource.uri)\n .fromSubject(indexResource.uri);\n\n cTypeIndex.type = set({ \"@id\": \"ListedDocument\" }, { \"@id\": \"TypeIndex\" });\n const commitResult = await transaction.commitToRemote();\n if (commitResult.isError) throw commitResult;\n}\n\n/**\n * =============================================================================\n * DATASET MODIFIERS\n * =============================================================================\n */\ninterface Instances {\n instance?: string[];\n instanceContainer?: string[];\n}\n\n/**\n * Adds an instance to a TypeRegistration\n * @param indexUri The URI of the TypeIndex\n * @param classUri The URI for the class the instance should be added to\n * @param instances Objects representing the instances to add\n * @param options Options\n */\nexport function addRegistration(\n indexUri: string,\n classUri: string,\n instances: Instances,\n options?: Options,\n): void {\n // Check to see if its already in the index\n const typeRegistration = findAppropriateTypeRegistration(\n indexUri,\n classUri,\n options,\n );\n\n // Add instances to type registration\n instances.instance?.forEach((instance) => {\n typeRegistration.instance?.add({ \"@id\": instance });\n });\n instances.instanceContainer?.forEach((instanceContainer) => {\n typeRegistration.instanceContainer?.add({ \"@id\": instanceContainer });\n });\n}\n\n/**\n * Removes instances from a TypeRegistration\n * @param indexUri The URI of the TypeIndex\n * @param classUri The URI for the class the instance should be removed from\n * @param instances Objects representing the instances to remove\n * @param options Options\n */\nexport async function removeRegistration(\n indexUri: string,\n classUri: string,\n instances: Instances,\n options?: Options,\n) {\n // Check to see if its already in the index\n const typeRegistration = findAppropriateTypeRegistration(\n indexUri,\n classUri,\n options,\n );\n\n // Add instances to type registration\n instances.instance?.forEach((instanceUri) => {\n typeRegistration.instance?.delete({ \"@id\": instanceUri });\n });\n instances.instanceContainer?.forEach((instanceContainerUri) => {\n typeRegistration.instanceContainer?.delete({ \"@id\": instanceContainerUri });\n });\n}\n\n/**\n * Finds a TypeRegistration inside of a type index. If it doesn't exist, it\n * creates one.\n * @param indexUri The URI of the typeIndex\n * @param classUri The URI of the class in question for the TypeRegistration\n * @param options\n * @returns The Type Index\n */\nexport function findAppropriateTypeRegistration(\n indexUri: string,\n classUri: string,\n options?: Options,\n): TypeRegistration {\n const { dataset } = guaranteeOptions(options);\n // Check to see if its already in the index\n const existingRegistrationsUris: NamedNode[] = dataset\n .match(\n null,\n namedNode(RDF_TYPE),\n namedNode(TYPE_REGISTRATION),\n namedNode(indexUri),\n )\n .toArray()\n .map((quad) => quad.subject) as NamedNode[];\n\n const existingRegistrationForClassUri = existingRegistrationsUris.find(\n (registrationUri) => {\n return dataset.has(\n quad(\n registrationUri,\n namedNode(FOR_CLASS),\n namedNode(classUri),\n namedNode(indexUri),\n ),\n );\n },\n )?.value;\n\n let typeRegistration: TypeRegistration;\n if (existingRegistrationForClassUri) {\n typeRegistration = dataset\n .usingType(TypeRegistrationShapeType)\n .write(indexUri)\n .fromSubject(existingRegistrationForClassUri);\n } else {\n typeRegistration = dataset\n .usingType(TypeRegistrationShapeType)\n .write(indexUri)\n .fromSubject(`${indexUri}#${v4()}`);\n typeRegistration.type = { \"@id\": \"TypeRegistration\" };\n typeRegistration.forClass = { \"@id\": classUri };\n }\n return typeRegistration;\n}\n"],"mappings":"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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ldo/solid-type-index",
3
- "version": "1.0.0-alpha.34",
3
+ "version": "1.0.0-alpha.38",
4
4
  "description": "Solid Type Index support for LDO",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -23,7 +23,7 @@
23
23
  "build": "rimraf dist && NODE_OPTIONS=--max-old-space-size=8192 tsdown",
24
24
  "test": "vitest run --coverage",
25
25
  "prepublishOnly": "npm run build",
26
- "build:ldo": "ldo build --input src/.shapes --output src/.ldo",
26
+ "build:ldo": "ldo build --input src/_shapes --output src/_ldo",
27
27
  "lint": "eslint src/** --fix --no-error-on-unmatched-pattern",
28
28
  "remove-dist": "rimraf dist/"
29
29
  },
@@ -38,17 +38,17 @@
38
38
  },
39
39
  "homepage": "https://github.com/o-development/ldo/tree/main/packages/solid-react#readme",
40
40
  "devDependencies": {
41
- "@ldo/test-solid-server": "^1.0.0-alpha.34",
41
+ "@ldo/test-solid-server": "^1.0.0-alpha.38",
42
42
  "@testing-library/react": "^14.1.2",
43
43
  "start-server-and-test": "^2.0.3",
44
44
  "ts-node": "^10.9.2"
45
45
  },
46
46
  "dependencies": {
47
- "@ldo/connected": "^1.0.0-alpha.34",
48
- "@ldo/connected-solid": "^1.0.0-alpha.34",
49
- "@ldo/ldo": "^1.0.0-alpha.34",
50
- "@ldo/rdf-utils": "^1.0.0-alpha.34",
51
- "@ldo/solid-react": "^1.0.0-alpha.34",
47
+ "@ldo/connected": "^1.0.0-alpha.38",
48
+ "@ldo/connected-solid": "^1.0.0-alpha.38",
49
+ "@ldo/ldo": "^1.0.0-alpha.38",
50
+ "@ldo/rdf-utils": "^1.0.0-alpha.38",
51
+ "@ldo/solid-react": "^1.0.0-alpha.38",
52
52
  "@rdfjs/types": "^1.0.1"
53
53
  },
54
54
  "files": [
@@ -58,5 +58,5 @@
58
58
  "publishConfig": {
59
59
  "access": "public"
60
60
  },
61
- "gitHead": "ac9581d27e78e3e813620d0651390ad01d5a387a"
61
+ "gitHead": "c09a1e1c1c5eee9682e141e0657e4bef3b9973b9"
62
62
  }
@@ -1,7 +1,7 @@
1
- import type { TypeRegistration } from "./.ldo/typeIndex.typings";
2
- import type { TypeIndexProfile } from "./.ldo/profile.typings";
3
- import { TypeIndexProfileShapeType } from "./.ldo/profile.shapeTypes";
4
- import { TypeRegistrationShapeType } from "./.ldo/typeIndex.shapeTypes";
1
+ import type { TypeRegistration } from "./_ldo/typeIndex.typings";
2
+ import type { TypeIndexProfile } from "./_ldo/profile.typings";
3
+ import { TypeIndexProfileShapeType } from "./_ldo/profile.shapeTypes";
4
+ import { TypeRegistrationShapeType } from "./_ldo/typeIndex.shapeTypes";
5
5
  import { RDF_TYPE, TYPE_REGISTRATION } from "./constants";
6
6
  import type { Options } from "./util/Options";
7
7
  import { guaranteeOptions } from "./util/Options";
@@ -2,7 +2,7 @@ import { useTypeIndexProfile } from "./useTypeIndexProfile";
2
2
  import { useEffect, useMemo, useState } from "react";
3
3
  import { useSubscribeToUris } from "./util/useSubscribeToUris";
4
4
  import { useLdo, useMatchSubject } from "@ldo/solid-react";
5
- import { TypeRegistrationShapeType } from "../.ldo/typeIndex.shapeTypes";
5
+ import { TypeRegistrationShapeType } from "../_ldo/typeIndex.shapeTypes";
6
6
  import { RDF_TYPE, TYPE_REGISTRATION } from "../constants";
7
7
  import {
8
8
  getInstanceUris,
@@ -1,6 +1,6 @@
1
1
  import { useResource, useSolidAuth, useSubject } from "@ldo/solid-react";
2
- import type { TypeIndexProfile } from "../.ldo/profile.typings";
3
- import { TypeIndexProfileShapeType } from "../.ldo/profile.shapeTypes";
2
+ import type { TypeIndexProfile } from "../_ldo/profile.typings";
3
+ import { TypeIndexProfileShapeType } from "../_ldo/profile.shapeTypes";
4
4
 
5
5
  export function useTypeIndexProfile(): TypeIndexProfile | undefined {
6
6
  const { session } = useSolidAuth();
@@ -3,9 +3,9 @@ import { v4 } from "uuid";
3
3
  import { FOR_CLASS, RDF_TYPE, TYPE_REGISTRATION } from "./constants";
4
4
  import { guaranteeOptions, type Options } from "./util/Options";
5
5
  import { namedNode, quad } from "@ldo/rdf-utils";
6
- import type { TypeRegistration } from "./.ldo/typeIndex.typings";
6
+ import type { TypeRegistration } from "./_ldo/typeIndex.typings";
7
7
  import { getProfile } from "./getTypeIndex";
8
- import { TypeIndexProfileShapeType } from "./.ldo/profile.shapeTypes";
8
+ import { TypeIndexProfileShapeType } from "./_ldo/profile.shapeTypes";
9
9
  import type { NamedNode } from "@rdfjs/types";
10
10
  import { set } from "@ldo/ldo";
11
11
  import type {
@@ -18,7 +18,7 @@ import type { ConnectedLdoDataset, ConnectedPlugin } from "@ldo/connected";
18
18
  import {
19
19
  TypeIndexDocumentShapeType,
20
20
  TypeRegistrationShapeType,
21
- } from "./.ldo/typeIndex.shapeTypes";
21
+ } from "./_ldo/typeIndex.shapeTypes";
22
22
 
23
23
  /**
24
24
  * =============================================================================
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes