@traqula/generator-sparql-1-1 0.0.10 → 0.0.12
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 +102 -39
- package/lib/index.d.ts +23 -23
- package/package.json +6 -6
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/
|
|
9679
|
-
var
|
|
9680
|
-
|
|
9681
|
-
|
|
9682
|
-
|
|
9683
|
-
|
|
9684
|
-
|
|
9685
|
-
|
|
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
|
|
9687
|
+
return value;
|
|
9689
9688
|
}
|
|
9690
|
-
|
|
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.
|
|
9706
|
+
copy3[key] = this.safeObjectVisit(value, (obj) => this.transformNode(obj, nodeCallBacks));
|
|
9694
9707
|
}
|
|
9695
|
-
if (
|
|
9696
|
-
return
|
|
9708
|
+
if (transformation) {
|
|
9709
|
+
return transformation(copy3);
|
|
9697
9710
|
}
|
|
9698
9711
|
return copy3;
|
|
9699
9712
|
}
|
|
9700
|
-
|
|
9701
|
-
|
|
9702
|
-
|
|
9713
|
+
visitNode(curObject, nodeCallBacks) {
|
|
9714
|
+
let callback;
|
|
9715
|
+
const casted = curObject;
|
|
9716
|
+
if (casted.type) {
|
|
9717
|
+
callback = nodeCallBacks[casted.type];
|
|
9703
9718
|
}
|
|
9704
|
-
|
|
9705
|
-
|
|
9706
|
-
|
|
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 (
|
|
9710
|
-
|
|
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
|
-
|
|
9714
|
-
|
|
9715
|
-
|
|
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
|
+
}
|
|
9716
9746
|
}
|
|
9717
|
-
|
|
9718
|
-
if (
|
|
9719
|
-
|
|
9747
|
+
let shouldContinue = true;
|
|
9748
|
+
if (continueCheck) {
|
|
9749
|
+
shouldContinue = continueCheck(curObject);
|
|
9720
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));
|
|
9757
|
+
}
|
|
9758
|
+
if (transformation) {
|
|
9759
|
+
return transformation(copy3);
|
|
9760
|
+
}
|
|
9761
|
+
return copy3;
|
|
9721
9762
|
}
|
|
9722
|
-
|
|
9723
|
-
|
|
9724
|
-
|
|
9725
|
-
|
|
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
|
|
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,
|
|
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,
|
|
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
|
}
|
package/lib/index.d.ts
CHANGED
|
@@ -3,29 +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
|
-
}, "
|
|
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" | "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" | "update" | "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
|
-
update: import("@traqula/core").GeneratorRule<any, "update"> & T11.SparqlGrammarRule<"update", T11.Update, []> & T11.SparqlGeneratorRule<"update", T11.Update, []>;
|
|
29
8
|
prologue: import("@traqula/core").GeneratorRule<any, "prologue"> & T11.SparqlGrammarRule<"prologue", T11.ContextDefinition[], []> & T11.SparqlGeneratorRule<"prologue", T11.ContextDefinition[], []>;
|
|
30
9
|
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>, []>;
|
|
31
10
|
constructQuery: import("@traqula/core").GeneratorRule<any, "constructQuery"> & T11.SparqlGrammarRule<"constructQuery", Omit<T11.QueryConstruct, T11.gram.HandledByBase>, []> & T11.SparqlGeneratorRule<"constructQuery", Omit<T11.QueryConstruct, T11.gram.HandledByBase>, []>;
|
|
@@ -35,22 +14,33 @@ export declare const sparql11GeneratorBuilder: GeneratorBuilder<{
|
|
|
35
14
|
prefixDecl: import("@traqula/core").GeneratorRule<any, "prefixDecl"> & T11.SparqlGrammarRule<"prefixDecl", T11.ContextDefinitionPrefix, []> & T11.SparqlGeneratorRule<"prefixDecl", T11.ContextDefinitionPrefix, []>;
|
|
36
15
|
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
16
|
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>, []>;
|
|
17
|
+
solutionModifier: import("@traqula/core").GeneratorRule<any, "solutionModifier"> & T11.SparqlGrammarRule<"solutionModifier", T11.SolutionModifiers, []> & T11.SparqlGeneratorRule<"solutionModifier", T11.SolutionModifiers, []>;
|
|
18
|
+
expression: import("@traqula/core").GeneratorRule<any, "expression"> & T11.SparqlGrammarRule<"expression", T11.Expression, []> & T11.SparqlGeneratorRule<"expression", T11.Expression, []>;
|
|
38
19
|
iriOrFunction: import("@traqula/core").GeneratorRule<any, "iriOrFunction"> & T11.SparqlGrammarRule<"iriOrFunction", T11.ExpressionFunctionCall | T11.TermIri, []> & T11.SparqlGeneratorRule<"iriOrFunction", T11.ExpressionFunctionCall | T11.TermIri, []>;
|
|
39
20
|
rdfLiteral: import("@traqula/core").GeneratorRule<any, "rdfLiteral"> & T11.SparqlGrammarRule<"rdfLiteral", T11.TermLiteral, []> & T11.SparqlGeneratorRule<"rdfLiteral", T11.TermLiteral, []>;
|
|
40
21
|
var: import("@traqula/core").GeneratorRule<any, "var"> & T11.SparqlGrammarRule<"var", T11.TermVariable, []> & T11.SparqlGeneratorRule<"var", T11.TermVariable, []>;
|
|
22
|
+
aggregate: import("@traqula/core").GeneratorRule<{
|
|
23
|
+
factory: Factory;
|
|
24
|
+
}, "aggregate", T11.ExpressionAggregate, []>;
|
|
41
25
|
iri: import("@traqula/core").GeneratorRule<any, "iri"> & T11.SparqlGrammarRule<"iri", T11.TermIri, []> & T11.SparqlGeneratorRule<"iri", T11.TermIri, []>;
|
|
42
26
|
prefixedName: import("@traqula/core").GeneratorRule<any, "prefixedName"> & T11.SparqlGrammarRule<"prefixedName", T11.TermIriPrefixed, []> & T11.SparqlGeneratorRule<"prefixedName", T11.TermIriPrefixed, []>;
|
|
43
27
|
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
28
|
groupGraphPattern: import("@traqula/core").GeneratorRule<any, "groupGraphPattern"> & T11.SparqlGrammarRule<"groupGraphPattern", T11.PatternGroup, []> & T11.SparqlGeneratorRule<"groupGraphPattern", T11.PatternGroup, []>;
|
|
45
29
|
triplesBlock: import("@traqula/core").GeneratorRule<any, "triplesBlock"> & T11.SparqlGrammarRule<"triplesBlock", T11.PatternBgp, []> & T11.SparqlGeneratorRule<"triplesBlock", T11.PatternBgp, []>;
|
|
46
30
|
triplesNodePath: import("@traqula/core").GeneratorRule<any, "triplesNodePath"> & T11.SparqlGrammarRule<"triplesNodePath", T11.TripleCollection, []> & T11.SparqlGeneratorRule<"triplesNodePath", T11.TripleCollection, []>;
|
|
31
|
+
blankNode: import("@traqula/core").GeneratorRule<any, "blankNode"> & T11.SparqlGrammarRule<"blankNode", T11.TermBlank, []> & T11.SparqlGeneratorRule<"blankNode", T11.TermBlank, []>;
|
|
32
|
+
path: import("@traqula/core").GeneratorRule<{
|
|
33
|
+
factory: Factory;
|
|
34
|
+
}, "path", T11.Path, [boolean | undefined]>;
|
|
47
35
|
varOrTerm: import("@traqula/core").GeneratorRule<any, "varOrTerm"> & T11.SparqlGrammarRule<"varOrTerm", T11.Term, []> & T11.SparqlGeneratorRule<"varOrTerm", T11.Term, []>;
|
|
48
36
|
iriFull: import("@traqula/core").GeneratorRule<any, "iriFull"> & T11.SparqlGrammarRule<"iriFull", T11.TermIriFull, []> & T11.SparqlGeneratorRule<"iriFull", T11.TermIriFull, []>;
|
|
49
37
|
graphTerm: import("@traqula/core").GeneratorRule<any, "graphTerm"> & T11.SparqlGrammarRule<"graphTerm", T11.GraphTerm, []> & T11.SparqlGeneratorRule<"graphTerm", T11.GraphTerm, []>;
|
|
50
38
|
graphNodePath: import("@traqula/core").GeneratorRule<any, "graphNodePath"> & T11.SparqlGrammarRule<"graphNodePath", T11.Term | T11.TripleCollection, []> & T11.SparqlGeneratorRule<"graphNodePath", T11.Term | T11.TripleCollection, []>;
|
|
51
39
|
collectionPath: import("@traqula/core").GeneratorRule<any, "collectionPath"> & T11.SparqlGrammarRule<"collectionPath", T11.TripleCollectionList, []> & T11.SparqlGeneratorRule<"collectionPath", T11.TripleCollectionList, []>;
|
|
52
40
|
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
|
|
41
|
+
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, []>;
|
|
42
|
+
filter: import("@traqula/core").GeneratorRule<any, "filter"> & T11.SparqlGrammarRule<"filter", T11.PatternFilter, []> & T11.SparqlGeneratorRule<"filter", T11.PatternFilter, []>;
|
|
43
|
+
bind: import("@traqula/core").GeneratorRule<any, "bind"> & T11.SparqlGrammarRule<"bind", T11.PatternBind, []> & T11.SparqlGeneratorRule<"bind", T11.PatternBind, []>;
|
|
54
44
|
groupOrUnionGraphPattern: import("@traqula/core").GeneratorRule<any, "groupOrUnionGraphPattern"> & T11.SparqlGrammarRule<"groupOrUnionGraphPattern", T11.PatternGroup | T11.PatternUnion, []> & T11.SparqlGeneratorRule<"groupOrUnionGraphPattern", T11.PatternGroup | T11.PatternUnion, []>;
|
|
55
45
|
optionalGraphPattern: import("@traqula/core").GeneratorRule<any, "optionalGraphPattern"> & T11.SparqlGrammarRule<"optionalGraphPattern", T11.PatternOptional, []> & T11.SparqlGeneratorRule<"optionalGraphPattern", T11.PatternOptional, []>;
|
|
56
46
|
minusGraphPattern: import("@traqula/core").GeneratorRule<any, "minusGraphPattern"> & T11.SparqlGrammarRule<"minusGraphPattern", T11.PatternMinus, []> & T11.SparqlGeneratorRule<"minusGraphPattern", T11.PatternMinus, []>;
|
|
@@ -62,13 +52,23 @@ export declare const sparql11GeneratorBuilder: GeneratorBuilder<{
|
|
|
62
52
|
orderClause: import("@traqula/core").GeneratorRule<any, "orderClause"> & T11.SparqlGrammarRule<"orderClause", T11.SolutionModifierOrder, []> & T11.SparqlGeneratorRule<"orderClause", T11.SolutionModifierOrder, []>;
|
|
63
53
|
limitOffsetClauses: import("@traqula/core").GeneratorRule<any, "limitOffsetClauses"> & T11.SparqlGrammarRule<"limitOffsetClauses", T11.SolutionModifierLimitOffset, []> & T11.SparqlGeneratorRule<"limitOffsetClauses", T11.SolutionModifierLimitOffset, []>;
|
|
64
54
|
datasetClauses: import("@traqula/core").GeneratorRule<any, "datasetClauses"> & T11.SparqlGrammarRule<"datasetClauses", T11.DatasetClauses, []> & T11.SparqlGeneratorRule<"datasetClauses", T11.DatasetClauses, []>;
|
|
55
|
+
update: import("@traqula/core").GeneratorRule<any, "update"> & T11.SparqlGrammarRule<"update", T11.Update, []> & T11.SparqlGeneratorRule<"update", T11.Update, []>;
|
|
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.
|
|
4
|
+
"version": "0.0.12",
|
|
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.
|
|
45
|
-
"@traqula/rules-sparql-1-1": "^0.0.
|
|
44
|
+
"@traqula/core": "^0.0.12",
|
|
45
|
+
"@traqula/rules-sparql-1-1": "^0.0.12"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@traqula/parser-sparql-1-1": "^0.0.
|
|
48
|
+
"@traqula/parser-sparql-1-1": "^0.0.12",
|
|
49
49
|
"@traqula/rules-sparql-1-1": "^0.0.1",
|
|
50
|
-
"@traqula/test-utils": "^0.0.
|
|
50
|
+
"@traqula/test-utils": "^0.0.12"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "3517d5a5223c64dc61184b5f603f6d98c12bd166"
|
|
53
53
|
}
|