SlideShare a Scribd company logo
1 of 10
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

What's hot

ESWC 2017 Tutorial Knowledge Graphs
ESWC 2017 Tutorial Knowledge GraphsESWC 2017 Tutorial Knowledge Graphs
ESWC 2017 Tutorial Knowledge GraphsPeter Haase
 
Linked Data and Knowledge Graphs -- Constructing and Understanding Knowledge ...
Linked Data and Knowledge Graphs -- Constructing and Understanding Knowledge ...Linked Data and Knowledge Graphs -- Constructing and Understanding Knowledge ...
Linked Data and Knowledge Graphs -- Constructing and Understanding Knowledge ...Jeff Z. Pan
 
JSON-LD: JSON for Linked Data
JSON-LD: JSON for Linked DataJSON-LD: JSON for Linked Data
JSON-LD: JSON for Linked DataGregg Kellogg
 
Inside MongoDB: the Internals of an Open-Source Database
Inside MongoDB: the Internals of an Open-Source DatabaseInside MongoDB: the Internals of an Open-Source Database
Inside MongoDB: the Internals of an Open-Source DatabaseMike Dirolf
 
MongoDB: How it Works
MongoDB: How it WorksMongoDB: How it Works
MongoDB: How it WorksMike Dirolf
 
SparkSQL: A Compiler from Queries to RDDs
SparkSQL: A Compiler from Queries to RDDsSparkSQL: A Compiler from Queries to RDDs
SparkSQL: A Compiler from Queries to RDDsDatabricks
 
Introduction to RDF & SPARQL
Introduction to RDF & SPARQLIntroduction to RDF & SPARQL
Introduction to RDF & SPARQLOpen Data Support
 
Learn REST API with Python
Learn REST API with PythonLearn REST API with Python
Learn REST API with PythonLarry Cai
 
Visualizing large datasets with js using deckgl
Visualizing large datasets with js using deckglVisualizing large datasets with js using deckgl
Visualizing large datasets with js using deckglMarko Letic
 
Let's Build an Inverted Index: Introduction to Apache Lucene/Solr
Let's Build an Inverted Index: Introduction to Apache Lucene/SolrLet's Build an Inverted Index: Introduction to Apache Lucene/Solr
Let's Build an Inverted Index: Introduction to Apache Lucene/SolrSease
 
Comparing 30 Elastic Search operations with Oracle SQL statements
Comparing 30 Elastic Search operations with Oracle SQL statementsComparing 30 Elastic Search operations with Oracle SQL statements
Comparing 30 Elastic Search operations with Oracle SQL statementsLucas Jellema
 
Introducing DataFrames in Spark for Large Scale Data Science
Introducing DataFrames in Spark for Large Scale Data ScienceIntroducing DataFrames in Spark for Large Scale Data Science
Introducing DataFrames in Spark for Large Scale Data ScienceDatabricks
 
Deep dive into Xtext scoping local and global scopes explained
Deep dive into Xtext scoping local and global scopes explainedDeep dive into Xtext scoping local and global scopes explained
Deep dive into Xtext scoping local and global scopes explainedHolger Schill
 
Querying Linked Data with SPARQL
Querying Linked Data with SPARQLQuerying Linked Data with SPARQL
Querying Linked Data with SPARQLOlaf Hartig
 
Airbnb Search Architecture: Presented by Maxim Charkov, Airbnb
Airbnb Search Architecture: Presented by Maxim Charkov, AirbnbAirbnb Search Architecture: Presented by Maxim Charkov, Airbnb
Airbnb Search Architecture: Presented by Maxim Charkov, AirbnbLucidworks
 

What's hot (20)

ESWC 2017 Tutorial Knowledge Graphs
ESWC 2017 Tutorial Knowledge GraphsESWC 2017 Tutorial Knowledge Graphs
ESWC 2017 Tutorial Knowledge Graphs
 
Linked Data and Knowledge Graphs -- Constructing and Understanding Knowledge ...
Linked Data and Knowledge Graphs -- Constructing and Understanding Knowledge ...Linked Data and Knowledge Graphs -- Constructing and Understanding Knowledge ...
Linked Data and Knowledge Graphs -- Constructing and Understanding Knowledge ...
 
JSON-LD: JSON for Linked Data
JSON-LD: JSON for Linked DataJSON-LD: JSON for Linked Data
JSON-LD: JSON for Linked Data
 
