File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -992,7 +992,6 @@ TripleBuilder.prototype.sub = function(s){
992
992
return this . addEntry ( unit ) ;
993
993
}
994
994
995
-
996
995
TripleBuilder . prototype . label = function ( l , lang ) {
997
996
lang = ( lang ? lang : "en" ) ;
998
997
var x = this . addPO ( 'rdfs:label' , { "@value" : l , "@language" : lang } ) ;
@@ -1004,6 +1003,11 @@ TripleBuilder.prototype.comment = function(c, lang){
1004
1003
return this . addPO ( 'rdfs:comment' , { "@value" : c , "@language" : lang } ) ;
1005
1004
}
1006
1005
1006
+ TripleBuilder . prototype . property = function ( p , val ) {
1007
+ p = this . cleanPredicate ( p ) ;
1008
+ return this . addPO ( p , val ) ;
1009
+ }
1010
+
1007
1011
TripleBuilder . prototype . parent = function ( ...p ) {
1008
1012
for ( var i = 0 ; i < p . length ; i ++ ) {
1009
1013
pn = this . query . cleanClass ( p [ i ] ) ;
You can’t perform that action at this time.
0 commit comments