public function setPropertyValue( core_kernel_classes_Resource $resource,  core_kernel_classes_Property $property, $object, $lg = null)
    {
        $userId = $this->getServiceLocator()->get(SessionService::SERVICE_ID)->getCurrentUser()->getIdentifier();
        $object  = $object instanceof core_kernel_classes_Resource ? $object->getUri() : (string) $object;
    	$platform = $this->getPersistence()->getPlatForm();
        $lang = "";
        // Define language if required
        if ($property->isLgDependent()){
        	if ($lg!=null){
        		$lang = $lg;
        	} else {
                $lang = $this->getServiceLocator()->get(SessionService::SERVICE_ID)->getCurrentSession()->getDataLanguage();
        	}
        }
        
        $query = 'INSERT INTO statements (modelid, subject, predicate, object, l_language, author,epoch)
        			VALUES  (?, ?, ?, ?, ?, ? , ?)';

        $returnValue = $this->getPersistence()->exec($query, array(
       		$this->getNewTripleModelId(),
       		$resource->getUri(),
       		$property->getUri(),
       		$object,
       		$lang,
            $userId,
            $platform->getNowExpression()
        ));
        
        

        return (bool) $returnValue;
    }