-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
68 lines (63 loc) · 2.87 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// Generated by dts-bundle v0.7.3
// Dependencies for this module:
// ../sparqljs
import { Query, Pattern, Expression, FilterPattern, BgpPattern, GraphPattern, GroupPattern, OperationExpression, Triple, Term, PropertyPath, SparqlGenerator } from 'sparqljs';
import { SelectQuery, Ordering, Variable } from 'sparqljs';
import { DescribeQuery } from 'sparqljs';
export class QueryBuilder {
constructor(query: Query);
static fromString(queryString: string, prefixes?: {
[prefix: string]: string;
} | undefined, baseIRI?: string | undefined): QueryBuilder;
where(pattern: Pattern): QueryBuilder;
bgpTriples(triples: Triple[]): QueryBuilder;
bgpTriple(triple: Triple): QueryBuilder;
protected getQuery(): Query;
protected getGenerator(): SparqlGenerator;
build(): Query;
toString(): string;
static term(value: string): Term;
static var(varName: string): Term;
static literal(value: string): Term;
static typedLiteral(value: string, datatype: string): Term;
static uri(value: string): Term;
static triple(subject: Term, predicate: PropertyPath | Term, object: Term): Triple;
static bgp(triples: Triple[]): BgpPattern;
static graph(name: string, patterns: Pattern[]): GraphPattern;
static group(patterns: Pattern[]): GroupPattern;
static filter(expression: Expression): FilterPattern;
static operation(operator: string, args: Expression[]): OperationExpression;
static in(term: Term, list: Term[]): OperationExpression;
static regex(term: Term, pattern: Term, caseInsensitive?: boolean): OperationExpression;
static eq(arg1: Expression, arg2: Expression): OperationExpression;
static str(arg: Expression): OperationExpression;
}
export class SelectBuilder extends QueryBuilder {
constructor(select: SelectQuery);
static fromString(queryString: string, prefixes?: {
[prefix: string]: string;
} | undefined, baseIRI?: string | undefined): SelectBuilder;
projectAll(): SelectBuilder;
projection(variables: Variable[]): SelectBuilder;
project(term: Term): SelectBuilder;
isProjected(term: Term): boolean;
orderBy(ordering: Ordering): SelectBuilder;
offset(offset: number): SelectBuilder;
limit(limit: number): SelectBuilder;
protected getQuery(): SelectQuery;
build(): SelectQuery;
static ordering(expr: Expression, desc?: boolean): Ordering;
}
export class DescribeBuilder extends QueryBuilder {
constructor(describe: DescribeQuery);
static fromString(queryString: string, prefixes?: {
[prefix: string]: string;
} | undefined, baseIRI?: string | undefined): DescribeBuilder;
static new(): DescribeBuilder;
projectAll(): DescribeBuilder;
projection(variables: Variable[]): DescribeBuilder;
project(term: Term): DescribeBuilder;
isProjected(term: Term): boolean;
protected getQuery(): DescribeQuery;
build(): DescribeQuery;
}