@@ -165,10 +165,10 @@ discard block |
||
| 165 | 165 | $sparql = $this->getSparql(); |
| 166 | 166 | $result = $sparql->queryConceptScheme($defaultcs); |
| 167 | 167 | } catch (EasyRdf\Http\Exception | EasyRdf\Exception | Throwable $e) { |
| 168 | - if ($this->model->getConfig()->getLogCaughtExceptions()) { |
|
| 169 | - error_log('Caught exception: ' . $e->getMessage()); |
|
| 170 | - } |
|
| 171 | - return null; |
|
| 168 | + if ($this->model->getConfig()->getLogCaughtExceptions()) { |
|
| 169 | + error_log('Caught exception: ' . $e->getMessage()); |
|
| 170 | + } |
|
| 171 | + return null; |
|
| 172 | 172 | } |
| 173 | 173 | $conceptscheme = $result->resource($defaultcs); |
| 174 | 174 | $this->order = array("dc:title", "dc11:title", "skos:prefLabel", "rdfs:label", "dc:subject", "dc11:subject", "dc:description", "dc11:description", "dc:publisher", "dc11:publisher", "dc:creator", "dc11:creator", "dc:contributor", "dc:language", "dc11:language", "owl:versionInfo", "dc:source", "dc11:source"); |
@@ -238,9 +238,9 @@ discard block |
||
| 238 | 238 | try { |
| 239 | 239 | $conceptSchemes = $this->getSparql()->queryConceptSchemes($lang); |
| 240 | 240 | } catch (EasyRdf\Http\Exception | EasyRdf\Exception | Throwable $e) { |
| 241 | - if ($this->model->getConfig()->getLogCaughtExceptions()) { |
|
| 242 | - error_log('Caught exception: ' . $e->getMessage()); |
|
| 243 | - } |
|
| 241 | + if ($this->model->getConfig()->getLogCaughtExceptions()) { |
|
| 242 | + error_log('Caught exception: ' . $e->getMessage()); |
|
| 243 | + } |
|
| 244 | 244 | } |
| 245 | 245 | return $conceptSchemes; |
| 246 | 246 | } |
@@ -436,9 +436,9 @@ discard block |
||
| 436 | 436 | try { |
| 437 | 437 | $conceptInfo = $sparql->queryConceptInfo($uri, $this->config->getArrayClassURI(), array($this), $clang); |
| 438 | 438 | } catch (EasyRdf\Http\Exception | EasyRdf\Exception | Throwable $e) { |
| 439 | - if ($this->model->getConfig()->getLogCaughtExceptions()) { |
|
| 440 | - error_log('Caught exception: ' . $e->getMessage()); |
|
| 441 | - } |
|
| 439 | + if ($this->model->getConfig()->getLogCaughtExceptions()) { |
|
| 440 | + error_log('Caught exception: ' . $e->getMessage()); |
|
| 441 | + } |
|
| 442 | 442 | } |
| 443 | 443 | return $conceptInfo; |
| 444 | 444 | } |
@@ -354,10 +354,12 @@ |
||
| 354 | 354 | // register vocabulary ids as RDF namespace prefixes |
| 355 | 355 | $prefix = preg_replace('/\W+/', '', $voc->getId()); // strip non-word characters |
| 356 | 356 | try { |
| 357 | - if ($prefix != '' && EasyRdf\RdfNamespace::get($prefix) === null) // if not already defined |
|
| 357 | + if ($prefix != '' && EasyRdf\RdfNamespace::get($prefix) === null) { |
|
| 358 | + // if not already defined |
|
| 358 | 359 | { |
| 359 | 360 | EasyRdf\RdfNamespace::set($prefix, $voc->getUriSpace()); |
| 360 | 361 | } |
| 362 | + } |
|
| 361 | 363 | |
| 362 | 364 | } catch (Exception $e) { |
| 363 | 365 | // not valid as namespace identifier, ignore |