<?php set_include_path(get_include_path() . PATH_SEPARATOR . '../lib/'); require_once "BBC/Programmes.php"; require_once "html_tag_helpers.php"; ## Configure the RDF parser to use require_once "EasyRdf/Parser/Arc.php"; EasyRdf_Graph::setRdfParser(new EasyRdf_Parser_Arc()); # Configure the HTTP client to use require_once "EasyRdf/Http/Client.php"; EasyRdf_Graph::setHttpClient(new EasyRdf_Http_Client()); ?> <html> <head><title>Episode Page</title></head> <body> <?php echo form_tag(); echo text_field_tag('pid', 'b00p4h42', array('size' => 12)); echo submit_tag(); echo form_end_tag(); ?> <?php if (isset($_REQUEST['pid'])) { $episode = BBC_Programmes_Programme::find($_REQUEST['pid']); echo content_tag('h1', $episode->getTitle()); if ($episode->get('foaf:depiction')) { echo image_tag($episode->get('foaf:depiction')); } echo content_tag('p', $episode->get('po:long_synopsis'));