Lines Matching defs:object

119     function removeTriples($subject=null, $predicate=null, $object=null, $graph=null) {
122 foreach(array('subject','predicate','object','graph') as $param) {
149 function fetchTriples($subject=null, $predicate=null, $object=null, $graph=null) {
154 foreach(array('subject','predicate','object','graph') as $param) {
176 $sql = "SELECT subject, predicate, object, graph FROM ".self::$readable." WHERE ". implode(" AND ", $filters).$scopeRestriction;
201 * @param object string
205 function addTriple($subject, $predicate, $object, $graph) {
206 return $this->addTriples(array(array('subject'=>$subject, 'predicate'=>$predicate, 'object'=>$object)), $graph);
211 * @param triples array contains all triples as arrays with subject, predicate and object keys
217 $sql = "INSERT INTO ".self::$writable."(subject, predicate, object, graph) VALUES(?, ?, ?, ?)";
225 $values = array($t['subject'],$t['predicate'],$t['object'],$graph);
304 'object'=>array('type'=>'variable','text'=>'__object')
443 // the object is a literal
444 if($tp['object']['type'] == 'literal') {
446 $conditions[] = $this->_ci('object').' = '.$this->_ci(':'.$id);
447 $this->literals[$id] = $tp['object']['text'];
455 // subject equals object
456 if($this->_patternEquals($tp['subject'],$tp['object'])) {
457 $conditions[] = $this->_ci('subject').' = '.$this->_ci('object');
460 // predicate equals object
461 if($this->_patternEquals($tp['predicate'],$tp['object'])) {
462 $conditions[] = $this->_ci('predicate').' = '.$this->_ci('object');
486 // project the object if it's different from the subject and different from the predicate
487 if(!$this->_patternEquals($tp['subject'], $tp['object']) && !$this->_patternEquals($tp['predicate'],$tp['object'])) {
488 $list[] = 'object AS '.$this->_name($tp['object']);
511 // the object is a variable
512 if($tp['object']['type'] == 'variable') {
513 $terms[] = $this->_name($tp['object']);