Mailing list ARC-DEV: Archives

Null named and default graph URIs

From: Periklis Stavrou 
Subject: Null named and default graph URIs
Date: Mon, 28 Sep 2009 10:19:38 +0300


Hi,

I think there should be a minor change in ARC2_StoreEndpoint.php where 
default-graph-uri and named-graph-uri params are read. When there is no 
value for both, for example :

query=SELECT++*%0AWHERE%0A++%7B+%3Fs++%3Fp++%3Fo+.%7D%0A++%0A&default-graph-uri=&named-graph-uri=

the result set is empty. Maybe the solution is to change * to + in the p 
function

if (preg_match_all('/\&' . $name . '=([^\&]***)/', $qs, $m)){
        foreach ($m[1] as $i => $val) {
          $m[1][$i] = stripslashes($val);
        }

in order to match only for not null URIs.

Regards
Periklis