Session 5
Data modelling: standards, interoperability and the semantic web
Beretta Taught by Francesco Beretta.
In this session
- Introduction to RDF, ‘knowledge graphs’ and Linked Open Data (LOD)
- Data interoperability: from standards to ontologies
- SDHSS: a method and ontology ecosystem for producing, sharing and reusing research data in HSS
- Hands-on exercises with ontologies and triplestores — producing a CSV you will reuse in Session 8
These slides support today’s presentation. The detailed references on this page are intended to support your documentation, but will not be discussed in depth.
The RDF framework and its ecosystem of W3C specifications
- The five stars of LOD: https://5stardata.info/en/
- RDF (Resource Description Framework): everything is a triple — subject, predicate, object
- RDF: serialisations formats-> xml, N-Triples / N-Quads, ttl
- URIs as identifiers of resources, same function as primary keys in relational databases, but their scope is the WWW:
- Semantic Web : a web of RDF graphs (cf. slides)
- Modeling languages:
- RDFS (RDF Schema)
- OWL-DL (Web Ontology Language - Description Logic):
“An ontology consists of a set of axioms which place constraints on sets of individuals (called”classes”) and the types of relationships permitted between them. These axioms provide semantics by allowing systems to infer additional information based on the data explicitly provided.”
- Query language: SPARQL
- The best tutorial is the W3C Recommentation
- Schema language: SHACL Shapes Constraint Language
From Wikipedia to DBpedia, to Wikidata, to research data (Elites Suisses)
Wikipedia
DBpedia
http://dbpedia.org/resource/Johannes_Kepler (URI from Wikipedia) -> https://dbpedia.org/page/Johannes_Kepler : URI dereferencing to URL: the URI identifies the resource, the URL is the address of the page about the resource
Linked Data Access: URI specification, Content Negotiation, etc.
Interface for SPARQL queries: https://dbpedia.org/sparql - Johannes Kepler as subject
Wikidata
http://www.wikidata.org/entity/Q8963 (URI) -> https://www.wikidata.org/wiki/Q8963 (URL)
SPARQL query: Johannes Kepler as subject; J. Kepler as object .
Query builder: https://query.wikidata.org/querybuilder/?uselang=en
QLever: the new triplestore for Wikidata
“The Query Service Days 2026 is an online event focusing on the migration of the Wikidata Query Service from Blazegraph to QLever, and supporting the Wikidata community, tool maintainers and data reusers with adapting their queries and tools to the new endpoint”
Elites Suisses LESSH Project
From tables to Linked Open Data - The LESSH Project
Transforming a database into a RDF triplestore using the SDHSS ontology ecosystem (see below)Guy Parmelin (URI) https://elites-suisses.lod4hss.org/resource/p53925 -> URI dereferencing on page
Guy Parmelin as triples subject in the graph; as triples object: memberships
The Membership class in the SDHSS ontology ecosystem
Three data models centred on properties, statements and events.
Ontologies as artefacts allowing data interoperability through formalised conceptualisations
Triangle of reference: denotation, connotation -> classes as concepts that cover sets of instances
Ontology components: classes (intension, extension), attributes, relations
Exercise 1: Analysing the intensions of lrm:Expression and ric:Record
Read and compare the scope notes of both classes and note similarities and differences. Is there a similar class in CIDOC CRM?
ric:Record (Ric-O ontology) and the Records in Contexts-Conceptual Model
Exercise 2: Query Wikidata
Working in the Wikidata Query Service:
- Person → birthplace. Take a set of people relevant to your topic and retrieve their places of birth with their geocoordinates.
- Members → organisation. Retrieve the members of an organisation, or the affiliations of a group of people.
- Export. Produce a CSV from the result.
Cf. this document for a discussion of this exercise.
The CSV you produce today is the input for the network analysis in Session 8. Save it somewhere you will find it again, and put it in your project repository.
The DH Lab goes further into the world of Linked Open Data and the reuse and connection of available information.