{"version":3,"file":"solid.schema.mjs","names":[],"sources":["../../src/_ldo/solid.schema.ts"],"sourcesContent":["import type { Schema } from \"shexj\";\n\n/**\n * =============================================================================\n * solidSchema: ShexJ Schema for solid\n * =============================================================================\n */\nexport const solidSchema: Schema = {\n  type: \"Schema\",\n  shapes: [\n    {\n      id: \"http://www.w3.org/ns/lddps#Container\",\n      type: \"ShapeDecl\",\n      shapeExpr: {\n        type: \"Shape\",\n        expression: {\n          id: \"http://www.w3.org/ns/lddps#ContainerShape\",\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: [\n                  \"http://www.w3.org/ns/ldp#Container\",\n                  \"http://www.w3.org/ns/ldp#Resource\",\n                ],\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 container on a Solid server\",\n                  },\n                },\n              ],\n            },\n            {\n              type: \"TripleConstraint\",\n              predicate: \"http://purl.org/dc/terms/modified\",\n              valueExpr: {\n                type: \"NodeConstraint\",\n                datatype: \"http://www.w3.org/2001/XMLSchema#string\",\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: \"Date modified\",\n                  },\n                },\n              ],\n            },\n            {\n              type: \"TripleConstraint\",\n              predicate: \"http://www.w3.org/ns/ldp#contains\",\n              valueExpr: \"http://www.w3.org/ns/lddps#Resource\",\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: \"Defines a Solid Resource\",\n                  },\n                },\n              ],\n            },\n            {\n              type: \"TripleConstraint\",\n              predicate: \"http://www.w3.org/ns/posix/stat#mtime\",\n              valueExpr: {\n                type: \"NodeConstraint\",\n                datatype: \"http://www.w3.org/2001/XMLSchema#decimal\",\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                  },\n                },\n              ],\n            },\n            {\n              type: \"TripleConstraint\",\n              predicate: \"http://www.w3.org/ns/posix/stat#size\",\n              valueExpr: {\n                type: \"NodeConstraint\",\n                datatype: \"http://www.w3.org/2001/XMLSchema#integer\",\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: \"size of this container\",\n                  },\n                },\n              ],\n            },\n          ],\n        },\n        extra: [\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\"],\n      },\n    },\n    {\n      id: \"http://www.w3.org/ns/lddps#Resource\",\n      type: \"ShapeDecl\",\n      shapeExpr: {\n        type: \"Shape\",\n        expression: {\n          id: \"http://www.w3.org/ns/lddps#ResourceShape\",\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: [\n                  \"http://www.w3.org/ns/ldp#Resource\",\n                  \"http://www.w3.org/ns/iana/media-types/text/turtle#Resource\",\n                ],\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: \"Any resource on a Solid server\",\n                  },\n                },\n              ],\n            },\n            {\n              type: \"TripleConstraint\",\n              predicate: \"http://purl.org/dc/terms/modified\",\n              valueExpr: {\n                type: \"NodeConstraint\",\n                datatype: \"http://www.w3.org/2001/XMLSchema#string\",\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: \"Date modified\",\n                  },\n                },\n              ],\n            },\n            {\n              type: \"TripleConstraint\",\n              predicate: \"http://www.w3.org/ns/posix/stat#mtime\",\n              valueExpr: {\n                type: \"NodeConstraint\",\n                datatype: \"http://www.w3.org/2001/XMLSchema#decimal\",\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                  },\n                },\n              ],\n            },\n            {\n              type: \"TripleConstraint\",\n              predicate: \"http://www.w3.org/ns/posix/stat#size\",\n              valueExpr: {\n                type: \"NodeConstraint\",\n                datatype: \"http://www.w3.org/2001/XMLSchema#integer\",\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: \"size of this container\",\n                  },\n                },\n              ],\n            },\n          ],\n        },\n        extra: [\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\"],\n      },\n    },\n    {\n      id: \"http://www.w3.org/ns/lddps#ProfileWithStorage\",\n      type: \"ShapeDecl\",\n      shapeExpr: {\n        type: \"Shape\",\n        expression: {\n          id: \"http://www.w3.org/ns/lddps#ProfileWithStorageShape\",\n          type: \"TripleConstraint\",\n          predicate: \"http://www.w3.org/ns/pim/space#storage\",\n          valueExpr: {\n            type: \"NodeConstraint\",\n            nodeKind: \"iri\",\n          },\n          min: 0,\n          max: -1,\n        },\n        extra: [\"http://www.w3.org/1999/02/22-rdf-syntax-ns#type\"],\n      },\n    },\n  ],\n};\n"],"mappings":";;;;;;AAOA,MAAa,cAAsB;CACjC,MAAM;CACN,QAAQ;EACN;GACE,IAAI;GACJ,MAAM;GACN,WAAW;IACT,MAAM;IACN,YAAY;KACV,IAAI;KACJ,MAAM;KACN,aAAa;MACX;OACE,MAAM;OACN,WAAW;OACX,WAAW;QACT,MAAM;QACN,QAAQ,CACN,sCACA,oCACD;QACF;OACD,KAAK;OACL,KAAK;OACL,aAAa,CACX;QACE,MAAM;QACN,WAAW;QACX,QAAQ,EACN,OAAO,iCACR;QACF,CACF;OACF;MACD;OACE,MAAM;OACN,WAAW;OACX,WAAW;QACT,MAAM;QACN,UAAU;QACX;OACD,KAAK;OACL,KAAK;OACL,aAAa,CACX;QACE,MAAM;QACN,WAAW;QACX,QAAQ,EACN,OAAO,iBACR;QACF,CACF;OACF;MACD;OACE,MAAM;OACN,WAAW;OACX,WAAW;OACX,KAAK;OACL,KAAK;OACL,aAAa,CACX;QACE,MAAM;QACN,WAAW;QACX,QAAQ,EACN,OAAO,4BACR;QACF,CACF;OACF;MACD;OACE,MAAM;OACN,WAAW;OACX,WAAW;QACT,MAAM;QACN,UAAU;QACX;OACD,KAAK;OACL,KAAK;OACL,aAAa,CACX;QACE,MAAM;QACN,WAAW;QACX,QAAQ,EACN,OAAO,KACR;QACF,CACF;OACF;MACD;OACE,MAAM;OACN,WAAW;OACX,WAAW;QACT,MAAM;QACN,UAAU;QACX;OACD,KAAK;OACL,KAAK;OACL,aAAa,CACX;QACE,MAAM;QACN,WAAW;QACX,QAAQ,EACN,OAAO,0BACR;QACF,CACF;OACF;MACF;KACF;IACD,OAAO,CAAC,kDAAkD;IAC3D;GACF;EACD;GACE,IAAI;GACJ,MAAM;GACN,WAAW;IACT,MAAM;IACN,YAAY;KACV,IAAI;KACJ,MAAM;KACN,aAAa;MACX;OACE,MAAM;OACN,WAAW;OACX,WAAW;QACT,MAAM;QACN,QAAQ,CACN,qCACA,6DACD;QACF;OACD,KAAK;OACL,KAAK;OACL,aAAa,CACX;QACE,MAAM;QACN,WAAW;QACX,QAAQ,EACN,OAAO,kCACR;QACF,CACF;OACF;MACD;OACE,MAAM;OACN,WAAW;OACX,WAAW;QACT,MAAM;QACN,UAAU;QACX;OACD,KAAK;OACL,KAAK;OACL,aAAa,CACX;QACE,MAAM;QACN,WAAW;QACX,QAAQ,EACN,OAAO,iBACR;QACF,CACF;OACF;MACD;OACE,MAAM;OACN,WAAW;OACX,WAAW;QACT,MAAM;QACN,UAAU;QACX;OACD,KAAK;OACL,KAAK;OACL,aAAa,CACX;QACE,MAAM;QACN,WAAW;QACX,QAAQ,EACN,OAAO,KACR;QACF,CACF;OACF;MACD;OACE,MAAM;OACN,WAAW;OACX,WAAW;QACT,MAAM;QACN,UAAU;QACX;OACD,KAAK;OACL,KAAK;OACL,aAAa,CACX;QACE,MAAM;QACN,WAAW;QACX,QAAQ,EACN,OAAO,0BACR;QACF,CACF;OACF;MACF;KACF;IACD,OAAO,CAAC,kDAAkD;IAC3D;GACF;EACD;GACE,IAAI;GACJ,MAAM;GACN,WAAW;IACT,MAAM;IACN,YAAY;KACV,IAAI;KACJ,MAAM;KACN,WAAW;KACX,WAAW;MACT,MAAM;MACN,UAAU;MACX;KACD,KAAK;KACL,KAAK;KACN;IACD,OAAO,CAAC,kDAAkD;IAC3D;GACF;EACF;CACF"}