Skip to content

Commit 5aebc0b

Browse files
added context function back
1 parent 99cdaaa commit 5aebc0b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/woql.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -976,6 +976,15 @@ WOQLQuery.prototype.getContext = function(q){
976976
}
977977
}
978978

979+
980+
/**
981+
* Retrieves the value of the current json-ld context
982+
*/
983+
WOQLQuery.prototype.context = function(c){
984+
this.cursor['@context'] = c;
985+
}
986+
987+
979988
/*
980989
* Transforms from internal json representation to human writable WOQL.js format
981990
*/

0 commit comments

Comments
 (0)