diff --git a/.gitignore b/.gitignore index fc673fa..ab4e507 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ composer.lock composer.phar autoload.php /vendor/ +.idea diff --git a/CHANGELOG.md b/CHANGELOG.md index 85f4488..071564a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,15 +1,7 @@ -Nemrod 0.1.0 -============= - -* First public release -* ResourceManager supporting SPARQL Endpoints -* QueryBuilder -* Form component -* JsonLD Serialization - Nemrod 0.1.1 ============ +* More docs * Form component: Better empty_data management * Form component: Literal (or subclass) is instantiated if appropriate * Resource manager: Datatypes + langs (for strings) are managed in persister @@ -17,4 +9,13 @@ Nemrod 0.1.1 * Resource manager: Repositoty's findOneBy now based on SPARQL subquery + returns a Resource * Resource manager: resources uri are managed on their expanded form * Resource manager: a lifecycle listener/subscriber can be registered to ALL (endpoints) managers events at once. -* EasyRdf's Base resource switching abilities are used; Nemrod base resource is default base class in framework \ No newline at end of file +* EasyRdf's Base resource switching abilities are used; Nemrod base resource is default base class in framework + +Nemrod 0.1.0 +============= + +* First public release +* ResourceManager supporting SPARQL Endpoints +* QueryBuilder +* Form component +* JsonLD Serialization diff --git a/src/Conjecto/Nemrod/ResourceManager/UnitOfWork.php b/src/Conjecto/Nemrod/ResourceManager/UnitOfWork.php index 2ea24a7..eb351ad 100644 --- a/src/Conjecto/Nemrod/ResourceManager/UnitOfWork.php +++ b/src/Conjecto/Nemrod/ResourceManager/UnitOfWork.php @@ -779,16 +779,18 @@ private function getSnapshotForResource(\Traversable $resources, $array = array( $snapshot[$resource->getUri()] = $bigSnapshot[$resource->getUri()]; //getting snapshots also for blank nodes - if (!empty($bigSnapshot)) - foreach ($bigSnapshot[$resource->getUri()] as $property => $values) { - return $bigSnapshot; - foreach ($values as $value) { - $array[] = $value['value']; + if (!empty($bigSnapshot)) { + foreach ($bigSnapshot[$resource->getUri()] as $property => $values) { + return $bigSnapshot; + foreach ($values as $value) { + $array[] = $value['value']; // if ((!$this->isManagementBlackListed($value['value'])) && $value['type'] === 'bnode' && isset($bigSnapshot[$value['value']])) { // $snapshot[$value['value']] = $bigSnapshot[$value['value']]; // } + } } } + return $array; } }