@@ -47,12 +47,16 @@ discard block |
||
| 47 | 47 | $this->client = new EasyRdf\Sparql\Client($endpoint); |
| 48 | 48 | |
| 49 | 49 | // set graphClause so that it can be used by all queries |
| 50 | - if ($this->isDefaultEndpoint()) // default endpoint; query any graph (and catch it in a variable) |
|
| 50 | + if ($this->isDefaultEndpoint()) { |
|
| 51 | + // default endpoint; query any graph (and catch it in a variable) |
|
| 51 | 52 | { |
| 52 | 53 | $this->graphClause = "GRAPH $graph"; |
| 53 | - } elseif ($graph) // query a specific graph |
|
| 54 | + } |
|
| 55 | + } elseif ($graph) { |
|
| 56 | + // query a specific graph |
|
| 54 | 57 | { |
| 55 | 58 | $this->graphClause = "GRAPH <$graph>"; |
| 59 | + } |
|
| 56 | 60 | } else // query the default graph |
| 57 | 61 | { |
| 58 | 62 | $this->graphClause = ""; |
@@ -1943,8 +1947,7 @@ discard block |
||
| 1943 | 1947 | if (sizeof($ret) > 0) { |
| 1944 | 1948 | // existing concept, with children |
| 1945 | 1949 | return $ret; |
| 1946 | - } |
|
| 1947 | - else { |
|
| 1950 | + } else { |
|
| 1948 | 1951 | // nonexistent concept |
| 1949 | 1952 | return null; |
| 1950 | 1953 | } |