Abbreviation: prefix notation
Like query 1-2, but the lengthy predicate term that was used there is now abbreviated using alias (
foaf). This requires that the alias and IRI prefix are declared at the top of the query (keyword
The part of the query that appears before the projection, and that contains prefix declarations, is called the Prologue.
Notice that another IRI prefix
id is also declared. This prefix is not used in the query itself, but is used to abbreviate the values that appear the first column of the result set table. (This is a Triply-specific feature.)