Inside MongoDB: the Internals of an Open-Source Database
Inside MongoDB: the Internals of an Open-Source DatabaseInside MongoDB: the Internals of an Open-Source Database
Inside MongoDB: the Internals of an Open-Source Database
 
Elasticsearch
ElasticsearchElasticsearch
Elasticsearch
 
Deep Dive on Amazon Redshift
Deep Dive on Amazon RedshiftDeep Dive on Amazon Redshift
Deep Dive on Amazon Redshift
 
MongoDB: How it Works
MongoDB: How it WorksMongoDB: How it Works
MongoDB: How it Works
 
SparkSQL: A Compiler from Queries to RDDs
SparkSQL: A Compiler from Queries to RDDsSparkSQL: A Compiler from Queries to RDDs
SparkSQL: A Compiler from Queries to RDDs
 
Introduction to RDF & SPARQL
Introduction to RDF & SPARQLIntroduction to RDF & SPARQL
Introduction to RDF & SPARQL
 
Learn REST API with Python
Learn REST API with PythonLearn REST API with Python
Learn REST API with Python
 
Visualizing large datasets with js using deckgl
Visualizing large datasets with js using deckglVisualizing large datasets with js using deckgl
Visualizing large datasets with js using deckgl
 
JSON-LD and MongoDB
JSON-LD and MongoDBJSON-LD and MongoDB
JSON-LD and MongoDB
 
RDF and OWL
RDF and OWLRDF and OWL
RDF and OWL
 
Xml schema
Xml schemaXml schema
Xml schema
 
Let's Build an Inverted Index: Introduction to Apache Lucene/Solr
Let's Build an Inverted Index: Introduction to Apache Lucene/SolrLet's Build an Inverted Index: Introduction to Apache Lucene/Solr
Let's Build an Inverted Index: Introduction to Apache Lucene/Solr
 
Comparing 30 Elastic Search operations with Oracle SQL statements
Comparing 30 Elastic Search operations with Oracle SQL statementsComparing 30 Elastic Search operations with Oracle SQL statements
Comparing 30 Elastic Search operations with Oracle SQL statements
 
Introducing DataFrames in Spark for Large Scale Data Science
Introducing DataFrames in Spark for Large Scale Data ScienceIntroducing DataFrames in Spark for Large Scale Data Science
Introducing DataFrames in Spark for Large Scale Data Science
 
Deep dive into Xtext scoping local and global scopes explained
Deep dive into Xtext scoping local and global scopes explainedDeep dive into Xtext scoping local and global scopes explained
Deep dive into Xtext scoping local and global scopes explained
 
Querying Linked Data with SPARQL
Querying Linked Data with SPARQLQuerying Linked Data with SPARQL
Querying Linked Data with SPARQL
 
Airbnb Search Architecture: Presented by Maxim Charkov, Airbnb
Airbnb Search Architecture: Presented by Maxim Charkov, AirbnbAirbnb Search Architecture: Presented by Maxim Charkov, Airbnb
Airbnb Search Architecture: Presented by Maxim Charkov, Airbnb
 

Similar to SPARQL queries on CIDOC-CRM data of BritishMuseum

2011 03 11 (upm) emadrid lsanchez uc3m anotación semántica de texto
2011 03 11 (upm) emadrid lsanchez uc3m anotación semántica de texto2011 03 11 (upm) emadrid lsanchez uc3m anotación semántica de texto
2011 03 11 (upm) emadrid lsanchez uc3m anotación semántica de textoeMadrid network
 
FAIR Projector Builder
FAIR Projector BuilderFAIR Projector Builder
FAIR Projector BuilderMark Wilkinson
 
Towards Interoperable Metadata Provenance
Towards Interoperable Metadata ProvenanceTowards Interoperable Metadata Provenance
Towards Interoperable Metadata ProvenanceKai Eckert
 
MARC 21 Training at Daffodil International University
MARC 21 Training at Daffodil International UniversityMARC 21 Training at Daffodil International University
MARC 21 Training at Daffodil International UniversityNur Ahammad
 
Understanding the Standards Gap
Understanding the Standards GapUnderstanding the Standards Gap
Understanding the Standards GapDan Brickley
 
Creating Narrative with Digital Objects
Creating Narrative with Digital ObjectsCreating Narrative with Digital Objects
Creating Narrative with Digital ObjectsShawn Day
 
