public function getRdfTriples( core_kernel_classes_Resource $resource)
    {
        $returnValue = null;
        
        $query = 'SELECT * FROM statements WHERE subject = ? AND '.$this->getModelReadSqlCondition().' ORDER BY predicate';
        $result = $this->getPersistence()->query($query, array($resource->getUri()));
        
        $returnValue = new core_kernel_classes_ContainerCollection(new common_Object(__METHOD__));
        while ($statement = $result->fetch()) {
            $triple = new core_kernel_classes_Triple();
            $triple->modelid = $statement["modelid"];
            $triple->subject = $statement["subject"];
            $triple->predicate = $statement["predicate"];
            $triple->object = $statement["object"];
            $triple->id = $statement["id"];
            $triple->epoch = $statement["epoch"];
            $triple->lg = $statement["l_language"];
            $triple->author = $statement["author"];
            $returnValue->add($triple);
        }

        return $returnValue;
    }
public function getRdfTriples( core_kernel_classes_Resource $resource)
    {
        $returnValue = null;
        
        $query = 'SELECT * FROM statements WHERE subject = ? AND '.$this->getModelReadSqlCondition().' ORDER BY predicate';
        $result = $this->getPersistence()->query($query, array($resource->getUri()));
        
        $returnValue = new core_kernel_classes_ContainerCollection(new common_Object(__METHOD__));
        while ($statement = $result->fetch()) {
            $triple = new core_kernel_classes_Triple();
            $triple->modelid = $statement["modelid"];
            $triple->subject = $statement["subject"];
            $triple->predicate = $statement["predicate"];
            $triple->object = $statement["object"];
            $triple->id = $statement["id"];
            $triple->epoch = $statement["epoch"];
            $triple->lg = $statement["l_language"];
            $triple->author = $statement["author"];
            $returnValue->add($triple);
        }

        return $returnValue;
    }
public function getRdfTriples ( core_kernel_classes_Resource $ resource ) { $ returnValue = null ; $ query = 'SELECT * FROM statements WHERE subject = ? AND ' . $ this -> getModelReadSqlCondition ( ) . ' ORDER BY predicate' ; $ result = $ this -> getPersistence ( ) -> query ( $ query , array ( $ resource -> getUri ( ) ) ) ; $ returnValue = new core_kernel_classes_ContainerCollection ( new common_Object ( __METHOD__ ) ) ; while ( $ statement = $ result -> fetch ( ) ) { $ triple = new core_kernel_classes_Triple ( ) ; $ triple -> modelid = $ statement [ "modelid" ] ; $ triple -> subject = $ statement [ "subject" ] ; $ triple -> predicate = $ statement [ "predicate" ] ; $ triple -> object = $ statement [ "object" ] ; $ triple -> id = $ statement [ "id" ] ; $ triple -> epoch = $ statement [ "epoch" ] ; $ triple -> lg = $ statement [ "l_language" ] ; $ triple -> author = $ statement [ "author" ] ; $ returnValue -> add ( $ triple ) ; } return $ returnValue ; }
returns the triples having as subject the current resource

@access public
@author Joel Bout, <joel@taotesting.com>
@param  core_kernel_classes_Resource resource
@return core_kernel_classes_ContainerCollection
returns the triples having as subject the current resource