@prefix and the `a` shortcut

Make IRIs short; make `rdf:type` shorter.

0/3 done

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 writeTurtle expands it to
@prefix : <...> .A namespace alias for the rest of the document
:Foo<http://academy.org/ninja/Foo> (full IRI)
ardf:type — i.e. <http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
"text"An xsd:string literal (default datatype)

Reading in progress · 0 of 3 activities done