There are two syntaxes for STIR files. The first is useful for marking up HTML documents, are the control characters are of the form %xxx{ %xxx: %}. The syntax for a tuple is roughly as follows:
%rel{ %field1: ... %field2: ... %fieldn: ... %}
eg, for the relation person(name:doc address:doc email:string)
%person{
%name: William Cohen
%address: AT&T Labs--Research
%email: "wcohen@research.att.com"
%}
The second syntax is XML-style. That's what's used in the snapshot data.
A tuple is encoded as follows:
<rel> <field1/> ... <field/> ... <field/> ... </rel>eg
<person> <name/> William Cohen <address/> AT&T Labs--Research <email/> "wcohen@research.att.com" </person>Some notes:
%rel{ ... %: ... %: ... %}
For example:
%person{ William Cohen %: AT&T Labs %: "wcohen@research.att.com" %}
The equivalent for the XML-style syntax uses <NEXT/> as a column separator
<person> William Cohen <NEXT/> AT&T Labs--Research <NEXT/> "wcohen@research.att.com" </person>