public function setStatement($subject, $predicate, $object, $language)
    {
        $returnValue = (bool) false;

        
        $dbWrapper 	= core_kernel_classes_DbWrapper::singleton();
        $platform   = $dbWrapper->getPlatForm();
        $localNs 	= common_ext_NamespaceManager::singleton()->getLocalNamespace();
        $mask		= 'yyy[admin,administrators,authors]';	//now it's the default right mode
        $query = 'INSERT INTO statements (modelid,subject,predicate,object,l_language,author,epoch)
        			VALUES  (?, ?, ?, ?, ?, ? , ?);';

        try{
	        $returnValue = $dbWrapper->exec($query, array(
	       		$localNs->getModelId(),
	       		$subject,
	       		$predicate,
	       		$object,
	       		$language,
	       		\common_session_SessionManager::getSession()->getUserUri(),
	            $platform->getNowExpression()
	             
	        ));
        }
        catch (PDOException $e){
	        if($e->getCode() !== '00000'){
				throw new common_Exception ("Unable to setStatement (SPO) {$subject}, {$predicate}, {$object} : " . $e->getMessage());
			}
        }
        
        

        return (bool) $returnValue;
    }
public function setStatement($subject, $predicate, $object, $language)
    {
        $returnValue = (bool) false;

        
        $dbWrapper 	= core_kernel_classes_DbWrapper::singleton();
        $platform   = $dbWrapper->getPlatForm();
        $localNs 	= common_ext_NamespaceManager::singleton()->getLocalNamespace();
        $mask		= 'yyy[admin,administrators,authors]';	//now it's the default right mode
        $query = 'INSERT INTO statements (modelid,subject,predicate,object,l_language,author,epoch)
        			VALUES  (?, ?, ?, ?, ?, ? , ?);';

        try{
	        $returnValue = $dbWrapper->exec($query, array(
	       		$localNs->getModelId(),
	       		$subject,
	       		$predicate,
	       		$object,
	       		$language,
	       		\common_session_SessionManager::getSession()->getUserUri(),
	            $platform->getNowExpression()
	             
	        ));
        }
        catch (PDOException $e){
	        if($e->getCode() !== '00000'){
				throw new common_Exception ("Unable to setStatement (SPO) {$subject}, {$predicate}, {$object} : " . $e->getMessage());
			}
        }
        
        

        return (bool) $returnValue;
    }
public function setStatement ( $ subject , $ predicate , $ object , $ language ) { $ returnValue = ( bool ) false ; $ dbWrapper = core_kernel_classes_DbWrapper :: singleton ( ) ; $ platform = $ dbWrapper -> getPlatForm ( ) ; $ localNs = common_ext_NamespaceManager :: singleton ( ) -> getLocalNamespace ( ) ; $ mask = 'yyy[admin,administrators,authors]' ; //now it's the default right mode
 $ query = 'INSERT INTO statements (modelid,subject,predicate,object,l_language,author,epoch)
        			VALUES  (?, ?, ?, ?, ?, ? , ?);' ; try { $ returnValue = $ dbWrapper -> exec ( $ query , array ( $ localNs -> getModelId ( ) , $ subject , $ predicate , $ object , $ language , \ common_session_SessionManager :: getSession ( ) -> getUserUri ( ) , $ platform -> getNowExpression ( ) ) ) ; } catch ( PDOException $ e ) { if ( $ e -> getCode ( ) !== '00000' ) { throw new common_Exception ( "Unable to setStatement (SPO) {$subject}, {$predicate}, {$object} : " . $ e -> getMessage ( ) ) ; } } return ( bool ) $ returnValue ; }
add a new statment to the knowledge base

@access public
@author patrick.plichart@tudor.lu
@param  string subject
@param  string predicate
@param  string object
@param  string language
@return boolean
add a new statment to the knowledge base