Skip to content
This repository has been archived by the owner on Aug 5, 2020. It is now read-only.

Commit

Permalink
ARC2 addition: set ARC2 to version 2.3.*; RdfHelpers: small fix in ge…
Browse files Browse the repository at this point in the history
…tNodeInSparqlFormat
  • Loading branch information
k00ni committed Jun 14, 2018
1 parent 2fd6244 commit ac2d9ae
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Saft/Addition/ARC2/composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "saft/saft-arc2",
"type": "library",
"description": "Adapter to integrate ARC2 store into Saft.",
"description": "Adapter to integrate ARC2 RDF store into Saft.",
"keywords": ["Saft", "Triple Store", "ARC2", "RDF", "MySQL", "SPARQL"],
"homepage": "https://safting.github.io/",
"license": "MIT",
Expand All @@ -21,7 +21,7 @@
],
"require": {
"php": ">=5.6",
"semsol/arc2": "2.*",
"semsol/arc2": "2.3.*",
"sabre/uri": "1.*",
"saft/saft-store": ">=1.0"
},
Expand Down
6 changes: 5 additions & 1 deletion src/Saft/Rdf/RdfHelpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ public function getNodeInSparqlFormat(Node $node, $var = null)
return $node->toNQuads();
}

return '?'.uniqid('tempVar');
if (null !== $var) {
return '?'.$var;
} else {
return '?'.uniqid('tempVar');
}
}

/**
Expand Down

0 comments on commit ac2d9ae

Please sign in to comment.