TYPO3 Inline Relational Record Editing (IRRE)
TYPO3 Inline Relational Record Editing (IRRE)TYPO3 Inline Relational Record Editing (IRRE)
TYPO3 Inline Relational Record Editing (IRRE)Oliver Hader
 
2013 10-03-semantics-meetup-s buxton-mark_logic_pub
2013 10-03-semantics-meetup-s buxton-mark_logic_pub2013 10-03-semantics-meetup-s buxton-mark_logic_pub
2013 10-03-semantics-meetup-s buxton-mark_logic_pubStephen Buxton
 
Reimagining Serials handout: BIBFRAME Exercise
Reimagining Serials handout: BIBFRAME ExerciseReimagining Serials handout: BIBFRAME Exercise
Reimagining Serials handout: BIBFRAME ExerciseNASIG
 
Methodological tips for mappings to CIDOC CRM
Methodological tips for mappings to CIDOC CRMMethodological tips for mappings to CIDOC CRM
Methodological tips for mappings to CIDOC CRMariadnenetwork
 
Dublin Core In Practice
Dublin Core In PracticeDublin Core In Practice
Dublin Core In PracticeMarcia Zeng
 
The Nature.com ontologies portal - Linked Science 2015
The Nature.com ontologies portal - Linked Science 2015The Nature.com ontologies portal - Linked Science 2015
The Nature.com ontologies portal - Linked Science 2015Michele Pasin
 
M3O: The Multimedia Metadata Ontology
M3O: The Multimedia Metadata OntologyM3O: The Multimedia Metadata Ontology
M3O: The Multimedia Metadata OntologyCarsten Saathoff
 
Semantic HTML
Semantic HTMLSemantic HTML
Semantic HTMLhchen1
 
Digital Narratives for Transylvania DH
Digital Narratives for Transylvania DHDigital Narratives for Transylvania DH
Digital Narratives for Transylvania DHShawn Day
 
The nature.com ontologies portal: nature.com/ontologies
The nature.com ontologies portal: nature.com/ontologiesThe nature.com ontologies portal: nature.com/ontologies
The nature.com ontologies portal: nature.com/ontologiesTony Hammond
 
The Anatomy of TYPO3 Sitepackages
The Anatomy of TYPO3 SitepackagesThe Anatomy of TYPO3 Sitepackages
The Anatomy of TYPO3 SitepackagesBenjamin Kott
 
Digital Library Federation, Fall 07, Connotea Presentation
Digital Library Federation, Fall 07, Connotea PresentationDigital Library Federation, Fall 07, Connotea Presentation
Digital Library Federation, Fall 07, Connotea PresentationIan Mulvany
 
SC7 Webinar 5 13/12/2017 NCSR "Demokritos" Presentation "Event Detection"
SC7 Webinar 5 13/12/2017 NCSR "Demokritos" Presentation "Event Detection"SC7 Webinar 5 13/12/2017 NCSR "Demokritos" Presentation "Event Detection"
SC7 Webinar 5 13/12/2017 NCSR "Demokritos" Presentation "Event Detection"BigData_Europe
 

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

2011 03 11 (upm) emadrid lsanchez uc3m anotación semántica de texto
2011 03 11 (upm) emadrid lsanchez uc3m anotación semántica de texto2011 03 11 (upm) emadrid lsanchez uc3m anotación semántica de texto
2011 03 11 (upm) emadrid lsanchez uc3m anotación semántica de texto
 
FAIR Projector Builder
FAIR Projector BuilderFAIR Projector Builder
FAIR Projector Builder
 
Towards Interoperable Metadata Provenance
Towards Interoperable Metadata ProvenanceTowards Interoperable Metadata Provenance
Towards Interoperable Metadata Provenance
 
MARC 21 Training at Daffodil International University
MARC 21 Training at Daffodil International UniversityMARC 21 Training at Daffodil International University
MARC 21 Training at Daffodil International University
 
Understanding the Standards Gap
Understanding the Standards GapUnderstanding the Standards Gap
Understanding the Standards Gap
 
Creating Narrative with Digital Objects
Creating Narrative with Digital ObjectsCreating Narrative with Digital Objects
Creating Narrative with Digital Objects
 
