@traqula/generator-sparql-1-1 0.0.10 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.cjs CHANGED
@@ -9675,58 +9675,115 @@ function createToken2(config) {
9675
9675
  return createToken(config);
9676
9676
  }
9677
9677
 
9678
- // ../../packages/core/lib/Transformer.ts
9679
- var Transformer = class {
9680
- transformNode(curObject, searchType, patch) {
9681
- const copy3 = { ...curObject };
9682
- for (const [key, value] of Object.entries(copy3)) {
9683
- copy3[key] = this.safeObjectVisit(value, (obj) => this.transformNode(obj, searchType, patch));
9684
- }
9685
- if (copy3.type === searchType) {
9686
- return patch(copy3);
9678
+ // ../../packages/core/lib/Transformers.ts
9679
+ var TransformerType = class {
9680
+ safeObjectVisit(value, mapper) {
9681
+ if (value && typeof value === "object") {
9682
+ if (Array.isArray(value)) {
9683
+ return value.map((x) => this.safeObjectVisit(x, mapper));
9684
+ }
9685
+ return mapper(value);
9687
9686
  }
9688
- return copy3;
9687
+ return value;
9689
9688
  }
9690
- transformNodeSpecific(curObject, searchType, searchSubType, patch) {
9689
+ transformNode(curObject, nodeCallBacks) {
9690
+ let continueCheck;
9691
+ let transformation;
9692
+ const casted = curObject;
9693
+ if (casted.type) {
9694
+ continueCheck = nodeCallBacks[casted.type]?.continue;
9695
+ transformation = nodeCallBacks[casted.type]?.transform;
9696
+ }
9697
+ let shouldContinue = true;
9698
+ if (continueCheck) {
9699
+ shouldContinue = continueCheck(curObject);
9700
+ }
9701
+ if (!shouldContinue) {
9702
+ return curObject;
9703
+ }
9691
9704
  const copy3 = { ...curObject };
9692
9705
  for (const [key, value] of Object.entries(copy3)) {
9693
- copy3[key] = this.safeObjectVisit(value, (obj) => this.transformNodeSpecific(obj, searchType, searchSubType, patch));
9706
+ copy3[key] = this.safeObjectVisit(value, (obj) => this.transformNode(obj, nodeCallBacks));
9694
9707
  }
9695
- if (copy3.type === searchType && copy3.subType === searchSubType) {
9696
- return patch(copy3);
9708
+ if (transformation) {
9709
+ return transformation(copy3);
9697
9710
  }
9698
9711
  return copy3;
9699
9712
  }
9700
- visitObjects(curObject, visitor) {
9701
- for (const value of Object.values(curObject)) {
9702
- this.safeObjectVisit(value, (obj) => this.visitObjects(obj, visitor));
9713
+ visitNode(curObject, nodeCallBacks) {
9714
+ let callback;
9715
+ const casted = curObject;
9716
+ if (casted.type) {
9717
+ callback = nodeCallBacks[casted.type];
9703
9718
  }
9704
- }
9705
- visitNode(curObject, searchType, visitor) {
9706
- for (const value of Object.values(curObject)) {
9707
- this.safeObjectVisit(value, (obj) => this.visitNode(obj, searchType, visitor));
9719
+ let shouldIterate = true;
9720
+ if (callback) {
9721
+ shouldIterate = callback(curObject);
9708
9722
  }
9709
- if (curObject.type === searchType) {
9710
- visitor(curObject);
9723
+ if (shouldIterate) {
9724
+ for (const value of Object.values(curObject)) {
9725
+ this.safeObjectVisit(value, (obj) => this.visitNode(obj, nodeCallBacks));
9726
+ }
9711
9727
  }
9712
9728
  }
9713
- visitNodeSpecific(curObject, searchType, searchSubType, visitor) {
9714
- for (const value of Object.values(curObject)) {
9715
- this.safeObjectVisit(value, (obj) => this.visitNodeSpecific(obj, searchType, searchSubType, visitor));
9729
+ };
9730
+ var TransformerSubType = class extends TransformerType {
9731
+ // Public visitObjects(curObject: object, visitor: (current: object) => void): void {
9732
+ // for (const value of Object.values(curObject)) {
9733
+ // this.safeObjectVisit(value, obj => this.visitObjects(obj, visitor));
9734
+ // }
9735
+ // }
9736
+ transformNodeSpecific(curObject, nodeCallBacks, nodeSpecificCallBacks = {}) {
9737
+ let continueCheck;
9738
+ let transformation;
9739
+ const casted = curObject;
9740
+ if (casted.type && casted.subType) {
9741
+ const specific = nodeSpecificCallBacks[casted.type];
9742
+ if (specific) {
9743
+ continueCheck = specific[casted.subType]?.continue;
9744
+ transformation = specific[casted.subType]?.transform;
9745
+ }
9746
+ }
9747
+ let shouldContinue = true;
9748
+ if (continueCheck) {
9749
+ shouldContinue = continueCheck(curObject);
9750
+ }
9751
+ if (!shouldContinue) {
9752
+ return curObject;
9753
+ }
9754
+ const copy3 = { ...curObject };
9755
+ for (const [key, value] of Object.entries(copy3)) {
9756
+ copy3[key] = this.safeObjectVisit(value, (obj) => this.transformNodeSpecific(obj, nodeCallBacks, nodeSpecificCallBacks));
9716
9757
  }
9717
- const cast = curObject;
9718
- if (cast.type === searchType && cast.subType === searchSubType) {
9719
- visitor(curObject);
9758
+ if (transformation) {
9759
+ return transformation(copy3);
9720
9760
  }
9761
+ return copy3;
9721
9762
  }
9722
- safeObjectVisit(value, mapper) {
9723
- if (value && typeof value === "object") {
9724
- if (Array.isArray(value)) {
9725
- return value.map((x) => this.safeObjectVisit(x, mapper));
9763
+ /**
9764
+ * When both nodeCallBack and NodeSpecific callBack are matched, will only look at nodeSpecifCallback
9765
+ */
9766
+ visitNodeSpecific(curObject, nodeCallBacks, nodeSpecificCallBacks = {}) {
9767
+ let callback;
9768
+ const casted = curObject;
9769
+ if (casted.type && casted.subType) {
9770
+ const specific = nodeSpecificCallBacks[casted.type];
9771
+ if (specific) {
9772
+ callback = specific[casted.subType];
9773
+ }
9774
+ }
9775
+ if (!callback && casted.type) {
9776
+ callback = nodeCallBacks[curObject.type];
9777
+ }
9778
+ let shouldIterate = true;
9779
+ if (callback) {
9780
+ shouldIterate = callback(curObject) ?? true;
9781
+ }
9782
+ if (shouldIterate) {
9783
+ for (const value of Object.values(curObject)) {
9784
+ this.safeObjectVisit(value, (obj) => this.visitNodeSpecific(obj, nodeCallBacks, nodeSpecificCallBacks));
9726
9785
  }
9727
- return mapper(value);
9728
9786
  }
9729
- return value;
9730
9787
  }
9731
9788
  };
9732
9789
 
@@ -11317,9 +11374,13 @@ var Factory = class extends asArg(CoreFactory).call(ContextFactoryMixin).call(Ex
11317
11374
  }
11318
11375
  };
11319
11376
 
11377
+ // ../../packages/rules-sparql-1-1/lib/utils.ts
11378
+ var TransformerSparql11 = class extends TransformerSubType {
11379
+ };
11380
+
11320
11381
  // ../../packages/rules-sparql-1-1/lib/validation/validators.ts
11321
11382
  var F = new Factory();
11322
- var transformer = new Transformer();
11383
+ var transformer = new TransformerSparql11();
11323
11384
  function getAggregatesOfExpression(expression2) {
11324
11385
  if (F.isExpressionAggregate(expression2)) {
11325
11386
  return [expression2];
@@ -11468,7 +11529,9 @@ function checkNote13(patterns) {
11468
11529
  if (F.isPatternBind(pattern) && index > 0 && F.isPatternBgp(patterns[index - 1])) {
11469
11530
  const bgp = patterns[index - 1];
11470
11531
  const variables = [];
11471
- transformer.visitNodeSpecific(bgp, "term", "variable", (var_2) => variables.push(var_2));
11532
+ transformer.visitNodeSpecific(bgp, {}, { term: { variable: (var_2) => {
11533
+ variables.push(var_2);
11534
+ } } });
11472
11535
  if (variables.some((var_2) => var_2.value === pattern.variable.value)) {
11473
11536
  throw new Error(`Variable used to bind is already bound (?${pattern.variable.value})`);
11474
11537
  }
@@ -11494,12 +11557,12 @@ function updateNoReuseBlankNodeLabels(updateQuery) {
11494
11557
  const operation = update2.operation;
11495
11558
  if (operation.subType === "insertdata") {
11496
11559
  const blankNodesHere = /* @__PURE__ */ new Set();
11497
- transformer.visitNodeSpecific(operation, "term", "blankNode", (blankNode2) => {
11560
+ transformer.visitNodeSpecific(operation, {}, { term: { blankNode: (blankNode2) => {
11498
11561
  blankNodesHere.add(blankNode2.label);
11499
11562
  if (blankLabelsUsedInInsertData.has(blankNode2.label)) {
11500
11563
  throw new Error("Detected reuse blank node across different INSERT DATA clauses");
11501
11564
  }
11502
- });
11565
+ } } });
11503
11566
  for (const blankNode2 of blankNodesHere) {
11504
11567
  blankLabelsUsedInInsertData.add(blankNode2);
11505
11568
  }
@@ -13489,13 +13552,11 @@ var unaryExpression = {
13489
13552
  { ALT: () => CONSUME(symbols_exports.opMinus) }
13490
13553
  ]);
13491
13554
  const expr = SUBRULE2(primaryExpression);
13492
- return ACTION(() => ({
13493
- type: "expression",
13494
- subType: "operation",
13495
- operator: operator.image === "!" ? "!" : operator.image === "+" ? "UPLUS" : "UMINUS",
13496
- args: [expr],
13497
- loc: C.factory.sourceLocation(operator, expr)
13498
- }));
13555
+ return ACTION(() => C.factory.expressionOperation(
13556
+ operator.image === "!" ? "!" : operator.image === "+" ? "UPLUS" : "UMINUS",
13557
+ [expr],
13558
+ C.factory.sourceLocation(operator, expr)
13559
+ ));
13499
13560
  } }
13500
13561
  ])
13501
13562
  };
package/lib/index.d.ts CHANGED
@@ -3,28 +3,8 @@ import type * as T11 from '@traqula/rules-sparql-1-1';
3
3
  import { Factory } from '@traqula/rules-sparql-1-1';
4
4
  export declare const sparql11GeneratorBuilder: GeneratorBuilder<{
5
5
  factory: Factory;
6
- }, "expression" | "aggregate" | "graphRef" | "path" | "filter" | "bind" | "query" | "solutionModifier" | "blankNode" | "load" | "clear" | "drop" | "create" | "add" | "move" | "copy" | "modify" | "update" | "prologue" | "selectQuery" | "constructQuery" | "describeQuery" | "askQuery" | "baseDecl" | "prefixDecl" | "selectClause" | "whereClause" | "iriOrFunction" | "rdfLiteral" | "var" | "iri" | "prefixedName" | "argList" | "groupGraphPattern" | "triplesBlock" | "triplesNodePath" | "varOrTerm" | "iriFull" | "graphTerm" | "graphNodePath" | "collectionPath" | "blankNodePropertyListPath" | "graphPatternNotTriples" | "groupOrUnionGraphPattern" | "optionalGraphPattern" | "minusGraphPattern" | "graphGraphPattern" | "serviceGraphPattern" | "inlineData" | "groupClause" | "havingClause" | "orderClause" | "limitOffsetClauses" | "datasetClauses" | "insertData" | "deleteData" | "deleteWhere" | "graphRefAll" | "quads" | "update1" | "quadsNotTriples" | "usingClauses" | "queryOrUpdate" | "generatePattern", {
7
- expression: import("@traqula/core").GeneratorRule<any, "expression"> & T11.SparqlGrammarRule<"expression", T11.Expression, []> & T11.SparqlGeneratorRule<"expression", T11.Expression, []>;
8
- aggregate: import("@traqula/core").GeneratorRule<{
9
- factory: Factory;
10
- }, "aggregate", T11.ExpressionAggregate, []>;
11
- graphRef: import("@traqula/core").GeneratorRule<any, "graphRef"> & T11.SparqlGrammarRule<"graphRef", T11.GraphRefSpecific, []> & T11.SparqlGeneratorRule<"graphRef", T11.GraphRefSpecific, []>;
12
- path: import("@traqula/core").GeneratorRule<{
13
- factory: Factory;
14
- }, "path", T11.Path, [boolean | undefined]>;
15
- filter: import("@traqula/core").GeneratorRule<any, "filter"> & T11.SparqlGrammarRule<"filter", T11.PatternFilter, []> & T11.SparqlGeneratorRule<"filter", T11.PatternFilter, []>;
16
- bind: import("@traqula/core").GeneratorRule<any, "bind"> & T11.SparqlGrammarRule<"bind", T11.PatternBind, []> & T11.SparqlGeneratorRule<"bind", T11.PatternBind, []>;
6
+ }, "query" | "update" | "prologue" | "selectQuery" | "constructQuery" | "describeQuery" | "askQuery" | "baseDecl" | "prefixDecl" | "selectClause" | "whereClause" | "solutionModifier" | "expression" | "iriOrFunction" | "rdfLiteral" | "var" | "aggregate" | "iri" | "prefixedName" | "argList" | "groupGraphPattern" | "triplesBlock" | "triplesNodePath" | "blankNode" | "path" | "varOrTerm" | "iriFull" | "graphTerm" | "graphNodePath" | "collectionPath" | "blankNodePropertyListPath" | "graphPatternNotTriples" | "filter" | "bind" | "groupOrUnionGraphPattern" | "optionalGraphPattern" | "minusGraphPattern" | "graphGraphPattern" | "serviceGraphPattern" | "inlineData" | "groupClause" | "havingClause" | "orderClause" | "limitOffsetClauses" | "datasetClauses" | "load" | "clear" | "drop" | "add" | "move" | "copy" | "create" | "insertData" | "deleteData" | "deleteWhere" | "graphRef" | "graphRefAll" | "quads" | "update1" | "quadsNotTriples" | "modify" | "usingClauses" | "queryOrUpdate" | "generatePattern", {
17
7
  query: import("@traqula/core").GeneratorRule<any, "query"> & T11.SparqlGrammarRule<"query", T11.Query, []> & T11.SparqlGeneratorRule<"query", T11.Query, []>;
18
- solutionModifier: import("@traqula/core").GeneratorRule<any, "solutionModifier"> & T11.SparqlGrammarRule<"solutionModifier", T11.SolutionModifiers, []> & T11.SparqlGeneratorRule<"solutionModifier", T11.SolutionModifiers, []>;
19
- blankNode: import("@traqula/core").GeneratorRule<any, "blankNode"> & T11.SparqlGrammarRule<"blankNode", T11.TermBlank, []> & T11.SparqlGeneratorRule<"blankNode", T11.TermBlank, []>;
20
- load: import("@traqula/core").GeneratorRule<any, "load"> & T11.SparqlGrammarRule<"load", T11.UpdateOperationLoad, []> & T11.SparqlGeneratorRule<"load", T11.UpdateOperationLoad, []>;
21
- clear: import("@traqula/core").GeneratorRule<any, "clear"> & T11.SparqlGrammarRule<"clear", T11.UpdateOperationClear | T11.UpdateOperationDrop, []> & T11.SparqlGeneratorRule<"clear", T11.UpdateOperationClear | T11.UpdateOperationDrop, []>;
22
- drop: import("@traqula/core").GeneratorRule<any, "drop"> & T11.SparqlGrammarRule<"drop", T11.UpdateOperationClear | T11.UpdateOperationDrop, []> & T11.SparqlGeneratorRule<"drop", T11.UpdateOperationClear | T11.UpdateOperationDrop, []>;
23
- create: import("@traqula/core").GeneratorRule<any, "create"> & T11.SparqlGrammarRule<"create", T11.UpdateOperationCreate, []> & T11.SparqlGeneratorRule<"create", T11.UpdateOperationCreate, []>;
24
- add: import("@traqula/core").GeneratorRule<any, "add"> & T11.SparqlGrammarRule<"add", T11.UpdateOperationAdd | T11.UpdateOperationMove | T11.UpdateOperationCopy, []> & T11.SparqlGeneratorRule<"add", T11.UpdateOperationAdd | T11.UpdateOperationMove | T11.UpdateOperationCopy, []>;
25
- move: import("@traqula/core").GeneratorRule<any, "move"> & T11.SparqlGrammarRule<"move", T11.UpdateOperationAdd | T11.UpdateOperationMove | T11.UpdateOperationCopy, []> & T11.SparqlGeneratorRule<"move", T11.UpdateOperationAdd | T11.UpdateOperationMove | T11.UpdateOperationCopy, []>;
26
- copy: import("@traqula/core").GeneratorRule<any, "copy"> & T11.SparqlGrammarRule<"copy", T11.UpdateOperationAdd | T11.UpdateOperationMove | T11.UpdateOperationCopy, []> & T11.SparqlGeneratorRule<"copy", T11.UpdateOperationAdd | T11.UpdateOperationMove | T11.UpdateOperationCopy, []>;
27
- modify: import("@traqula/core").GeneratorRule<any, "modify"> & T11.SparqlGrammarRule<"modify", T11.UpdateOperationModify, []> & T11.SparqlGeneratorRule<"modify", T11.UpdateOperationModify, []>;
28
8
  update: import("@traqula/core").GeneratorRule<any, "update"> & T11.SparqlGrammarRule<"update", T11.Update, []> & T11.SparqlGeneratorRule<"update", T11.Update, []>;
29
9
  prologue: import("@traqula/core").GeneratorRule<any, "prologue"> & T11.SparqlGrammarRule<"prologue", T11.ContextDefinition[], []> & T11.SparqlGeneratorRule<"prologue", T11.ContextDefinition[], []>;
30
10
  selectQuery: import("@traqula/core").GeneratorRule<any, "selectQuery"> & T11.SparqlGrammarRule<"selectQuery", Omit<T11.QuerySelect, T11.gram.HandledByBase>, []> & T11.SparqlGeneratorRule<"selectQuery", Omit<T11.QuerySelect, T11.gram.HandledByBase>, []>;
@@ -35,22 +15,33 @@ export declare const sparql11GeneratorBuilder: GeneratorBuilder<{
35
15
  prefixDecl: import("@traqula/core").GeneratorRule<any, "prefixDecl"> & T11.SparqlGrammarRule<"prefixDecl", T11.ContextDefinitionPrefix, []> & T11.SparqlGeneratorRule<"prefixDecl", T11.ContextDefinitionPrefix, []>;
36
16
  selectClause: import("@traqula/core").GeneratorRule<any, "selectClause"> & T11.SparqlGrammarRule<"selectClause", import("@traqula/core").Wrap<Pick<T11.QuerySelect, "variables" | "distinct" | "reduced">>, []> & T11.SparqlGeneratorRule<"selectClause", import("@traqula/core").Wrap<Pick<T11.QuerySelect, "variables" | "distinct" | "reduced">>, []>;
37
17
  whereClause: import("@traqula/core").GeneratorRule<any, "whereClause"> & T11.SparqlGrammarRule<"whereClause", import("@traqula/core").Wrap<T11.PatternGroup>, []> & T11.SparqlGeneratorRule<"whereClause", import("@traqula/core").Wrap<T11.PatternGroup>, []>;
18
+ solutionModifier: import("@traqula/core").GeneratorRule<any, "solutionModifier"> & T11.SparqlGrammarRule<"solutionModifier", T11.SolutionModifiers, []> & T11.SparqlGeneratorRule<"solutionModifier", T11.SolutionModifiers, []>;
19
+ expression: import("@traqula/core").GeneratorRule<any, "expression"> & T11.SparqlGrammarRule<"expression", T11.Expression, []> & T11.SparqlGeneratorRule<"expression", T11.Expression, []>;
38
20
  iriOrFunction: import("@traqula/core").GeneratorRule<any, "iriOrFunction"> & T11.SparqlGrammarRule<"iriOrFunction", T11.ExpressionFunctionCall | T11.TermIri, []> & T11.SparqlGeneratorRule<"iriOrFunction", T11.ExpressionFunctionCall | T11.TermIri, []>;
39
21
  rdfLiteral: import("@traqula/core").GeneratorRule<any, "rdfLiteral"> & T11.SparqlGrammarRule<"rdfLiteral", T11.TermLiteral, []> & T11.SparqlGeneratorRule<"rdfLiteral", T11.TermLiteral, []>;
40
22
  var: import("@traqula/core").GeneratorRule<any, "var"> & T11.SparqlGrammarRule<"var", T11.TermVariable, []> & T11.SparqlGeneratorRule<"var", T11.TermVariable, []>;
23
+ aggregate: import("@traqula/core").GeneratorRule<{
24
+ factory: Factory;
25
+ }, "aggregate", T11.ExpressionAggregate, []>;
41
26
  iri: import("@traqula/core").GeneratorRule<any, "iri"> & T11.SparqlGrammarRule<"iri", T11.TermIri, []> & T11.SparqlGeneratorRule<"iri", T11.TermIri, []>;
42
27
  prefixedName: import("@traqula/core").GeneratorRule<any, "prefixedName"> & T11.SparqlGrammarRule<"prefixedName", T11.TermIriPrefixed, []> & T11.SparqlGeneratorRule<"prefixedName", T11.TermIriPrefixed, []>;
43
28
  argList: import("@traqula/core").GeneratorRule<any, "argList"> & T11.SparqlGrammarRule<"argList", import("@traqula/core").Wrap<T11.gram.IArgList>, []> & T11.SparqlGeneratorRule<"argList", import("@traqula/core").Wrap<T11.gram.IArgList>, []>;
44
29
  groupGraphPattern: import("@traqula/core").GeneratorRule<any, "groupGraphPattern"> & T11.SparqlGrammarRule<"groupGraphPattern", T11.PatternGroup, []> & T11.SparqlGeneratorRule<"groupGraphPattern", T11.PatternGroup, []>;
45
30
  triplesBlock: import("@traqula/core").GeneratorRule<any, "triplesBlock"> & T11.SparqlGrammarRule<"triplesBlock", T11.PatternBgp, []> & T11.SparqlGeneratorRule<"triplesBlock", T11.PatternBgp, []>;
46
31
  triplesNodePath: import("@traqula/core").GeneratorRule<any, "triplesNodePath"> & T11.SparqlGrammarRule<"triplesNodePath", T11.TripleCollection, []> & T11.SparqlGeneratorRule<"triplesNodePath", T11.TripleCollection, []>;
32
+ blankNode: import("@traqula/core").GeneratorRule<any, "blankNode"> & T11.SparqlGrammarRule<"blankNode", T11.TermBlank, []> & T11.SparqlGeneratorRule<"blankNode", T11.TermBlank, []>;
33
+ path: import("@traqula/core").GeneratorRule<{
34
+ factory: Factory;
35
+ }, "path", T11.Path, [boolean | undefined]>;
47
36
  varOrTerm: import("@traqula/core").GeneratorRule<any, "varOrTerm"> & T11.SparqlGrammarRule<"varOrTerm", T11.Term, []> & T11.SparqlGeneratorRule<"varOrTerm", T11.Term, []>;
48
37
  iriFull: import("@traqula/core").GeneratorRule<any, "iriFull"> & T11.SparqlGrammarRule<"iriFull", T11.TermIriFull, []> & T11.SparqlGeneratorRule<"iriFull", T11.TermIriFull, []>;
49
38
  graphTerm: import("@traqula/core").GeneratorRule<any, "graphTerm"> & T11.SparqlGrammarRule<"graphTerm", T11.GraphTerm, []> & T11.SparqlGeneratorRule<"graphTerm", T11.GraphTerm, []>;
50
39
  graphNodePath: import("@traqula/core").GeneratorRule<any, "graphNodePath"> & T11.SparqlGrammarRule<"graphNodePath", T11.Term | T11.TripleCollection, []> & T11.SparqlGeneratorRule<"graphNodePath", T11.Term | T11.TripleCollection, []>;
51
40
  collectionPath: import("@traqula/core").GeneratorRule<any, "collectionPath"> & T11.SparqlGrammarRule<"collectionPath", T11.TripleCollectionList, []> & T11.SparqlGeneratorRule<"collectionPath", T11.TripleCollectionList, []>;
52
41
  blankNodePropertyListPath: import("@traqula/core").GeneratorRule<any, "blankNodePropertyListPath"> & T11.SparqlGrammarRule<"blankNodePropertyListPath", T11.TripleCollectionBlankNodeProperties, []> & T11.SparqlGeneratorRule<"blankNodePropertyListPath", T11.TripleCollectionBlankNodeProperties, []>;
53
- graphPatternNotTriples: import("@traqula/core").GeneratorRule<any, "graphPatternNotTriples"> & T11.SparqlGrammarRule<"graphPatternNotTriples", T11.PatternGroup | T11.PatternUnion | T11.PatternOptional | T11.PatternMinus | T11.PatternGraph | T11.PatternService | T11.PatternFilter | T11.PatternBind | T11.PatternValues, []> & T11.SparqlGeneratorRule<"graphPatternNotTriples", T11.PatternGroup | T11.PatternUnion | T11.PatternOptional | T11.PatternMinus | T11.PatternGraph | T11.PatternService | T11.PatternFilter | T11.PatternBind | T11.PatternValues, []>;
42
+ graphPatternNotTriples: import("@traqula/core").GeneratorRule<any, "graphPatternNotTriples"> & T11.SparqlGrammarRule<"graphPatternNotTriples", T11.PatternGroup | T11.PatternValues | T11.PatternUnion | T11.PatternOptional | T11.PatternMinus | T11.PatternGraph | T11.PatternService | T11.PatternFilter | T11.PatternBind, []> & T11.SparqlGeneratorRule<"graphPatternNotTriples", T11.PatternGroup | T11.PatternValues | T11.PatternUnion | T11.PatternOptional | T11.PatternMinus | T11.PatternGraph | T11.PatternService | T11.PatternFilter | T11.PatternBind, []>;
43
+ filter: import("@traqula/core").GeneratorRule<any, "filter"> & T11.SparqlGrammarRule<"filter", T11.PatternFilter, []> & T11.SparqlGeneratorRule<"filter", T11.PatternFilter, []>;
44
+ bind: import("@traqula/core").GeneratorRule<any, "bind"> & T11.SparqlGrammarRule<"bind", T11.PatternBind, []> & T11.SparqlGeneratorRule<"bind", T11.PatternBind, []>;
54
45
  groupOrUnionGraphPattern: import("@traqula/core").GeneratorRule<any, "groupOrUnionGraphPattern"> & T11.SparqlGrammarRule<"groupOrUnionGraphPattern", T11.PatternGroup | T11.PatternUnion, []> & T11.SparqlGeneratorRule<"groupOrUnionGraphPattern", T11.PatternGroup | T11.PatternUnion, []>;
55
46
  optionalGraphPattern: import("@traqula/core").GeneratorRule<any, "optionalGraphPattern"> & T11.SparqlGrammarRule<"optionalGraphPattern", T11.PatternOptional, []> & T11.SparqlGeneratorRule<"optionalGraphPattern", T11.PatternOptional, []>;
56
47
  minusGraphPattern: import("@traqula/core").GeneratorRule<any, "minusGraphPattern"> & T11.SparqlGrammarRule<"minusGraphPattern", T11.PatternMinus, []> & T11.SparqlGeneratorRule<"minusGraphPattern", T11.PatternMinus, []>;
@@ -62,13 +53,22 @@ export declare const sparql11GeneratorBuilder: GeneratorBuilder<{
62
53
  orderClause: import("@traqula/core").GeneratorRule<any, "orderClause"> & T11.SparqlGrammarRule<"orderClause", T11.SolutionModifierOrder, []> & T11.SparqlGeneratorRule<"orderClause", T11.SolutionModifierOrder, []>;
63
54
  limitOffsetClauses: import("@traqula/core").GeneratorRule<any, "limitOffsetClauses"> & T11.SparqlGrammarRule<"limitOffsetClauses", T11.SolutionModifierLimitOffset, []> & T11.SparqlGeneratorRule<"limitOffsetClauses", T11.SolutionModifierLimitOffset, []>;
64
55
  datasetClauses: import("@traqula/core").GeneratorRule<any, "datasetClauses"> & T11.SparqlGrammarRule<"datasetClauses", T11.DatasetClauses, []> & T11.SparqlGeneratorRule<"datasetClauses", T11.DatasetClauses, []>;
56
+ load: import("@traqula/core").GeneratorRule<any, "load"> & T11.SparqlGrammarRule<"load", T11.UpdateOperationLoad, []> & T11.SparqlGeneratorRule<"load", T11.UpdateOperationLoad, []>;
57
+ clear: import("@traqula/core").GeneratorRule<any, "clear"> & T11.SparqlGrammarRule<"clear", T11.UpdateOperationClear | T11.UpdateOperationDrop, []> & T11.SparqlGeneratorRule<"clear", T11.UpdateOperationClear | T11.UpdateOperationDrop, []>;
58
+ drop: import("@traqula/core").GeneratorRule<any, "drop"> & T11.SparqlGrammarRule<"drop", T11.UpdateOperationClear | T11.UpdateOperationDrop, []> & T11.SparqlGeneratorRule<"drop", T11.UpdateOperationClear | T11.UpdateOperationDrop, []>;
59
+ add: import("@traqula/core").GeneratorRule<any, "add"> & T11.SparqlGrammarRule<"add", T11.UpdateOperationAdd | T11.UpdateOperationMove | T11.UpdateOperationCopy, []> & T11.SparqlGeneratorRule<"add", T11.UpdateOperationAdd | T11.UpdateOperationMove | T11.UpdateOperationCopy, []>;
60
+ move: import("@traqula/core").GeneratorRule<any, "move"> & T11.SparqlGrammarRule<"move", T11.UpdateOperationAdd | T11.UpdateOperationMove | T11.UpdateOperationCopy, []> & T11.SparqlGeneratorRule<"move", T11.UpdateOperationAdd | T11.UpdateOperationMove | T11.UpdateOperationCopy, []>;
61
+ copy: import("@traqula/core").GeneratorRule<any, "copy"> & T11.SparqlGrammarRule<"copy", T11.UpdateOperationAdd | T11.UpdateOperationMove | T11.UpdateOperationCopy, []> & T11.SparqlGeneratorRule<"copy", T11.UpdateOperationAdd | T11.UpdateOperationMove | T11.UpdateOperationCopy, []>;
62
+ create: import("@traqula/core").GeneratorRule<any, "create"> & T11.SparqlGrammarRule<"create", T11.UpdateOperationCreate, []> & T11.SparqlGeneratorRule<"create", T11.UpdateOperationCreate, []>;
65
63
  insertData: import("@traqula/core").GeneratorRule<any, "insertData"> & T11.SparqlGrammarRule<"insertData", T11.UpdateOperationInsertData | T11.UpdateOperationDeleteData | T11.UpdateOperationDeleteWhere, []> & T11.SparqlGeneratorRule<"insertData", T11.UpdateOperationInsertData | T11.UpdateOperationDeleteData | T11.UpdateOperationDeleteWhere, []>;
66
64
  deleteData: import("@traqula/core").GeneratorRule<any, "deleteData"> & T11.SparqlGrammarRule<"deleteData", T11.UpdateOperationInsertData | T11.UpdateOperationDeleteData | T11.UpdateOperationDeleteWhere, []> & T11.SparqlGeneratorRule<"deleteData", T11.UpdateOperationInsertData | T11.UpdateOperationDeleteData | T11.UpdateOperationDeleteWhere, []>;
67
65
  deleteWhere: import("@traqula/core").GeneratorRule<any, "deleteWhere"> & T11.SparqlGrammarRule<"deleteWhere", T11.UpdateOperationInsertData | T11.UpdateOperationDeleteData | T11.UpdateOperationDeleteWhere, []> & T11.SparqlGeneratorRule<"deleteWhere", T11.UpdateOperationInsertData | T11.UpdateOperationDeleteData | T11.UpdateOperationDeleteWhere, []>;
66
+ graphRef: import("@traqula/core").GeneratorRule<any, "graphRef"> & T11.SparqlGrammarRule<"graphRef", T11.GraphRefSpecific, []> & T11.SparqlGeneratorRule<"graphRef", T11.GraphRefSpecific, []>;
68
67
  graphRefAll: import("@traqula/core").GeneratorRule<any, "graphRefAll"> & T11.SparqlGrammarRule<"graphRefAll", T11.GraphRef, []> & T11.SparqlGeneratorRule<"graphRefAll", T11.GraphRef, []>;
69
68
  quads: import("@traqula/core").GeneratorRule<any, "quads"> & T11.SparqlGrammarRule<"quads", import("@traqula/core").Wrap<T11.Quads[]>, []> & T11.SparqlGeneratorRule<"quads", import("@traqula/core").Wrap<T11.Quads[]>, []>;
70
69
  update1: import("@traqula/core").GeneratorRule<any, "update1"> & T11.SparqlGrammarRule<"update1", T11.UpdateOperation, []> & T11.SparqlGeneratorRule<"update1", T11.UpdateOperation, []>;
71
70
  quadsNotTriples: import("@traqula/core").GeneratorRule<any, "quadsNotTriples"> & T11.SparqlGrammarRule<"quadsNotTriples", T11.GraphQuads, []> & T11.SparqlGeneratorRule<"quadsNotTriples", T11.GraphQuads, []>;
71
+ modify: import("@traqula/core").GeneratorRule<any, "modify"> & T11.SparqlGrammarRule<"modify", T11.UpdateOperationModify, []> & T11.SparqlGeneratorRule<"modify", T11.UpdateOperationModify, []>;
72
72
  usingClauses: import("@traqula/core").GeneratorRule<any, "usingClauses"> & T11.SparqlGrammarRule<"usingClauses", T11.DatasetClauses, []> & T11.SparqlGeneratorRule<"usingClauses", T11.DatasetClauses, []>;
73
73
  queryOrUpdate: import("@traqula/core").GeneratorRule<any, "queryOrUpdate"> & T11.SparqlGrammarRule<"queryOrUpdate", T11.SparqlQuery, []> & T11.SparqlGeneratorRule<"queryOrUpdate", T11.SparqlQuery, []>;
74
74
  generatePattern: import("@traqula/core").GeneratorRule<any, "generatePattern"> & T11.SparqlGeneratorRule<"generatePattern", T11.Pattern>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@traqula/generator-sparql-1-1",
3
3
  "type": "module",
4
- "version": "0.0.10",
4
+ "version": "0.0.13",
5
5
  "description": "SPARQL 1.1 generator",
6
6
  "lsd:module": true,
7
7
  "license": "MIT",
@@ -41,13 +41,13 @@
41
41
  "build:transpile": " node \"../../node_modules/esbuild/bin/esbuild\" --format=cjs --bundle --log-level=error --outfile=lib/index.cjs lib/index.ts"
42
42
  },
43
43
  "dependencies": {
44
- "@traqula/core": "^0.0.10",
45
- "@traqula/rules-sparql-1-1": "^0.0.10"
44
+ "@traqula/core": "^0.0.13",
45
+ "@traqula/rules-sparql-1-1": "^0.0.13"
46
46
  },
47
47
  "devDependencies": {
48
- "@traqula/parser-sparql-1-1": "^0.0.10",
48
+ "@traqula/parser-sparql-1-1": "^0.0.13",
49
49
  "@traqula/rules-sparql-1-1": "^0.0.1",
50
- "@traqula/test-utils": "^0.0.10"
50
+ "@traqula/test-utils": "^0.0.13"
51
51
  },
52
- "gitHead": "94b444f4b1a6904fa4e8979f023a119a48ee4a1d"
52
+ "gitHead": "324ed65dcfacb6cfa31007e0d5ee43f2599b7284"
53
53
  }