From 01b806a95b6c740de25ba997e074852ea1d5ad50 Mon Sep 17 00:00:00 2001 From: Vlad Byndych Date: Tue, 5 Sep 2023 15:10:10 +0200 Subject: [PATCH] chore: removed questionable changes from changeset. --- core/kernel/persistence/starsql/class.Class.php | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/core/kernel/persistence/starsql/class.Class.php b/core/kernel/persistence/starsql/class.Class.php index 43117f615..798a88d4f 100644 --- a/core/kernel/persistence/starsql/class.Class.php +++ b/core/kernel/persistence/starsql/class.Class.php @@ -200,26 +200,15 @@ public function createInstance(core_kernel_classes_Class $resource, $label = '', $subject = $uri; } - $session = $this->getServiceLocator()->get(\oat\oatbox\session\SessionService::SERVICE_ID)->getCurrentSession(); - $sessionLanguage = $this->getDataLanguage(); $node = node()->addProperty('uri', $uriParameter = parameter()) ->addLabel('Resource'); if (!empty($label)) { - $node->addProperty(OntologyRdfs::RDFS_LABEL, [$label . '@' . $sessionLanguage]); + $node->addProperty(OntologyRdfs::RDFS_LABEL, $label); } if (!empty($comment)) { - $node->addProperty(OntologyRdfs::RDFS_COMMENT, [$comment . '@' . $sessionLanguage]); + $node->addProperty(OntologyRdfs::RDFS_COMMENT, $comment); } - $node->addProperty( - 'http://www.tao.lu/Ontologies/TAO.rdf#UpdatedBy', - (string)$session->getUser()->getIdentifier() - ); - $node->addProperty( - 'http://www.tao.lu/Ontologies/TAO.rdf#UpdatedAt', - procedure()::raw('timestamp') - ); - $nodeForRelationship = node()->withVariable($variableForRelatedResource = variable()); $relatedResource = node('Resource')->withProperties(['uri' => $relatedUri = parameter()])->withVariable($variableForRelatedResource); $node = $node->relationshipTo($nodeForRelationship, OntologyRdf::RDF_TYPE);