| MathSBML Home Page | MathSBML Site Map |
annotationToSBML[options] returns SBML for an annotation.
See also:
|
Input: setAnnotationNamespace["http://www.stuff"] setAnnotationPackage["bedrock"] annotationToSBML[hello -> "goodbye", yes -> no] Output: <annotation xmlns:bedrock="http://www.stuff"> <hello>goodbye</hello> <yes>no</yes> </annotation>Annotations can be specified heirarchically, as in the following:
Input: setAnnotationNamespace["http://url"]; setAnnotationPackage["helloWorld"]; annotationToSBML[ foo -> {I -> {write-> SBML, like -> {apples -> red, bananas -> yellow, cherries -> red}}, we -> {livein -> {submarine -> yellow, house -> {size -> big, color -> red}}}}]; Output: <annotation xmlns:helloWorld="http://url"> <foo> <I write="SBML"> <like apples="red" bananas="yellow" cherries="red"/> </I> <we> <livein submarine="yellow"> <house color="red" size="big"/> </livein> </we> </foo> </annotation>[07-23-04]