SlideShare a Scribd company logo
3
Most read
4
Most read
7
Most read
1
CIDOC-CRM SPARQL Tutorial on British Museum
data at http://collection.britishmuseum.org
Author : Thomas Francart – thomas.francart@sparna.fr
Date of creation : 04/06/2018
Date of latest modification : 13/09/2018
Version : 2
License : CC-by-nc-sa https://creativecommons.org/licenses/by-nc-sa/4.0/ Attribution-
NonCommercial-ShareAlike 4.0 International
Table of contents
Objectives.....................................................................................................................................2
1. Know where the documentation is ......................................................................................2
CIDOC-CRM documentation........................................................................................................2
British Museum model documentation........................................................................................2
2. Looking for Turner.................................................................................................................2
On the web.................................................................................................................................2
On ResearchSpace.......................................................................................................................3
On the SPARQL service................................................................................................................3
3. Look for the Production Activities of Turner........................................................................5
4. Find the Works/Objects created by Turner..........................................................................6
5. Pictures of the Works............................................................................................................8
6. Dates of the works................................................................................................................9
7. And now… a timeline !..........................................................................................................9
8. Subjects of Turner works ?....................................................................................................9
2
Objectives
This tutorial allows to understand the implementation of the CIDOC-CRM done by the British
Museum on its SPARQL service at https://collection.britishmuseum.org. It also allows to delve
step-by-step in the documentation of the CIDOC-CRM and some of its building blocks.
The objectives of this tutorial are :
o To understand how to interact with the SPARQL service of the British Museum and
the notice pages to retrieve the necessary information;
o To understand how CIDOC-CRM is used for data modelling, on authors, works, work
production, keywords and dates;
o To learn how to write the corresponding SPARQL queries;
At the end of this tutorial you should be capable of reusing the data of the British Musuem to
generate a timeline using a free online service. This demonstrates the potential of open data
reuse in innovative ways.
1. Know where the documentation is
CIDOC-CRM documentation
Go to www.cidoc-crm.org/versions-of-the-cidoc-crm.
Open the PDF version of the latest version of the CIDOC-CRM. This is the reference
specification of the model.
British Museum model documentation
Go to https://confluence.ontotext.com/display/ResearchSpace
Naviguate under “RS Ontology / BM mapping” and have a look at the diagram. In this diagram
we will use the following parts:
 “Bibliography” part for Persons, in top left corner ;
 The “Production” part;
 The central “Object” part, with the « Subject » part just below ;
From the same page click on the link « mapping manual for endpoint site draft 0.98a.pdf ». This
document explains the choices made by the British Museum when mapping its data to the
CIDOC-CRM.
2. Looking for Turner
On the web
 Find “Turner” in your rpeferred search engine ;
 Look at its Wikipedia page (“Joseph Mallord William Turner”).
3
On ResearchSpace
 Go to https://public.researchspace.org and look for an actor named "Turner, Joseph
Mallord William" (with exactly this spelling, case-sensitive, including the comma) ;
 Look at the “table” view and click on “Joseph Mallord William Turner”;
 Click on tab “All properties” in the bottom right corner of the notice page;
On the SPARQL service
 Go to the service endpoint https://collection.britishmuseum.org/resource/sparql.
 Look for anything with the rdfs:label "Turner, Joseph Mallord William";
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?anything WHERE {
?anything rdfs:label "Turner, Joseph Mallord William" .
}
 Click on the URI to navigate to this object notice
