File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -986,6 +986,13 @@ TripleBuilder.prototype.isa = function(s){
986
986
return this . addEntry ( unit ) ;
987
987
}
988
988
989
+ TripleBuilder . prototype . domain = function ( d ) {
990
+ d = this . query . cleanClass ( d ) ;
991
+ var x = this . addPO ( 'rdfs:domain' , d ) ;
992
+ return x ;
993
+ }
994
+
995
+
989
996
TripleBuilder . prototype . sub = function ( s ) {
990
997
s = this . query . cleanClass ( s ) ;
991
998
var unit = new WOQLQuery . sub ( this . subject , s ) ;
@@ -1010,7 +1017,7 @@ TripleBuilder.prototype.property = function(p,val){
1010
1017
1011
1018
TripleBuilder . prototype . parent = function ( ...p ) {
1012
1019
for ( var i = 0 ; i < p . length ; i ++ ) {
1013
- pn = this . query . cleanClass ( p [ i ] ) ;
1020
+ var pn = this . query . cleanClass ( p [ i ] ) ;
1014
1021
this . addPO ( 'rdfs:subClassOf' , pn ) ;
1015
1022
}
1016
1023
return this ;
You can’t perform that action at this time.
0 commit comments