{"version":3,"file":"wac.schema.mjs","names":[],"sources":["../../src/_ldo/wac.schema.ts"],"sourcesContent":["import type { Schema } from \"shexj\";\n\n/**\n * =============================================================================\n * wacSchema: ShexJ Schema for wac\n * =============================================================================\n */\nexport const wacSchema: Schema = {\n  type: \"Schema\",\n  shapes: [\n    {\n      id: \"http://www.w3.org/ns/auth/acls#Authorization\",\n      type: \"ShapeDecl\",\n      shapeExpr: {\n        type: \"Shape\",\n        expression: {\n          id: \"http://www.w3.org/ns/auth/acls#AuthorizationShape\",\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/auth/acl#Authorization\"],\n              },\n              annotations: [\n                {\n                  type: \"Annotation\",\n                  predicate: \"http://www.w3.org/2000/01/rdf-schema#comment\",\n                  object: {\n                    value: \"Denotes this as an acl:Authorization\",\n                  },\n                },\n              ],\n            },\n            {\n              type: \"TripleConstraint\",\n              predicate: \"http://www.w3.org/ns/auth/acl#accessTo\",\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: \"The subject of this authorization\",\n                  },\n                },\n              ],\n            },\n            {\n              type: \"TripleConstraint\",\n              predicate: \"http://www.w3.org/ns/auth/acl#default\",\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: \"The container subject of this authorization\",\n                  },\n                },\n              ],\n            },\n            {\n              type: \"TripleConstraint\",\n              predicate: \"http://www.w3.org/ns/auth/acl#agent\",\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                      \"An agent is a person, social entity or software identified by a URI, e.g., a WebID denotes an agent\",\n                  },\n                },\n              ],\n            },\n            {\n              type: \"TripleConstraint\",\n              predicate: \"http://www.w3.org/ns/auth/acl#agentGroup\",\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                      \"Denotes a group of agents being given the access permission\",\n                  },\n                },\n              ],\n            },\n            {\n              type: \"TripleConstraint\",\n              predicate: \"http://www.w3.org/ns/auth/acl#agentClass\",\n              valueExpr: {\n                type: \"NodeConstraint\",\n                values: [\n                  \"http://www.w3.org/ns/auth/acl#AuthenticatedAgent\",\n                  \"http://xmlns.com/foaf/0.1/Agent\",\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:\n                      \"An agent class is a class of persons or entities identified by a URI.\",\n                  },\n                },\n              ],\n            },\n            {\n              type: \"TripleConstraint\",\n              predicate: \"http://www.w3.org/ns/auth/acl#mode\",\n              valueExpr: {\n                type: \"NodeConstraint\",\n                values: [\n                  \"http://www.w3.org/ns/auth/acl#Read\",\n                  \"http://www.w3.org/ns/auth/acl#Write\",\n                  \"http://www.w3.org/ns/auth/acl#Append\",\n                  \"http://www.w3.org/ns/auth/acl#Control\",\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:\n                      \"Denotes a class of operations that the agents can perform on a resource.\",\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,MAAa,YAAoB;CAC/B,MAAM;CACN,QAAQ,CACN;EACE,IAAI;EACJ,MAAM;EACN,WAAW;GACT,MAAM;GACN,YAAY;IACV,IAAI;IACJ,MAAM;IACN,aAAa;KACX;MACE,MAAM;MACN,WAAW;MACX,WAAW;OACT,MAAM;OACN,QAAQ,CAAC,8CAA8C;OACxD;MACD,aAAa,CACX;OACE,MAAM;OACN,WAAW;OACX,QAAQ,EACN,OAAO,wCACR;OACF,CACF;MACF;KACD;MACE,MAAM;MACN,WAAW;MACX,WAAW;OACT,MAAM;OACN,UAAU;OACX;MACD,KAAK;MACL,KAAK;MACL,aAAa,CACX;OACE,MAAM;OACN,WAAW;OACX,QAAQ,EACN,OAAO,qCACR;OACF,CACF;MACF;KACD;MACE,MAAM;MACN,WAAW;MACX,WAAW;OACT,MAAM;OACN,UAAU;OACX;MACD,KAAK;MACL,KAAK;MACL,aAAa,CACX;OACE,MAAM;OACN,WAAW;OACX,QAAQ,EACN,OAAO,+CACR;OACF,CACF;MACF;KACD;MACE,MAAM;MACN,WAAW;MACX,WAAW;OACT,MAAM;OACN,UAAU;OACX;MACD,KAAK;MACL,KAAK;MACL,aAAa,CACX;OACE,MAAM;OACN,WAAW;OACX,QAAQ,EACN,OACE,uGACH;OACF,CACF;MACF;KACD;MACE,MAAM;MACN,WAAW;MACX,WAAW;OACT,MAAM;OACN,UAAU;OACX;MACD,KAAK;MACL,KAAK;MACL,aAAa,CACX;OACE,MAAM;OACN,WAAW;OACX,QAAQ,EACN,OACE,+DACH;OACF,CACF;MACF;KACD;MACE,MAAM;MACN,WAAW;MACX,WAAW;OACT,MAAM;OACN,QAAQ,CACN,oDACA,kCACD;OACF;MACD,KAAK;MACL,KAAK;MACL,aAAa,CACX;OACE,MAAM;OACN,WAAW;OACX,QAAQ,EACN,OACE,yEACH;OACF,CACF;MACF;KACD;MACE,MAAM;MACN,WAAW;MACX,WAAW;OACT,MAAM;OACN,QAAQ;QACN;QACA;QACA;QACA;QACD;OACF;MACD,KAAK;MACL,KAAK;MACL,aAAa,CACX;OACE,MAAM;OACN,WAAW;OACX,QAAQ,EACN,OACE,4EACH;OACF,CACF;MACF;KACF;IACF;GACD,OAAO,CAAC,kDAAkD;GAC3D;EACF,CACF;CACF"}