all('bio:event') as $event) { if (in_array('bio:Birth', $event->types())) { return $event; } } return null; } function age() { $birth = $this->birthEvent(); if ($birth) { $year = substr($birth->get('bio:date'), 0, 4); if ($year) { return date('Y') - $year; } } return 'unknown'; } } ## Add namespaces EasyRdf_Namespace::set('mo', 'http://purl.org/ontology/mo/'); EasyRdf_Namespace::set('bio', 'http://purl.org/vocab/bio/0.1/'); EasyRdf_TypeMapper::set('mo:MusicArtist', 'Model_MusicArtist');?>Artist Info

Artist Info

50)) ?>primaryTopic(); } if (isset($artist)) {?>
Artist Name:
get('foaf:name') ?>
Type:
join('rdf:type',', ') ?>
Homepage:
get('foaf:homepage')) ?>
Wikipedia page:
get('mo:wikipedia')) ?>
types())) { echo "
Age:
"; echo "
".$artist->age()."
\n"; } ?>
dump(); }?>