@@ -130,17 +130,17 @@ WOQLQuery.prototype.or = function(...queries) {
130
130
return this
131
131
}
132
132
133
- WOQLQuery . prototype . from = function ( graph_filter , query ) {
134
- //if (graph_filter && graph_filter == 'args')
135
- //return ['graph_filter ', 'query']
133
+ WOQLQuery . prototype . from = function ( graph , query ) {
134
+ //if (graph && graph == 'args')
135
+ //return ['graph ', 'query']
136
136
if ( this . cursor [ '@type' ] ) this . wrapCursorWithAnd ( )
137
137
this . cursor [ '@type' ] = 'From'
138
- if ( ! graph_filter || typeof graph_filter != 'string' ) {
138
+ if ( ! graph || typeof graph != 'string' ) {
139
139
return this . parameterError (
140
140
'The first parameter to from must be a Graph Filter Expression (string)' ,
141
141
)
142
142
}
143
- this . cursor [ 'graph_filter ' ] = graph_filter
143
+ this . cursor [ 'graph ' ] = graph
144
144
return this . addSubQuery ( query )
145
145
}
146
146
@@ -195,7 +195,7 @@ WOQLQuery.prototype.quad = function(a, b, c, g) {
195
195
if ( this . cursor [ '@type' ] ) this . wrapCursorWithAnd ( )
196
196
let args = this . triple ( a , b , c )
197
197
//if (a && a == 'args')
198
- //return args.concat(['graph_filter '])
198
+ //return args.concat(['graph '])
199
199
if ( ! g )
200
200
return this . parameterError ( 'Quad takes four parameters, the last should be a graph filter' )
201
201
this . cursor [ '@type' ] = 'Triple'
@@ -207,23 +207,23 @@ WOQLQuery.prototype.added_quad = function(a, b, c, g) {
207
207
if ( this . cursor [ '@type' ] ) this . wrapCursorWithAnd ( )
208
208
let args = this . triple ( a , b , c )
209
209
//if (a && a == 'args')
210
- //return args.concat(['graph_filter '])
210
+ //return args.concat(['graph '])
211
211
if ( ! g )
212
212
return this . parameterError ( 'Quad takes four parameters, the last should be a graph filter' )
213
213
this . cursor [ '@type' ] = 'AddedQuad'
214
- this . cursor [ 'graph_filter ' ] = this . cleanGraph ( g )
214
+ this . cursor [ 'graph ' ] = this . cleanGraph ( g )
215
215
return this
216
216
}
217
217
218
218
WOQLQuery . prototype . removed_quad = function ( a , b , c , g ) {
219
219
if ( this . cursor [ '@type' ] ) this . wrapCursorWithAnd ( )
220
220
let args = this . triple ( a , b , c )
221
221
//if (a && a == 'args')
222
- //return args.concat(['graph_filter '])
222
+ //return args.concat(['graph '])
223
223
if ( ! g )
224
224
return this . parameterError ( 'Quad takes four parameters, the last should be a graph filter' )
225
225
this . cursor [ '@type' ] = 'RemovedQuad'
226
- this . cursor [ 'graph_filter ' ] = this . cleanGraph ( g )
226
+ this . cursor [ 'graph ' ] = this . cleanGraph ( g )
227
227
return this
228
228
}
229
229
@@ -953,4 +953,4 @@ WOQLQuery.prototype.type_of = function(a, b) {
953
953
return this
954
954
}
955
955
956
- module . exports = WOQLQuery
956
+ module . exports = WOQLQuery
0 commit comments