<?php
require_once ("header.php");
setGlobals();
$q = "PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>
PREFIX owl:<http://www.w3.org/2002/07/owl#>
PREFIX rdf:<http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX crm:<http://www.cidoc-crm.org/rdfs/cidoc_crm_v5.0.2_english_label.rdfs#>
PREFIX rro:<https://rdf.ng-london.org.uk/raphael/ontology/>
PREFIX rri:<https://rdf.ng-london.org.uk/raphael/resource/>
SELECT
?Image ?ID ?Height ?Width
?Levels ?Pyramid ?IIPServer
?Caption
WHERE {
?Image rro:RP17.has_identifier ?ID ;
rro:RP225.has_width_in_pixels ?Width ;
rro:RP227.has_height_in_pixels ?Height ;
rro:RP243.has_pyramid_server ?Server ;
rro:RP30.has_pyramid ?Pyramid ;
rro:RP86.has_no_of_pyramidal_levels ?Levels ;
rro:RP241.is_public rri:RCL228.Yes ;
rdf:type rro:RC25.Image .
Optional { ?Image rro:RP233.has_caption ?Caption . }.
?Server rdf:type rro:RC280.IIPImage_Server ;
rdfs:label ?IIPServer
FILTER ( ?Image = rri:N-1171-00-000049-WZ-PYR ) . }";
$arr = selectQuery ($q, true);
$r = $arr[0];
$im = $r["Pyramid"]["value"];
$w = $r["Width"]["value"];
$h = $r["Height"]["value"];
$l = $r["Levels"]["value"];
$server = $r["IIPServer"]["value"];
$ID = $r["ID"]["value"];
echo htmlHeader ();
echo <<<END
<script type="text/javascript" src="$GLOBALS[js]/iipmooviewer-2.0_ng.js"></script>
<script language="javascript" type="text/javascript">
window.addEvent("domready",function() {
var niip = new IIP( "iipDiv", {
image: "$im",
prefix: "graphics/",
hideIcon: true,
navigation: "top right",
image_vars: {
max_width : $w,
max_height : $h,
tile_size : 256,
num_resolution : $l},
server: "$server"})
});
</script>
<table class="grey"><tr><td>
<table id="qtable" class="qresults"><tr>
<td width="640px"><div id="iipDiv" class="targetframe"></div></td>
<td><font class="about">Simple <a href="http://iipimage.sourceforge.net">
IIPImage</a> Viewer for:</font><ul><li><a href="$im">$ID</a></li></ul></td>
</tr></table></td></tr></table>
END;
?> |