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