🌐 Web of Data

Chapter 2: Interactive Learning Companion

Five Key Concepts of the Web of Data

Click each concept to learn more about its role in the Web of Data.

📊

Data

Directed labelled graphs

🔍

Queries

Graph patterns

🧠

Semantics

Vocabularies & meaning

🛡️

Constraints

Data validation

🔗

Links

External connections

📊 Data: Directed Labelled Graphs

What: Data in the Web of Data is represented as directed labelled graphs, consisting of nodes (resources or literal values) connected by edges (properties/relationships).

Why: Graphs are flexible (no fixed schema), natural for representing relationships, and easy to merge from different sources.

Example: ex:PecanPie --ex:ingredient--> ex:Pecans

🔍 Queries: Graph Patterns

What: Queries are patterns with variables that match against the data graph. SPARQL is the standard query language.

Why: Enables finding specific information by describing what you're looking for rather than where it's stored.

Example: SELECT ?recipe WHERE { ?recipe ex:ingredient ex:Pecans }

🧠 Semantics: Vocabularies & Meaning

What: Shared vocabularies that define the meaning of terms. Includes class hierarchies (subClassOf) and enables inference.

Why: Allows machines to understand that different terms mean the same thing, and to derive new facts automatically.

Example: If Pecan is a TreeNut, and TreeNut subClassOf Allergen, then Pecan is an Allergen!

🛡️ Constraints: Data Validation

What: Shape definitions (like SHACL) that describe the expected structure of data.

Why: Ensures data quality by catching missing data, invalid values, and inconsistencies.

Example: "Every Recipe must have exactly one title and a positive duration"

Interactive Knowledge Graph

Explore how entities are connected. Drag nodes to rearrange, click to see details.

RDF Triple Builder

Build RDF triples interactively. Every statement is a Subject → Predicate → Object triple.

@prefix ex: <http://example.org/> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . # Click "Add Triple" to add statements here...

Class Hierarchy & Inference

Click on classes to see how inference works. If X is a subclass of Y, then all instances of X are also instances of Y.

Allergen
Culinary Nut
Shellfish
Tree Nut
Legume
Pecan
Almond
Peanut

Test Your Knowledge

Check your understanding of Chapter 2 concepts!

1. What are the three components of an RDF triple?

Node, Edge, Label
Subject, Predicate, Object
Class, Property, Instance
Resource, Literal, Blank Node

2. What enables machines to derive new facts automatically?

Queries
Links
Semantics (inference via class hierarchies)
Constraints

3. What is the purpose of SHACL?

Query RDF data
Serialize RDF graphs
Validate data against shape constraints
Define class hierarchies

4. What does owl:sameAs express?

One class is a subclass of another
Two URIs refer to the same real-world thing
A property has a specific domain
A value must be of a certain datatype

Web of Data Statistics

Impressive numbers showing the scale of the Web of Data today.

0
Wikidata Items
0
Wikidata Statements
0
LOD Datasets
0
% Websites using Schema.org

Key Platforms

  • 🌐 Wikidata - Free knowledge base, query.wikidata.org
  • 📚 DBpedia - Structured data from Wikipedia
  • 🏷️ Schema.org - Vocabulary for web markup
  • 🔗 LOD Cloud - 1,500+ interlinked datasets