forked from linkeddata/rdflib.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariable.d.ts
More file actions
29 lines (29 loc) · 1.02 KB
/
variable.d.ts
File metadata and controls
29 lines (29 loc) · 1.02 KB
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
import Node from './node-internal';
import { VariableTermType } from './types';
import { Variable as TFVariable } from './tf-types';
/**
* Variables are placeholders used in patterns to be matched.
* In cwm they are symbols which are the formula's list of quantified variables.
* In sparql they are not visibly URIs. Here we compromise, by having
* a common special base URI for variables. Their names are uris,
* but the ? notation has an implicit base uri of 'varid:'
*/
export default class Variable extends Node implements TFVariable {
termType: typeof VariableTermType;
/** The base string for a variable's name */
base: string;
classOrder: number;
isVar: number;
/** The unique identifier of this variable */
uri: string;
/**
* Initializes this variable
* @param name The variable's name
*/
constructor(name?: string);
equals(other: any): boolean;
hashString(): string;
substitute(bindings: any): any;
toString(): string;
static toString(variable: any): string;
}