Theory
An RDF triple is a single statement of fact:
<subject> <predicate> <object> .
- The subject is what you're talking about.
- The predicate is the relationship or attribute.
- The object is the value — another resource, or a literal.
A graph is just a bag of triples. That's it. Everything else in RDF — vocabularies, reasoning, validation — composes from this atom.
Use this S/P/O reference whenever you read a triple aloud:
| Slot | What goes there | Example |
|---|---|---|
| Subject | An IRI (the thing) | :Alice |
| Predicate | An IRI (the relationship) | :knows |
| Object | An IRI or a literal | :Bob, 42 |
(Recap from Level 0: the file always starts with @prefix lines so :Alice is shorthand for the full IRI. Every fact ends with a ..)