TYPO3 Inline Relational Record Editing (IRRE)
TYPO3 Inline Relational Record Editing (IRRE)TYPO3 Inline Relational Record Editing (IRRE)
TYPO3 Inline Relational Record Editing (IRRE)
 
2013 10-03-semantics-meetup-s buxton-mark_logic_pub
2013 10-03-semantics-meetup-s buxton-mark_logic_pub2013 10-03-semantics-meetup-s buxton-mark_logic_pub
2013 10-03-semantics-meetup-s buxton-mark_logic_pub
 
Reimagining Serials handout: BIBFRAME Exercise
Reimagining Serials handout: BIBFRAME ExerciseReimagining Serials handout: BIBFRAME Exercise
Reimagining Serials handout: BIBFRAME Exercise
 
Darknet - Is it good for you?
Darknet - Is it good for you?Darknet - Is it good for you?
Darknet - Is it good for you?
 
Methodological tips for mappings to CIDOC CRM
Methodological tips for mappings to CIDOC CRMMethodological tips for mappings to CIDOC CRM
Methodological tips for mappings to CIDOC CRM
 
Dublin Core In Practice
Dublin Core In PracticeDublin Core In Practice
Dublin Core In Practice
 
The Nature.com ontologies portal - Linked Science 2015
The Nature.com ontologies portal - Linked Science 2015The Nature.com ontologies portal - Linked Science 2015
The Nature.com ontologies portal - Linked Science 2015
 
M3O: The Multimedia Metadata Ontology
M3O: The Multimedia Metadata OntologyM3O: The Multimedia Metadata Ontology
M3O: The Multimedia Metadata Ontology
 
Semantic HTML
Semantic HTMLSemantic HTML
Semantic HTML
 
Digital Narratives for Transylvania DH
Digital Narratives for Transylvania DHDigital Narratives for Transylvania DH
Digital Narratives for Transylvania DH
 
The nature.com ontologies portal: nature.com/ontologies
The nature.com ontologies portal: nature.com/ontologiesThe nature.com ontologies portal: nature.com/ontologies
The nature.com ontologies portal: nature.com/ontologies
 
The Anatomy of TYPO3 Sitepackages
The Anatomy of TYPO3 SitepackagesThe Anatomy of TYPO3 Sitepackages
The Anatomy of TYPO3 Sitepackages
 
Digital Library Federation, Fall 07, Connotea Presentation
Digital Library Federation, Fall 07, Connotea PresentationDigital Library Federation, Fall 07, Connotea Presentation
Digital Library Federation, Fall 07, Connotea Presentation
 
SC7 Webinar 5 13/12/2017 NCSR "Demokritos" Presentation "Event Detection"
SC7 Webinar 5 13/12/2017 NCSR "Demokritos" Presentation "Event Detection"SC7 Webinar 5 13/12/2017 NCSR "Demokritos" Presentation "Event Detection"
SC7 Webinar 5 13/12/2017 NCSR "Demokritos" Presentation "Event Detection"
 

More from Thomas Francart

SPARQL sur les données CIDOC-CRM du British Museum
SPARQL sur les données CIDOC-CRM du British MuseumSPARQL sur les données CIDOC-CRM du British Museum
SPARQL sur les données CIDOC-CRM du British MuseumThomas Francart
 
CIDOC-CRM + SPARQL Tutorial sur les données Doremus
CIDOC-CRM + SPARQL Tutorial sur les données DoremusCIDOC-CRM + SPARQL Tutorial sur les données Doremus
CIDOC-CRM + SPARQL Tutorial sur les données DoremusThomas Francart
 
Découvrir les données de data.bnf.fr en utilisant SPARQL
Découvrir les données de data.bnf.fr en utilisant SPARQLDécouvrir les données de data.bnf.fr en utilisant SPARQL
Découvrir les données de data.bnf.fr en utilisant SPARQLThomas Francart
 
SKOS Play @ semweb.pro 2014
SKOS Play @ semweb.pro 2014SKOS Play @ semweb.pro 2014
SKOS Play @ semweb.pro 2014Thomas Francart
 
Web of Data - Introduction (english)
Web of Data - Introduction (english)Web of Data - Introduction (english)
Web of Data - Introduction (english)Thomas Francart
 
Partager et réutiliser des données sur le web
Partager et réutiliser des données sur le webPartager et réutiliser des données sur le web
Partager et réutiliser des données sur le webThomas Francart
 
