Skip to content

jpadfield/sshoc_raphael_modelling

 
 

Repository files navigation

DOI

SSHOC - Mapping Raphael to the CIDOC CRM

Please note the content of the Inputs and Outputs is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

CC BY-NC-SA 4.0

CC BY-NC-SA 4.0

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. The original main user interface is still live and the data stored within the system has been mapped tot he CIDOC CRM using the code presented here. The SSHOC work aimed to make this data more FAIR so in addition to mapping it to a standard ontology, to increase Interoperability, it has also been made available in the form of open linkable data combined with a SPARQL end-point. This live data presentation can been found Here.

This repo contains code that parses an old XML export of the Raphael Research Resource, along with pulling additional data from some of the National Gallery internal data sources and maps the data to CIDOC-CRM. As the code currently connects to some internal systems some aditional work may be required for it to run externally.

Running the code

  • To run the code in this repo simply run '''raphael_mapping.py''' from the command line.
  • Certain inputs (AAT references) appear in the inputs folder as Excel spreadsheets; others are included as XML files.
  • Copies of each section of the code are saved in the outputs folder as they are generated. There are seven sub-graphs which combined make up a full graph. Outputs are saved in XML, TTL and TRIG formats.
  • A partial rebuild can be initiated by deleting the relevant files in the outputs folder and rerunning the code (e.g. to rebuild all objects, delete the grounds_object files). The code checks for these output files before it decides which parts of the graph to build.
  • A full rebuild can be initiated by passing the command line argument 'fullrebuild' when running grounds_mapping. This will take a long time to run so it's not recommended unless absolutely necessary.
  • Run inferencing.py with a graph TTL file as the input to output an inferenced version of the RDF graph.

Acknowledgement

This project was developed and tested as part of the work of the following project:

H2020 EU project SSHOC

SSHOC Grant Info

SSHOC Grant Info

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 99.9%
  • Ruby 0.1%