@@ -606,7 +606,7 @@ WOQLQuery.prototype.update = function(woql){
606606/**
607607 * Schema manipulation shorthand
608608 */
609- WOQLQuery . prototype . addClass = function ( c , graph ) {
609+ WOQLQuery . prototype . add_class = function ( c , graph ) {
610610 if ( c ) {
611611 graph = ( graph ? this . cleanGraph ( graph ) : "db:schema" ) ;
612612 c = ( c . indexOf ( ":" ) == - 1 ) ? "scm:" + c : c ;
@@ -615,7 +615,7 @@ WOQLQuery.prototype.addClass = function(c, graph){
615615 return this ;
616616}
617617
618- WOQLQuery . prototype . addProperty = function ( p , t , g ) {
618+ WOQLQuery . prototype . add_property = function ( p , t , g ) {
619619 t = ( t ? t : "xsd:string" ) ;
620620 if ( p ) {
621621 var graph = ( g ? this . cleanGraph ( g ) : "db:schema" ) ;
@@ -638,7 +638,7 @@ WOQLQuery.prototype.addProperty = function(p, t, g){
638638 return this . lastUpdate ( "add_quad" , this . cleanClass ( p ) ) ;
639639}
640640
641- WOQLQuery . prototype . deleteClass = function ( c , graph ) {
641+ WOQLQuery . prototype . delete_class = function ( c , graph ) {
642642 if ( c ) {
643643 graph = ( graph ? this . cleanGraph ( graph ) : "db:schema" ) ;
644644 c = ( c . indexOf ( ":" ) == - 1 ) ? "scm:" + c : c ;
@@ -650,7 +650,7 @@ WOQLQuery.prototype.deleteClass = function(c, graph){
650650 return this ;
651651}
652652
653- WOQLQuery . prototype . deleteProperty = function ( p , graph ) {
653+ WOQLQuery . prototype . delete_property = function ( p , graph ) {
654654 if ( p ) {
655655 graph = ( graph ? this . cleanGraph ( graph ) : "db:schema" ) ;
656656 p = ( p . indexOf ( ":" ) == - 1 ) ? "scm:" + p : p ;
@@ -769,7 +769,9 @@ WOQLQuery.prototype.star = function(GraphIRI, Subj, Pred, Obj){
769769 }
770770}
771771
772-
772+ /**
773+ * These are composite functions, the above are primitives
774+ */
773775WOQLQuery . prototype . getEverything = function ( GraphIRI ) {
774776 if ( GraphIRI ) {
775777 GraphIRI = this . cleanGraph ( GraphIRI ) ;
@@ -1494,7 +1496,7 @@ function TripleBuilder(type, cursor, s){
14941496TripleBuilder . prototype . label = function ( l , lang ) {
14951497 lang = ( lang ? lang : "en" ) ;
14961498 if ( l . substring ( 0 , 2 ) == "v:" ) {
1497- var d = { "value" : l , "@language" : lang }
1499+ var d = l ; // {"value": l, "@language": lang }
14981500 }
14991501 else {
15001502 var d = { "@value" : l , "@language" : lang }
@@ -1506,7 +1508,8 @@ TripleBuilder.prototype.label = function(l, lang){
15061508TripleBuilder . prototype . description = function ( c , lang ) {
15071509 lang = ( lang ? lang : "en" ) ;
15081510 if ( c . substring ( 0 , 2 ) == "v:" ) {
1509- var d = { "value" : c , "@language" : lang }
1511+ //var d = {"value": c, "@language ": lang }
1512+ var d = c ;
15101513 }
15111514 else {
15121515 var d = { "@value" : c , "@language" : lang }
0 commit comments