Variables are referenced using a '?' followed by a name, such as ?this or ?myObject. The variable ?this is bound to the resource being rendered for view and edit templates.

Variables can be declared using RDFa attributes, such as @about and @resource. Once variables are declared, they can be used

  • within the current element

  • in nested elements

  • in RDFa attributes, or

  • in Callimachus expressions.

Using variables

Variables can be used in the RDFa attributes  @about, @content, and @resource to declare a new variable, or to reference a variable declared in a parent element.

Variables can also be used in the  @href and @src attributes if they are used on an element that also contains a @rel, @rev, or @property attribute.