forked from SynBioDex/SBOL-specification
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sbol2.tex
364 lines (298 loc) · 13.3 KB
/
sbol2.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
\documentclass[finalspec]{sbmlpkgspec}
%% \documentclass[draftspec]{sbmlpkgspec}
\usepackage{microtype}
\usepackage{color}
\usepackage{todonotes}
\usepackage{changebar}
\usepackage{xcolor}
\usepackage{soul}
%% ============================================================================
%% Description: Documentation for sbmlpkgspec.cls
%% First author: Michael Hucka <mhucka@caltech.edu>
%% Organization: California Institute of Technology
%% Date created: September 2011
%% https://sbml.svn.sourceforge.net/svnroot/sbml/trunk/project/tex/sbmlpkgspec
%%
%% Copyright (C) 2011-2012 California Institute of Technology, Pasadena, CA.
%%
%% SBMLPkgSpec is free software; you can redistribute it and/or modify it
%% under the terms of the GNU Lesser General Public License as published by
%% the Free Software Foundation. A copy of the license agreement is provided
%% in the file named "LICENSE.txt" included with this software distribution.
%% ============================================================================
% Macros just for this document:
\newcommand{\rfcnum}{112}
\newcommand{\sbmlpkg}{\texorpdfstring{%
\textls[-25]{\textsc{SBMLPkgSpec}}}{%
\textsc{SBMLPkgSpec}}\xspace}
\newcommand{\sbmlpkghead}{\texorpdfstring{%
\textls[-50]{\textsc{SBMLPkgSpec}}}{%
\textsc{SBMLPkgSpec}}\xspace}
\newcommand{\sbmlpkgfile}{\literalFont{sbmlpkgspec.cls}\xspace}
\newcommand{\latex}{\LaTeX{}\xspace}
\newcommand{\tex}{\TeX{}\xspace}
\newcommand{\distURL}{http://sourceforge.net/projects/sbml/files/specifications/tex}
\newcommand{\srcURL}{https://sbml.svn.sourceforge.net/svnroot/sbml/trunk/project/tex/sbmlpkgspec}
\newcommand{\webURL}{http://sbml.org/Documents/Specifications/The_SBMLPkgSpec_LaTeX_class}
\newcommand{\cmd}[1]{\literalFont{\textbackslash #1}}
% Custom latex listing style, for use with the listings package. The default
% highlights far too many things, IMHO. This keeps it simple and only adjusts
% the appearance of comments within listings.
\lstdefinelanguage{mylatex}{%
morekeywords={},%
sensitive,%
alsoother={0123456789$_},%$
morecomment=[l]\%%
}[keywords,tex,comments]
\lstdefinestyle{latex}{language=mylatex}
%Listing style for SBOL RDF/XML serialization examples
\usepackage{listings}
\usepackage{color}
\usepackage{xcolor}
\definecolor{dkgreen}{rgb}{0,0.6,0}
\definecolor{gray}{rgb}{0.5,0.5,0.5}
\definecolor{light-gray}{gray}{0.97}
\lstdefinelanguage{sbol}
{morekeywords={xmlns:sbol,rdf:about,sbol:displayId,sbol:persistentIdentity,sbol:version,sbol:timeStamp,sbol:name,sbol:description,sbol:member,sbol:Collection,sbol:type,
sbol:role, sbol:roleIntegration, sbol:ComponentDefinition, sbol:MapsTo, sbol:sequence,sbol:wasDerivedFrom,sbol:Component,sbol:subComponent,sbol:SequenceAnnotation,sbol:component,sbol:location, sbol:sequenceAnnotation, sbol:Range, sbol:start, sbol:end, sbol:orientation,sbol:SequenceConstraint, sbol:restriction, sbol:subject, sbol:object,sbol:Sequence, sbol:elements, sbol:encoding,sbol:Model, sbol:source, sbol:language, sbol:framework,sbol:FunctionalComponent, sbol:Module, sbol:Interaction, sbol:interaction, sbol:module, sbol:model,sbol:Model,sbol:definition, sbol:access, sbol:direction, sbol:mapsTo, sbol:refinement, sbol:local, sbol:remote, sbol:participation, sbol:Participation, sbol:participant,sbol:sequenceConstraint,sbol:at,sbol:Cut,sbol:functionalComponent,sbol:ModuleDefinition,prov:wasDerivedFrom,dcterms:title,dcterms:description},
basicstyle=\fontsize{7}{9}\selectfont\ttfamily,
backgroundcolor=\color{light-gray},
keywordstyle=\color{blue},
commentstyle=\color{gray},
stringstyle=\color{dkgreen},
tabsize=2,
showspaces=false,
showstringspaces=false,
breaklines=true, % wrap text
sensitive=true, % keywords are case sensitive
%morecomment=[l][commentstyle]{\#}, % comment format
morestring=[b]", % string format
escapeinside={[}{]},
alsoletter=:
%breakatwhitespace=true,
%literate={\-}{}{0\discretionary{a}{\\}{}}
}
%Command to format the listings containing SBOL RDF/XML serialization examples
\newcommand{\lstsetsbol}{
\lstset{language=sbol,
tabsize=2
}
}
%Commands to format SBOL terms in the document
% Use sbolheading when you are referencing an SBOL data model class/field in a
% section heading.
\newcommand{\sbolheading}[1]{\texttt{#1}}
% Use sbol when you are referencing an SBOL data model class/field in text.
\newcommand{\sbol}[1]{\texttt{\hyperref[sec:#1]{#1}}}
% Use sbolmult for SBOL fields that appear in multiple classes, for example
% \sbolmult{types:CD}{types}. This ensures the reference links to the correct
% section.
\newcommand{\sbolmult}[2]{\texttt{\hyperref[sec:#1]{#2}}}
% Rarely used. Use refObj you want to put the field in angle brackets.
\newcommand{\refObj}[1]{$\langle$#1$\rangle$}
%Command to format external terms in the document
\newcommand{\external}[1]{\texttt{#1}}
%Commands to highlight SBOL versions
\newcommand{\twozeroone}[1]{%
\cbcolor{red}
\cbstart%
{\color{red}%
\version{2.0.1}%
#1
}
\cbend
}
%Commands to highlight SBOL versions
\newcommand{\twoonezero}[1]{%
\cbcolor{red}
\cbstart%
{\color{red}%
\version{2.1.0}%
#1
}
\cbend
}
% -----------------------------------------------------------------------------
% Start of document
% -----------------------------------------------------------------------------
\begin{document}
\packageTitle{\latex Class for SBML Package Specifications}
\packageVersion{Version 2.1.0}
\packageVersionDate{October 28, 2016}
\title{BBF RFC \rfcnum{}: Synthetic Biology Open Language \texorpdfstring{\\[3pt]}{}\mbox{(SBOL) Version~2.1.0}}
\author{{\bf Editors:}\hfil\\
\begin{tabular}{l>{\hspace*{15pt}}r}
Jacob Beal & \emph{Raytheon BBN Technologies, USA}\\
Robert Sidney Cox & \emph{Kobe University, Japan}\\
Raik Grunberg & \emph{University of Montreal, Canada}\\
James McLaughlin & \emph{Newcastle University, UK}\\
Tramy Nguyen & \emph{University of Utah, USA}\\
\end{tabular}\\
{\bf Chair:}\hfil\\
\begin{tabular}{l>{\hspace*{15pt}}r}
Anil Wipat & \emph{Newcastle University, UK}\\[8pt]
\end{tabular}\\
\href{mailto:editors@sbolstandard.org}{\sffamily editors@sbolstandard.org}\\
\\
{\bf Additional authors, by institution:}\\
\begin{tabular}{l>{\hspace*{15pt}}r}
Chris Macklin, Michael Bissell & \emph{Amyris, Inc., USA}\\
Curtis Madsen, Nicholas Roehner & \emph{Boston University, USA}\\
Ernst Oberortner & \emph{DOE Joint Genome Institute, USA}\\
Goksel Misirli, Matthew Pocock & \emph{Newcastle University, UK}\\
Kevin Clancy & \emph{ThermoFisher Scientific, USA}\\
Zhen Zhang, Chris Myers & \emph{University of Utah, USA}\\
Bryan Bartley, John H. Gennari, Herbert Sauro & \emph{University of Washington, USA}\\
\end{tabular}\\
}
\maketitlepage
\maketableofcontents
\todo[inline]{Update authorship, making sure to add new editors}
\input{purpose}
\input{relation}
\input{copyright}
\input{history}
\input{vocabulary}
\input{overview}
\input{model}
\input{examples_model}
\input{serialization}
\input{compliance}
\input{practices}
\newpage
\bibliography{sbol}
\appendix
\input{apdx-validation}
\input{examples_serialization}
\end{document}
% -----------------------------------------------------------------------------
% Random non-printing junk at the end: this section contains examples of potentially useful code for formatting tables, bullets, etc.
\begin{table}[hb]
\begin{edtable}{tabular}{ll}
\toprule
\textbf{Item} & \textbf{Location} \\
\midrule
Distribution archive & \url{\distURL}\\
Web page & \url{\webURL}\\
Source tree (SVN) & \url{\srcURL}\\
\bottomrule
\end{edtable}
\caption{Where to find \sbmlpkg on the Internet.}
\label{where}
\end{table}
\begin{table}[htb]
\rowcolors{2}{sbmlrowgray}{}
\renewcommand{\arraystretch}{1.05}
\begin{edtable}{tabular}{ll}
\toprule
\textbf{Command} & \textbf{Object} \\
\midrule
\cmd{AlgebraicRule} & \AlgebraicRule \\
\cmd{Annotation} & \Annotation \\
\cmd{AssignmentRule} & \AssignmentRule \\
\cmd{Compartment} & \Compartment \\
\cmd{Constraint} & \Constraint \\
\cmd{Delay} & \Delay \\
\cmd{EventAssignment} & \EventAssignment \\
\cmd{Event} & \Event \\
\cmd{FunctionDefinition} & \FunctionDefinition \\
\cmd{InitialAssignment} & \InitialAssignment \\
\cmd{KineticLaw} & \KineticLaw \\
\cmd{ListOfCompartments} & \ListOfCompartments \\
\cmd{ListOfConstraints} & \ListOfConstraints \\
\cmd{ListOfEventAssignments} & \ListOfEventAssignments \\
\cmd{ListOfEvents} & \ListOfEvents \\
\cmd{ListOfFunctionDefinitions} & \ListOfFunctionDefinitions \\
\cmd{ListOfInitialAssignments} & \ListOfInitialAssignments \\
\cmd{ListOfLocalParameters} & \ListOfLocalParameters \\
\cmd{ListOfModifierSpeciesReferences} & \ListOfModifierSpeciesReferences \\
\cmd{ListOfPackages} & \ListOfPackages \\
\cmd{ListOfParameters} & \ListOfParameters \\
\cmd{ListOfReactions} & \ListOfReactions \\
\cmd{ListOfRules} & \ListOfRules \\
\cmd{ListOfSpeciesReferences} & \ListOfSpeciesReferences \\
\cmd{ListOfSpecies} & \ListOfSpecies \\
\cmd{ListOfUnitDefinitions} & \ListOfUnitDefinitions \\
\cmd{ListOfUnits} & \ListOfUnits \\
\cmd{LocalParameter} & \LocalParameter \\
\cmd{Message} & \Message \\
\cmd{Model} & \Model \\
\cmd{ModifierSpeciesReference} & \ModifierSpeciesReference \\
\cmd{Notes} & \Notes \\
\cmd{Package} & \Package \\
\cmd{Parameter} & \Parameter \\
\cmd{Priority} & \Priority \\
\cmd{RateRule} & \RateRule \\
\cmd{Reaction} & \Reaction \\
\cmd{Rule} & \Rule \\
\cmd{SBML} & \SBML \\
\cmd{SBase} & \SBase \\
\cmd{SimpleSpeciesReference} & \SimpleSpeciesReference \\
\cmd{SpeciesReference} & \SpeciesReference \\
\cmd{Species} & \Species \\
\cmd{StoichiometryMath} & \StoichiometryMath \\
\cmd{Trigger} & \Trigger \\
\cmd{UnitDefinition} & \UnitDefinition \\
\cmd{Unit} & \Unit \\
\bottomrule
\end{edtable}
\caption{Commands for the names of object classes defined in the SBML Level~3
Core specification.}
\label{sbmlcore}
\end{table}
\begin{example}[style=latex]
\documentclass{sbmlpkgspec}
\begin{document}
\packageTitle{Example}
\packageVersion{Version 1 (Draft)}
\packageVersionDate{14 August 2011}
\packageGeneralURL{http://sbml.org/Documents/Specifications/Example}
\packageThisVersionURL{http://sbml.org/Documents/Specifications/Example_14_August_2011}
\author{Michael Hucka\\[0.25em]
\mailto{mhucka@caltech.edu}\\[0.25em]
Computing and Mathematical Sciences\\
California Institute of Technology\\
Pasadena, CA, USA
}
\maketitlepage
\maketableofcontents
\section{...}
...
\end{document}
\end{example}
\begin{description}[font=\normalfont\ttfamily\color{black},style=nextline]
\item[draftspec] This option causes the front page of the document to contain
the word ``DRAFT'' in large gray letters, and the footer of every page of
the document to contain the word ``(DRAFT)''. Authors can use this
option until such time as the specification document is considered a
release candidate or a final release.
\end{description}
\begin{description}
\item[\hspace*{6.5pt}\vSymbol\vsp] A \vSymbolName indicates a
\emph{requirement} for conformance. If a model fails to follow this rule,
it does not conform to the specification. (Mnemonic intention behind the
choice of symbol: ``This MUST be checked.'')
\item[\hspace*{6.5pt}\cSymbol\csp] A \cSymbolName indicates a
\emph{recommendation} for model consistency. If a model does not follow
this rule, it is not considered strictly invalid as far as the
specification is concerned; however, it indicates that the model contains
a physical or conceptual inconsistency. (Mnemonic intention behind the
choice of symbol: ``This is a cause for warning.'')
\item[\hspace*{6.5pt}\mSymbol\msp] A \mSymbolName indicates a strong
recommendation for good modeling practice. This rule is not
strictly a matter of SBML encoding, but the recommendation comes
from logical reasoning. As in the previous case, if a model does
not follow this rule, it is not strictly considered an invalid SBML
encoding. (Mnemonic intention behind the choice of symbol: ``You're
a star if you heed this.'')
\end{description}
\begin{itemize}
\item \texttt{amssymb}: This package defines many symbols and special
characters. In \sbmlpkg, it is used to get the symbols defined by the
validation rule commands \cmd{validRule}, \cmd{consistencyRule} and
\cmd{modelingRule} described in \sec{validation-rules}.
\end{itemize}
% * <myers@ece.utah.edu> 2015-06-03T17:34:31.200Z:
%
%
%