@@ -237,6 +237,28 @@ WOQLQuery.prototype.removed_triple = function (a, b, c) {
237237 return this ;
238238} ;
239239
240+ WOQLQuery . prototype . link = function ( a , b , c ) {
241+ // if (a && a === 'args')
242+ // return ['subject', 'predicate', 'object']
243+ if ( this . cursor [ '@type' ] ) this . wrapCursorWithAnd ( ) ;
244+ this . cursor [ '@type' ] = 'Triple' ;
245+ this . cursor . subject = this . cleanSubject ( a ) ;
246+ this . cursor . predicate = this . cleanPredicate ( b ) ;
247+ this . cursor . object = this . cleanSubject ( c ) ;
248+ return this ;
249+ } ;
250+
251+ WOQLQuery . prototype . value = function ( a , b , c ) {
252+ // if (a && a === 'args')
253+ // return ['subject', 'predicate', 'object']
254+ if ( this . cursor [ '@type' ] ) this . wrapCursorWithAnd ( ) ;
255+ this . cursor [ '@type' ] = 'Triple' ;
256+ this . cursor . subject = this . cleanSubject ( a ) ;
257+ this . cursor . predicate = this . cleanPredicate ( b ) ;
258+ this . cursor . object = this . cleanDataValue ( c , 'xsd:string' ) ;
259+ return this ;
260+ } ;
261+
240262WOQLQuery . prototype . quad = function ( a , b , c , g ) {
241263 if ( this . cursor [ '@type' ] ) this . wrapCursorWithAnd ( ) ;
242264 const args = this . triple ( a , b , c ) ;
0 commit comments