๐ฉบ Syntax Surgeon
Find and fix the errors in this Turtle RDF. Click on a line to edit it, then check your work!
Chapter 3 Interactive Learning Companion
Click on each part of the RDF triple to learn what it is and why it matters.
๐ Click on any part of the triple above to analyze it
Find and fix the errors in this Turtle RDF. Click on a line to edit it, then check your work!
Convert RDF between different serialization formats. See how the same data looks in Turtle, N-Triples, and JSON-LD.
Experiment with RDF literals and datatypes. See how values are represented and compared.
Language tags are used for human-readable strings
Typed numbers enable proper mathematical comparisons
ISO 8601 format is standard for RDF dates
Only "true" or "false" are valid boolean values
See why datatypes matter! Compare these values:
| Value A | Value B | A > B (String) | A > B (Typed) |
|---|---|---|---|
"25" |
"100" |
TRUE (2 > 1) | FALSE (25 < 100) |
"9" |
"10" |
TRUE (9 > 1) | FALSE (9 < 10) |
"2024-01-15" |
"2024-02-01" |
FALSE | FALSE (Jan < Feb) |
Create complex structures using blank nodes. Model an address or other nested data.
Properties of the blank node:
Compress full IRIs into prefixed form as fast as you can! Beat your high score!
rdf: = http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs: = http://www.w3.org/2000/01/rdf-schema#
xsd: = http://www.w3.org/2001/XMLSchema#
foaf: = http://xmlns.com/foaf/0.1/
schema: = https://schema.org/
ex: = http://example.org/
Press "Start Game" to begin!
Test your understanding of RDF concepts!
Your quick reference for all things RDF.
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix schema: <https://schema.org/> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
ex:Alice ex:name "Alice" ;
ex:age 30 .
ex:Alice ex:knows ex:Bob, ex:Carol .
ex:Alice a foaf:Person .
ex:Alice ex:address [ ex:city "CPH" ] .
xsd:string "hello"
xsd:integer "42"^^xsd:integer
xsd:decimal "3.14"^^xsd:decimal
xsd:float "3.14"^^xsd:float
xsd:boolean "true"^^xsd:boolean
xsd:date "2024-01-15"^^xsd:date
xsd:dateTime "2024-01-15T14:30:00"^^xsd:dateTime
xsd:anyURI "http://..."^^xsd:anyURI
Subject Predicate Object
IRI โ โ โ
Literal โ โ โ
Blank Node โ โ โ
โ ๏ธ Only IRIs can be predicates!
Human-readable, prefixes, shortcuts
One triple/line, full IRIs, streamable
JSON with @context, web-friendly
XML format, legacy support
Validate and visualize RDF
Query real RDF with SPARQL
Convert between formats
Test JSON-LD documents