Ignore:
Timestamp:
2014-11-18T13:40:32+13:00 (9 years ago)
Author:
sjs49
Message:

Fixed query failing to parse when restricted data from two collections was compared

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-sites-dev/von-sparql/js/von-sparql-comparison-script.js

    r29445 r29447  
    122122        if(query.datasetSelection==leftCollection){
    123123            sparqlQuery     +=  "GRAPH gsdl:" + leftCollection + "{   ?s <" + query.pred_L + "> ?minus;"
     124
     125            if(query.refine_L!="")
     126                sparqlQuery     +=  "    <" + query.pred_L + "> \"" + query.predval_L + "\";" 
     127
    124128            subj = "?s ";
    125129        }
    126130        else{
    127131            sparqlQuery     +=  "GRAPH gsdl:" + rightCollection +"{   ?s1 <" + query.pred_R + "> ?minus;";
     132
     133            if(query.refine_R!="")
     134                sparqlQuery     +=  "    <" + query.pred_R + "> \"" + query.predval_L + "\";"
     135
    128136            subj = "?s1 ";
    129137        }
     
    161169                            +   "GRAPH gsdl:" + rightCollection +"{";
    162170        if(query.refine_R!="")
    163             sparqlQuery     +=  "   ?s1 <" + query.pred_R + "> \"" + query.predval_L + "\";"
    164                             +   query.refine_L;
     171            sparqlQuery     +=  "   ?s1 <" + query.pred_R + "> \"" + query.predval_R + "\";"
     172                            +   query.refine_R;
    165173        else
    166174            sparqlQuery     +=  "   ?s1 <" + query.pred_R + "> " ;
Note: See TracChangeset for help on using the changeset viewer.