In 2007 the Raphael Research Resource project began to examine how complex conservation, scientific and art historical research could be combined in a flexible digital form. Exploring the presentation of interrelated high resolution images and text, along with how the data could be stored in relation to an event driven ontology in the form of RDF triples. In addition to the main user interface the data stored within the system is now also accessible in the the form of open linkable data combined with a SPARQL end-point at https://rdf.ng-london.org.uk/rrr/sparql.

This example will introduce the information which is currently available within this resource and some of the web-base tools that have been developed to disseminate it.

This process will be based on but not necessarily limited too:
  • How to perform basic SPARQL queries.
  • Using PHP to collect and format the results of basic SPARQL queries.
  • Using existing IIPImage javascript libraries to present high resolution images.
  • Using PHP and HTML to combine the formatted results and images into simple web-pages.
This example is intended as a basic introduction to these particular resources and some of the techniques currently being used to exploit them. The resources will remain publicly available for those who wish to continue to work with them. However, this system should be considered as experimental and may be subject to periods of down time. An archive of the code used to create this example presentation can be found here.

More recently (2019) this example was refreshed as part of the work carried out in relation to the AHRC funded Linked Conservation Data project.

Simple query example: Find related things by category

SPARQL Query Query Results

Soft limit
Array
(
    [0] => Array
        (
            [things] => Array
                (
                    [type] => uri
                    [value] => https://rdf.ng-london.org.uk/raphael/resource/Perugia_Galleria_Nazionale_Sinibaldo_Ibi_CP
                )

        )

    [1] => Array
        (
            [things] => Array
                (
                    [type] => uri
                    [value] => https://rdf.ng-london.org.uk/raphael/resource/Perugia_San_Fiorenzo_bw
                )

        )

    [2] => Array
        (
            [things] => Array
                (
                    [type] => uri
                    [value] => https://rdf.ng-london.org.uk/raphael/resource/Perugia_San_Fiorenzo_col_CP
                )

        )

    [3] => Array
        (
            [things] => Array
                (
                    [type] => uri
                    [value] => https://rdf.ng-london.org.uk/raphael/resource/Perugia_San_Fiorenzo_Ground_Plan_ca_1650_CP
                )

        )

    [4] => Array
        (
            [things] => Array
                (
                    [type] => uri
                    [value] => https://rdf.ng-london.org.uk/raphael/resource/NG6480_Historical_Dossier_Christies_letter_1977
                )

        )

)

Simplified PHP Code
<?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 * WHERE {
	?things rro:RP40.is_related_to rri:NG1171 ;
	rro:RP98.is_in_project_category rri:RCL183.Provenance .
} LIMIT 5";

$r = selectQuery($q, true);

echo "<pre>";
print_r ($r);
echo "</pre>";

?>
		


This site was developed by: Joseph Padfield, The National Gallery Scientific Department.