@@ -606,7 +606,7 @@ WOQLQuery.prototype.update = function(woql){
606
606
/**
607
607
* Schema manipulation shorthand
608
608
*/
609
- WOQLQuery . prototype . addClass = function ( c , graph ) {
609
+ WOQLQuery . prototype . add_class = function ( c , graph ) {
610
610
if ( c ) {
611
611
graph = ( graph ? this . cleanGraph ( graph ) : "db:schema" ) ;
612
612
c = ( c . indexOf ( ":" ) == - 1 ) ? "scm:" + c : c ;
@@ -615,7 +615,7 @@ WOQLQuery.prototype.addClass = function(c, graph){
615
615
return this ;
616
616
}
617
617
618
- WOQLQuery . prototype . addProperty = function ( p , t , g ) {
618
+ WOQLQuery . prototype . add_property = function ( p , t , g ) {
619
619
t = ( t ? t : "xsd:string" ) ;
620
620
if ( p ) {
621
621
var graph = ( g ? this . cleanGraph ( g ) : "db:schema" ) ;
@@ -638,7 +638,7 @@ WOQLQuery.prototype.addProperty = function(p, t, g){
638
638
return this . lastUpdate ( "add_quad" , this . cleanClass ( p ) ) ;
639
639
}
640
640
641
- WOQLQuery . prototype . deleteClass = function ( c , graph ) {
641
+ WOQLQuery . prototype . delete_class = function ( c , graph ) {
642
642
if ( c ) {
643
643
graph = ( graph ? this . cleanGraph ( graph ) : "db:schema" ) ;
644
644
c = ( c . indexOf ( ":" ) == - 1 ) ? "scm:" + c : c ;
@@ -650,7 +650,7 @@ WOQLQuery.prototype.deleteClass = function(c, graph){
650
650
return this ;
651
651
}
652
652
653
- WOQLQuery . prototype . deleteProperty = function ( p , graph ) {
653
+ WOQLQuery . prototype . delete_property = function ( p , graph ) {
654
654
if ( p ) {
655
655
graph = ( graph ? this . cleanGraph ( graph ) : "db:schema" ) ;
656
656
p = ( p . indexOf ( ":" ) == - 1 ) ? "scm:" + p : p ;
@@ -769,7 +769,9 @@ WOQLQuery.prototype.star = function(GraphIRI, Subj, Pred, Obj){
769
769
}
770
770
}
771
771
772
-
772
+ /**
773
+ * These are composite functions, the above are primitives
774
+ */
773
775
WOQLQuery . prototype . getEverything = function ( GraphIRI ) {
774
776
if ( GraphIRI ) {
775
777
GraphIRI = this . cleanGraph ( GraphIRI ) ;
@@ -1494,7 +1496,7 @@ function TripleBuilder(type, cursor, s){
1494
1496
TripleBuilder . prototype . label = function ( l , lang ) {
1495
1497
lang = ( lang ? lang : "en" ) ;
1496
1498
if ( l . substring ( 0 , 2 ) == "v:" ) {
1497
- var d = { "value" : l , "@language" : lang }
1499
+ var d = l ; // {"value": l, "@language": lang }
1498
1500
}
1499
1501
else {
1500
1502
var d = { "@value" : l , "@language" : lang }
@@ -1506,7 +1508,8 @@ TripleBuilder.prototype.label = function(l, lang){
1506
1508
TripleBuilder . prototype . description = function ( c , lang ) {
1507
1509
lang = ( lang ? lang : "en" ) ;
1508
1510
if ( c . substring ( 0 , 2 ) == "v:" ) {
1509
- var d = { "value" : c , "@language" : lang }
1511
+ //var d = {"value": c, "@language ": lang }
1512
+ var d = c ;
1510
1513
}
1511
1514
else {
1512
1515
var d = { "@value" : c , "@language" : lang }
0 commit comments