Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Enhance performance by accessing model only if needed

- model is only access, when namespaces are not yet fetched, which saves some
  SPARQL queries
  • Loading branch information...
commit d5d86d592e25fab31a875f0c0ab278caa370a21f 1 parent e6a6777
@pfrischmuth pfrischmuth authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  library/Erfurt/Namespaces.php
View
2  library/Erfurt/Namespaces.php
@@ -240,10 +240,10 @@ public function getNamespacePrefixes($graph)
*/
public function getNamespacesForGraph($graph)
{
- $model = $this->getModel($graph);
$graph = (string)$graph;
if (!array_key_exists($graph, $this->_namespaces)) {
+ $model = $this->getModel($graph);
$graphNamespaces = array();
// load graph configuration froms store
Please sign in to comment.
Something went wrong with that request. Please try again.