(http://collection.britishmuseum.org/id/person-institution/49003/appellation/1)
4
 In the section “Incoming Statements” :
o Hover your mouse on “is identified by” to view its URI ;
o Read the documentation of the property P131 in the CIDOC-CRM specification
to understand its semantic ;
o Try to find this link in the BM mapping diagram, in the upper-left corner ;
o Click on “Joseph Mallord William Turner” and navigate to its notice page at
http://collection.britishmuseum.org/id/person-institution/49003;
 Adapt the SPARQL query to select “the URI of the Person named “Turner, Joseph
Mallord William” "
5
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
SELECT * WHERE {
?person a crm:E21_Person .
?person crm:P131_is_identified_by ?appellation .
?appellation rdfs:label "Turner, Joseph Mallord William" .
}
3. Look for the Production Activities of Turner
 In section “Incoming Statements” of the notice page of Turner, look for links “carried
out by”. You can filter the list by searching for “carried” in the filter box at the op of this
section ;
o Hover your mouse on “carried out by” to view its URI ;
o Look up and read its definition in the CIDOC-CRM specification ;
o Find the corresponding link in the BM mapping diagram; Note that it appears in
multiple places, try to find “the correct one”;
o Note that the Production Activity that links the creator of the work is part of of a
higher-level Production activity that includes this one as well as other
Production activities that hold different pieces of information;
o Try to find the Production Activity that hold the date information ;
6
 Enrich the query to select the URI of the Production Activities of Turner. You can use
the (non CIDOC-CRM) rs:displayLabel property to select some labels for these
activities;
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
PREFIX rs: <http://www.researchspace.org/ontology/>
SELECT ?event ?eventLabel WHERE {
?person a crm:E21_Person .
?person crm:P131_is_identified_by ?appellation .
?appellation rdfs:label "Turner, Joseph Mallord William" .
?event crm:P14_carried_out_by ?person .
?event rs:displayLabel ?eventLabel .
} ORDER BY ?event
4. Find the Works/Objects created by Turner
 Can you find, from the mapping diagram and by navigating in the notice pages of the
events, the links that connect the Production activities of Turner to the objects actually
produced ? for this it is necessary to move up on the “main production event”;
 Read the documentation of the corresponding properties in the specification document;
 Adapt the query to select the URIs of the objects created by Turner;
7
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/>
PREFIX rs: <http://www.researchspace.org/ontology/>
SELECT ?thing WHERE {
?person a crm:E21_Person .
?person crm:P131_is_identified_by ?appellation .
?appellation rdfs:label "Turner, Joseph Mallord William" .
?event crm:P14_carried_out_by ?person .
?superEvent crm:P9_consists_of ?event .
?thing crm:P108i_was_produced_by ?superEvent .
}
 From the notice page of one of these Work URI, can you find all the ways to select its
title ? what is the « CIDOC-CRM-way » to select the title ?
 Read the documentation of the corresponding properties in the specification document;
 Adapt the query to select the titles of all the works of Turner;
8
o BONUS 1 : can you rewrite the query using SPARQL « Property Paths » in a single line ?
o BONUS 2 : can you count the number of works produced by Turner ?
5. Pictures of the Works
o Find how to access to the images of a Work (and to their « main representation ») ;
o There are 2 types of links : a CIDOC-CRM one, and a “proprietary” one;
o Read the documentation of the corresponding properties in the specification document;
o Enrich the query to select, in addition to the title, the link to the image of the work ; try with
the CIDOC-CRM property, then with the British Museum specific property; what do you
see ?
o Copy-Paste the URL of an image in your browser and verify that you access to the image ;
9
You have read the first 8 pages of this tutorial.
To read the full 13-pages version, including all
SPARQL queries, reach us at
thomas.francart@sparna.fr.
6. Dates of the works
7. And now… a timeline !
8. Subjects of Turner works ?
1

More Related Content

PPT
CIDOC CRM Tutorial
PPTX
SPARQL introduction and training (130+ slides with exercices)
PDF
Mapping Cultural Heritage Information to CIDOC-CRM
PDF
Informatica slides
PPT
RDF and OWL
PPT
Introduction to RDF
PDF
Events on the outside, on the inside and at the core (jfokus jfokus2016)
PDF
Introduction to RDF & SPARQL
CIDOC CRM Tutorial
SPARQL introduction and training (130+ slides with exercices)
Mapping Cultural Heritage Information to CIDOC-CRM
Informatica slides
RDF and OWL
Introduction to RDF
Events on the outside, on the inside and at the core (jfokus jfokus2016)
Introduction to RDF & SPARQL

What's hot (20)

PPTX
History of Knowledge Representation (SIKS Course 2010)
PDF
FIWARE Training: Introduction to Smart Data Models
PPT
Service Analysis And Design
PDF
An Introduction to SPARQL
PPTX
Basics of MongoDB
PDF
Domain-driven design - eine Einführung
PDF
Hexagonal architecture for java applications
PPTX
SHACL: Shaping the Big Ball of Data Mud
PPTX
Optimizing Cypher Queries in Neo4j
PDF
Selecting Software for Taxonomy, Thesaurus and Ontology Management
PPTX
Spring @Transactional Explained
PDF
Oracle database 12c sql worshop 2 student guide vol 2
PDF
Slides: Knowledge Graphs vs. Property Graphs
PDF
Serializing EMF models with Xtext
PDF
Clean pragmatic architecture @ devflix
PDF
Saturn 2018: Managing data consistency in a microservice architecture using S...
PPT
SPARQL Tutorial
PPTX
Ipfs : InterPlanetary File System
PPTX
온톨로지 개념 및 표현언어
PDF
JPA and Hibernate
History of Knowledge Representation (SIKS Course 2010)
FIWARE Training: Introduction to Smart Data Models
Service Analysis And Design
An Introduction to SPARQL
Basics of MongoDB
Domain-driven design - eine Einführung
Hexagonal architecture for java applications
SHACL: Shaping the Big Ball of Data Mud
Optimizing Cypher Queries in Neo4j
Selecting Software for Taxonomy, Thesaurus and Ontology Management
Spring @Transactional Explained
Oracle database 12c sql worshop 2 student guide vol 2
Slides: Knowledge Graphs vs. Property Graphs
Serializing EMF models with Xtext
Clean pragmatic architecture @ devflix
Saturn 2018: Managing data consistency in a microservice architecture using S...
SPARQL Tutorial
Ipfs : InterPlanetary File System
온톨로지 개념 및 표현언어
JPA and Hibernate
Ad

Similar to SPARQL queries on CIDOC-CRM data of BritishMuseum (20)

PPTX
2011 03 11 (upm) emadrid lsanchez uc3m anotación semántica de texto
PPTX
FAIR Projector Builder
PDF
Towards Interoperable Metadata Provenance
PPSX
MARC 21 Training at Daffodil International University
PDF
Understanding the Standards Gap
PPTX
Creating Narrative with Digital Objects
PDF
TYPO3 Inline Relational Record Editing (IRRE)
PPTX
2013 10-03-semantics-meetup-s buxton-mark_logic_pub
PDF
Reimagining Serials handout: BIBFRAME Exercise
PDF
Darknet - Is it good for you?
PDF
Methodological tips for mappings to CIDOC CRM
PDF
Selected Readings On Database Technologies And Applications Terry Halpin
PDF
Building Hypermedia Apis With Html5 And Node Mike Amundsen
PPT
Dublin Core In Practice
PDF
The Nature.com ontologies portal - Linked Science 2015
ODP
M3O: The Multimedia Metadata Ontology
PPT
Semantic HTML
PDF
Digital Narratives for Transylvania DH
PPTX
The nature.com ontologies portal: nature.com/ontologies
PDF
The Anatomy of TYPO3 Sitepackages
2011 03 11 (upm) emadrid lsanchez uc3m anotación semántica de texto
FAIR Projector Builder
Towards Interoperable Metadata Provenance
MARC 21 Training at Daffodil International University
Understanding the Standards Gap
Creating Narrative with Digital Objects
TYPO3 Inline Relational Record Editing (IRRE)
2013 10-03-semantics-meetup-s buxton-mark_logic_pub
Reimagining Serials handout: BIBFRAME Exercise
Darknet - Is it good for you?
Methodological tips for mappings to CIDOC CRM
Selected Readings On Database Technologies And Applications Terry Halpin
Building Hypermedia Apis With Html5 And Node Mike Amundsen
Dublin Core In Practice
The Nature.com ontologies portal - Linked Science 2015
M3O: The Multimedia Metadata Ontology
Semantic HTML
Digital Narratives for Transylvania DH
The nature.com ontologies portal: nature.com/ontologies
The Anatomy of TYPO3 Sitepackages
Ad

More from Thomas Francart (12)

DOCX
SPARQL sur les données CIDOC-CRM du British Museum
PDF
CIDOC-CRM + SPARQL Tutorial sur les données Doremus
PDF
Découvrir les données de data.bnf.fr en utilisant SPARQL
PPT
PPTX
Solr formation Sparna
PDF
SKOS Play @ semweb.pro 2014
PPT
Web of Data - Introduction (english)
PPT
Partager et réutiliser des données sur le web
PPT
RDFS : une introduction
PPT
Skos play
PPT
Web de données - une introduction
PPT
RDF : une introduction
SPARQL sur les données CIDOC-CRM du British Museum
CIDOC-CRM + SPARQL Tutorial sur les données Doremus
Découvrir les données de data.bnf.fr en utilisant SPARQL
Solr formation Sparna
SKOS Play @ semweb.pro 2014
Web of Data - Introduction (english)
Partager et réutiliser des données sur le web
RDFS : une introduction
Skos play
Web de données - une introduction
RDF : une introduction

Recently uploaded (20)

PPTX
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
PPT
ISS -ESG Data flows What is ESG and HowHow
PPTX
QUANTUM_COMPUTING_AND_ITS_POTENTIAL_APPLICATIONS[2].pptx
PDF
Data Engineering Interview Questions & Answers Batch Processing (Spark, Hadoo...
PPTX
New ISO 27001_2022 standard and the changes
PDF
How to run a consulting project- client discovery
PPT
Predictive modeling basics in data cleaning process
PPTX
A Complete Guide to Streamlining Business Processes
PPTX
modul_python (1).pptx for professional and student
PPTX
Managing Community Partner Relationships
PPTX
SAP 2 completion done . PRESENTATION.pptx
PPTX
importance of Data-Visualization-in-Data-Science. for mba studnts
PDF
Introduction to Data Science and Data Analysis
DOCX
Factor Analysis Word Document Presentation
PDF
annual-report-2024-2025 original latest.
PDF
Introduction to the R Programming Language
PDF
Systems Analysis and Design, 12th Edition by Scott Tilley Test Bank.pdf
PPTX
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
PDF
Microsoft Core Cloud Services powerpoint
PPTX
retention in jsjsksksksnbsndjddjdnFPD.pptx
01_intro xxxxxxxxxxfffffffffffaaaaaaaaaaafg
ISS -ESG Data flows What is ESG and HowHow
QUANTUM_COMPUTING_AND_ITS_POTENTIAL_APPLICATIONS[2].pptx
Data Engineering Interview Questions & Answers Batch Processing (Spark, Hadoo...
New ISO 27001_2022 standard and the changes
How to run a consulting project- client discovery
Predictive modeling basics in data cleaning process
A Complete Guide to Streamlining Business Processes
modul_python (1).pptx for professional and student
Managing Community Partner Relationships
SAP 2 completion done . PRESENTATION.pptx
importance of Data-Visualization-in-Data-Science. for mba studnts
Introduction to Data Science and Data Analysis
Factor Analysis Word Document Presentation
annual-report-2024-2025 original latest.
Introduction to the R Programming Language
Systems Analysis and Design, 12th Edition by Scott Tilley Test Bank.pdf
AI Strategy room jwfjksfksfjsjsjsjsjfsjfsj
Microsoft Core Cloud Services powerpoint
retention in jsjsksksksnbsndjddjdnFPD.pptx

SPARQL queries on CIDOC-CRM data of BritishMuseum

  • 1. 1 CIDOC-CRM SPARQL Tutorial on British Museum data at http://collection.britishmuseum.org Author : Thomas Francart – thomas.francart@sparna.fr Date of creation : 04/06/2018 Date of latest modification : 13/09/2018 Version : 2 License : CC-by-nc-sa https://creativecommons.org/licenses/by-nc-sa/4.0/ Attribution- NonCommercial-ShareAlike 4.0 International Table of contents Objectives.....................................................................................................................................2 1. Know where the documentation is ......................................................................................2 CIDOC-CRM documentation........................................................................................................2 British Museum model documentation........................................................................................2 2. Looking for Turner.................................................................................................................2 On the web.................................................................................................................................2 On ResearchSpace.......................................................................................................................3 On the SPARQL service................................................................................................................3 3. Look for the Production Activities of Turner........................................................................5 4. Find the Works/Objects created by Turner..........................................................................6 5. Pictures of the Works............................................................................................................8 6. Dates of the works................................................................................................................9 7. And now… a timeline !..........................................................................................................9 8. Subjects of Turner works ?....................................................................................................9
  • 2. 2 Objectives This tutorial allows to understand the implementation of the CIDOC-CRM done by the British Museum on its SPARQL service at https://collection.britishmuseum.org. It also allows to delve step-by-step in the documentation of the CIDOC-CRM and some of its building blocks. The objectives of this tutorial are : o To understand how to interact with the SPARQL service of the British Museum and the notice pages to retrieve the necessary information; o To understand how CIDOC-CRM is used for data modelling, on authors, works, work production, keywords and dates; o To learn how to write the corresponding SPARQL queries; At the end of this tutorial you should be capable of reusing the data of the British Musuem to generate a timeline using a free online service. This demonstrates the potential of open data reuse in innovative ways. 1. Know where the documentation is CIDOC-CRM documentation Go to www.cidoc-crm.org/versions-of-the-cidoc-crm. Open the PDF version of the latest version of the CIDOC-CRM. This is the reference specification of the model. British Museum model documentation Go to https://confluence.ontotext.com/display/ResearchSpace Naviguate under “RS Ontology / BM mapping” and have a look at the diagram. In this diagram we will use the following parts:  “Bibliography” part for Persons, in top left corner ;  The “Production” part;  The central “Object” part, with the « Subject » part just below ; From the same page click on the link « mapping manual for endpoint site draft 0.98a.pdf ». This document explains the choices made by the British Museum when mapping its data to the CIDOC-CRM. 2. Looking for Turner On the web  Find “Turner” in your rpeferred search engine ;  Look at its Wikipedia page (“Joseph Mallord William Turner”).
  • 3. 3 On ResearchSpace  Go to https://public.researchspace.org and look for an actor named "Turner, Joseph Mallord William" (with exactly this spelling, case-sensitive, including the comma) ;  Look at the “table” view and click on “Joseph Mallord William Turner”;  Click on tab “All properties” in the bottom right corner of the notice page; On the SPARQL service  Go to the service endpoint https://collection.britishmuseum.org/resource/sparql.  Look for anything with the rdfs:label "Turner, Joseph Mallord William"; PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> SELECT ?anything WHERE { ?anything rdfs:label "Turner, Joseph Mallord William" . }  Click on the URI to navigate to this object notice (http://collection.britishmuseum.org/id/person-institution/49003/appellation/1)
  • 4. 4  In the section “Incoming Statements” : o Hover your mouse on “is identified by” to view its URI ; o Read the documentation of the property P131 in the CIDOC-CRM specification to understand its semantic ; o Try to find this link in the BM mapping diagram, in the upper-left corner ; o Click on “Joseph Mallord William Turner” and navigate to its notice page at http://collection.britishmuseum.org/id/person-institution/49003;  Adapt the SPARQL query to select “the URI of the Person named “Turner, Joseph Mallord William” "
  • 5. 5 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/> SELECT * WHERE { ?person a crm:E21_Person . ?person crm:P131_is_identified_by ?appellation . ?appellation rdfs:label "Turner, Joseph Mallord William" . } 3. Look for the Production Activities of Turner  In section “Incoming Statements” of the notice page of Turner, look for links “carried out by”. You can filter the list by searching for “carried” in the filter box at the op of this section ; o Hover your mouse on “carried out by” to view its URI ; o Look up and read its definition in the CIDOC-CRM specification ; o Find the corresponding link in the BM mapping diagram; Note that it appears in multiple places, try to find “the correct one”; o Note that the Production Activity that links the creator of the work is part of of a higher-level Production activity that includes this one as well as other Production activities that hold different pieces of information; o Try to find the Production Activity that hold the date information ;
  • 6. 6  Enrich the query to select the URI of the Production Activities of Turner. You can use the (non CIDOC-CRM) rs:displayLabel property to select some labels for these activities; PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/> PREFIX rs: <http://www.researchspace.org/ontology/> SELECT ?event ?eventLabel WHERE { ?person a crm:E21_Person . ?person crm:P131_is_identified_by ?appellation . ?appellation rdfs:label "Turner, Joseph Mallord William" . ?event crm:P14_carried_out_by ?person . ?event rs:displayLabel ?eventLabel . } ORDER BY ?event 4. Find the Works/Objects created by Turner  Can you find, from the mapping diagram and by navigating in the notice pages of the events, the links that connect the Production activities of Turner to the objects actually produced ? for this it is necessary to move up on the “main production event”;  Read the documentation of the corresponding properties in the specification document;  Adapt the query to select the URIs of the objects created by Turner;
  • 7. 7 PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> PREFIX crm: <http://www.cidoc-crm.org/cidoc-crm/> PREFIX rs: <http://www.researchspace.org/ontology/> SELECT ?thing WHERE { ?person a crm:E21_Person . ?person crm:P131_is_identified_by ?appellation . ?appellation rdfs:label "Turner, Joseph Mallord William" . ?event crm:P14_carried_out_by ?person . ?superEvent crm:P9_consists_of ?event . ?thing crm:P108i_was_produced_by ?superEvent . }  From the notice page of one of these Work URI, can you find all the ways to select its title ? what is the « CIDOC-CRM-way » to select the title ?  Read the documentation of the corresponding properties in the specification document;  Adapt the query to select the titles of all the works of Turner;
  • 8. 8 o BONUS 1 : can you rewrite the query using SPARQL « Property Paths » in a single line ? o BONUS 2 : can you count the number of works produced by Turner ? 5. Pictures of the Works o Find how to access to the images of a Work (and to their « main representation ») ; o There are 2 types of links : a CIDOC-CRM one, and a “proprietary” one; o Read the documentation of the corresponding properties in the specification document; o Enrich the query to select, in addition to the title, the link to the image of the work ; try with the CIDOC-CRM property, then with the British Museum specific property; what do you see ? o Copy-Paste the URL of an image in your browser and verify that you access to the image ;
  • 9. 9 You have read the first 8 pages of this tutorial. To read the full 13-pages version, including all SPARQL queries, reach us at thomas.francart@sparna.fr. 6. Dates of the works 7. And now… a timeline ! 8. Subjects of Turner works ?
  • 10. 1