@@ -23,14 +23,14 @@ WOQL.and = function(...queries){ return new WOQLQuery().and(...queries); }
23
23
WOQL . not = function ( query ) { return new WOQLQuery ( ) . not ( query ) ; }
24
24
WOQL . triple = function ( a , b , c ) { return new WOQLQuery ( ) . triple ( a , b , c ) ; }
25
25
WOQL . quad = function ( a , b , c , d ) { return new WOQLQuery ( ) . quad ( a , b , c , d ) ; }
26
- WOQL . eq = function ( a , b ) { return new WOQLQuery ( ) . eq ( a , b ) ; }
27
26
WOQL . sub = function ( a , b ) { return new WOQLQuery ( ) . sub ( a , b ) ; }
28
27
WOQL . isa = function ( a , b ) { return new WOQLQuery ( ) . isa ( a , b ) ; }
28
+ WOQL . eq = function ( a , b ) { return new WOQLQuery ( ) . eq ( a , b ) ; }
29
29
WOQL . trim = function ( a , b ) { return new WOQLQuery ( ) . trim ( a , b ) ; }
30
30
WOQL . delete = function ( JSON_or_IRI ) { return new WOQLQuery ( ) . delete ( JSON_or_IRI ) ; }
31
31
WOQL . delete_triple = function ( S , P , O ) { return new WOQLQuery ( ) . delete_triple ( S , P , O ) ; }
32
- WOQL . add_triple = function ( S , P , O ) { return new WOQLQuery ( ) . add_triple ( S , P , O ) ; }
33
32
WOQL . delete_quad = function ( S , P , O , G ) { return new WOQLQuery ( ) . delete_quad ( S , P , O , G ) ; }
33
+ WOQL . add_triple = function ( S , P , O ) { return new WOQLQuery ( ) . add_triple ( S , P , O ) ; }
34
34
WOQL . add_quad = function ( S , P , O , G ) { return new WOQLQuery ( ) . add_quad ( S , P , O , G ) ; }
35
35
WOQL . eval = function ( arith , v ) { return new WOQLQuery ( ) . eval ( arith , v ) ; }
36
36
WOQL . plus = function ( ...args ) { return new WOQLQuery ( ) . plus ( ...args ) ; }
@@ -49,11 +49,10 @@ WOQL.list = function(vars){ return new WOQLQuery().list(vars); }
49
49
//WOQL.value = function(vars){ return new WOQLQuery().list(vars); }
50
50
//These ones are special ones for dealing with the schema only...
51
51
WOQL . addClass = function ( classid , graph ) { return new WOQLQuery ( ) . addClass ( classid , graph ) ; }
52
- WOQL . addProperty = function ( propid , graph ) { return new WOQLQuery ( ) . addProperty ( propid , graph ) ; }
52
+ WOQL . addProperty = function ( propid , type , graph ) { return new WOQLQuery ( ) . addProperty ( propid , type , graph ) ; }
53
53
WOQL . node = function ( nodeid , type ) { return new WOQLQuery ( ) . node ( nodeid , type ) ; }
54
54
55
55
56
-
57
56
/*
58
57
* Beneath here are pseudo predicates - they belong to the javascript object
59
58
* but not to the WOQL language
@@ -62,8 +61,6 @@ WOQL.node = function(nodeid, type){ return new WOQLQuery().node(nodeid, type); }
62
61
WOQL . query = function ( ) { return new WOQLQuery ( ) ; }
63
62
//loads query from json
64
63
WOQL . json = function ( json ) { return new WOQLQuery ( ) . json ( json ) ; }
65
- //returns a special schema object for terse schema updates
66
- WOQL . schema = function ( ) { return new WOQLSchema ( ) ; }
67
64
68
65
WOQL . rule = function ( ) { return new Pattern . FrameRule ( ) ; }
69
66
//Simple utility function for typechecking
@@ -1036,6 +1033,11 @@ TripleBuilder.prototype.max = function(m){
1036
1033
return this . card ( m , "max" ) ;
1037
1034
}
1038
1035
1036
+ TripleBuilder . prototype . cardinality = function ( m ) {
1037
+ return this . card ( m , "cardinality" ) ;
1038
+ }
1039
+
1040
+
1039
1041
TripleBuilder . prototype . min = function ( m ) {
1040
1042
return this . card ( m , "min" ) ;
1041
1043
}
0 commit comments