<?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 ) . }";
$r = selectQuery($q, true);
echo "<pre>";
print_r ($r);
echo "</pre>";
?>
|