Skip to content

Commit

Permalink
Small adjustment to object variables in the template
Browse files Browse the repository at this point in the history
  • Loading branch information
coreation committed Apr 30, 2014
1 parent a756f44 commit 023c714
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Tdt/Triples/Controllers/DataController.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ private function getTemplateParameters()

if (substr($o, 0, 4) == "http") {
$o = '<' . $o . '>';
} else {
} else if ($o != '?o') {
// If the object isn't URI, enquote it, unless it's meant as a sparql variable
$o = '"' . $o . '"';
}

Expand All @@ -158,8 +159,7 @@ private function isCoreResource($identifier)

$discovery_document = $discovery->createDiscoveryDocument();

// Check if the first part of the identifier is part of the core resources

// Check if the first part of the identifier is part of the core resources
$core_resources = array_keys(get_object_vars($discovery_document->resources));

$parts = explode('/', $identifier);
Expand Down
2 changes: 1 addition & 1 deletion src/Tdt/Triples/Repositories/ARC2/TripleRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ private function mergeGraph($graph, $input_graph)
* Return the total amount of triples that
* have a subject that matches base_uri
*
* @param $base_uri
* @param string $base_uri
*@
* @return integer
*/
Expand Down

0 comments on commit 023c714

Please sign in to comment.