Theory
@prefix lets you alias a long IRI:
@prefix : <http://academy.org/ninja/> .
Now :Donatello expands to <http://academy.org/ninja/Donatello>.
The keyword a is shorthand for rdf:type:
:Donatello a :Turtle .
A quick cheat sheet of the Turtle keywords you'll see in every file:
| You write | Turtle expands it to |
|---|---|
@prefix : <...> . | A namespace alias for the rest of the document |
:Foo | <http://academy.org/ninja/Foo> (full IRI) |
a | rdf:type — i.e. <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> |
"text" | An xsd:string literal (default datatype) |