Web de données - une introduction
Web de données - une introductionWeb de données - une introduction
Web de données - une introductionThomas Francart
 

More from Thomas Francart (12)

SPARQL sur les données CIDOC-CRM du British Museum
SPARQL sur les données CIDOC-CRM du British MuseumSPARQL sur les données CIDOC-CRM du British Museum
SPARQL sur les données CIDOC-CRM du British Museum
 
CIDOC-CRM + SPARQL Tutorial sur les données Doremus
CIDOC-CRM + SPARQL Tutorial sur les données DoremusCIDOC-CRM + SPARQL Tutorial sur les données Doremus
CIDOC-CRM + SPARQL Tutorial sur les données Doremus
 
Découvrir les données de data.bnf.fr en utilisant SPARQL
Découvrir les données de data.bnf.fr en utilisant SPARQLDécouvrir les données de data.bnf.fr en utilisant SPARQL
Découvrir les données de data.bnf.fr en utilisant SPARQL
 
JSON-LD
JSON-LDJSON-LD
JSON-LD
 
Solr formation Sparna
Solr formation SparnaSolr formation Sparna
Solr formation Sparna
 
SKOS Play @ semweb.pro 2014
SKOS Play @ semweb.pro 2014SKOS Play @ semweb.pro 2014
SKOS Play @ semweb.pro 2014
 
Web of Data - Introduction (english)
Web of Data - Introduction (english)Web of Data - Introduction (english)
Web of Data - Introduction (english)
 
Partager et réutiliser des données sur le web
Partager et réutiliser des données sur le webPartager et réutiliser des données sur le web
Partager et réutiliser des données sur le web
 
RDFS : une introduction
RDFS : une introductionRDFS : une introduction
RDFS : une introduction
 
Skos play
Skos playSkos play
Skos play
 
Web de données - une introduction
Web de données - une introductionWeb de données - une introduction
Web de données - une introduction
 
RDF : une introduction
RDF : une introductionRDF : une introduction
RDF : une introduction
 

Recently uploaded

VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxolyaivanovalion
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAroojKhan71
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxJohnnyPlasten
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfLars Albertsson
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxolyaivanovalion
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSAishani27
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysismanisha194592
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...Suhani Kapoor
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxfirstjob4
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfRachmat Ramadhan H
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxolyaivanovalion
 
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一ffjhghh
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusTimothy Spann
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxolyaivanovalion
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 

Recently uploaded (20)

VidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptxVidaXL dropshipping via API with DroFx.pptx
VidaXL dropshipping via API with DroFx.pptx
 
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al BarshaAl Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
Al Barsha Escorts $#$ O565212860 $#$ Escort Service In Al Barsha
 
Log Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptxLog Analysis using OSSEC sasoasasasas.pptx
Log Analysis using OSSEC sasoasasasas.pptx
 
Industrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdfIndustrialised data - the key to AI success.pdf
Industrialised data - the key to AI success.pdf
 
Smarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptxSmarteg dropshipping via API with DroFx.pptx
Smarteg dropshipping via API with DroFx.pptx
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICS
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls CP 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
April 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's AnalysisApril 2024 - Crypto Market Report's Analysis
April 2024 - Crypto Market Report's Analysis
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
VIP High Profile Call Girls Amravati Aarushi 8250192130 Independent Escort Se...
 
Introduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptxIntroduction-to-Machine-Learning (1).pptx
Introduction-to-Machine-Learning (1).pptx
 
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdfMarket Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
Market Analysis in the 5 Largest Economic Countries in Southeast Asia.pdf
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
Ravak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptxRavak dropshipping via API with DroFx.pptx
Ravak dropshipping via API with DroFx.pptx
 
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一定制英国白金汉大学毕业证(UCB毕业证书)																			成绩单原版一比一
定制英国白金汉大学毕业证(UCB毕业证书) 成绩单原版一比一
 
Generative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and MilvusGenerative AI on Enterprise Cloud with NiFi and Milvus
Generative AI on Enterprise Cloud with NiFi and Milvus
 
Sampling (random) method and Non random.ppt
Sampling (random) method and Non random.pptSampling (random) method and Non random.ppt
Sampling (random) method and Non random.ppt
 
Carero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptxCarero dropshipping via API with DroFx.pptx
Carero dropshipping via API with DroFx.pptx
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 

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