smart-classic / smart_server

SMArt Bootstrap Server
Apache License 2.0
22 stars 10 forks source link

Incorporate graph merge functionality into SMART JS client #31

Closed jmandel closed 12 years ago

jmandel commented 12 years ago
function addGraphs(){
   //add all graphs in arguments to new rdfquery object
   var rq = SMART.$.rdf();

   $.each(arguments, function(){
       rq.databank = rq.databank.add(this.graph.databank,{namespaces:
this.graph.prefix()});
   });

   return rq;
}