a['ns']['foaf'] = 'http://xmlns.com/foaf/0.1/'; $this->a['ns']['mf'] = 'http://poshrdf.org/ns/mf#'; } /* */ function extractRDF() { $t_vals = array(); $t = ''; foreach ($this->nodes as $n) { if (isset($n['tag']) && ($n['tag'] == 'img') && ($this->v('id', '', $n['a']) == 'profile-image')) { $t_vals['vcard_id'] = $this->getDocID($n) . '#resource(side/1/2/1)'; $t .= '?vcard_id mf:photo <' . $n['a']['src'] . '> . '; break; } } if ($t) { $doc = $this->getFilledTemplate($t, $t_vals, $n['doc_base']); $this->addTs(ARC2::getTriplesFromIndex($doc)); } } /* */ }