RDFAnnotation I/O.


Functions | |
| XMLNode_t * | RDFAnnotationParser_createAnnotation () |
| Creates a blank annotation and returns the XMLNode_t corresonding to it. | |
| XMLNode_t * | RDFAnnotationParser_createCVTerms (const SBase_t *obj) |
| Takes a list of CVTerms form an SBML object and creates a the RDF "Description" element. | |
| XMLNode_t * | RDFAnnotationParser_createRDFAnnotation () |
| Creates blank RDF annotation content organized in the form defined in Section 6 of the SBML Level 2 Version 4 specification . | |
| XMLNode_t * | RDFAnnotationParser_createRDFDescription (const SBase_t *obj) |
| Takes an SBML object and creates an XMLNode_t corresponding to an RDF "Description" element. | |
| XMLNode_t * | RDFAnnotationParser_deleteRDFAnnotation (XMLNode_t *annotation) |
| Deletes any RDF annotation found in the given XMLNode_t tree and returns any remaining annotation content. | |
| XMLNode_t * | RDFAnnotationParser_parseCVTerms (const SBase_t *obj) |
| Takes a list of CVTerms from an SBML object and creates a complete SBML annotation around it. | |
| XMLNode_t * | RDFAnnotationParser_parseModelHistory (const SBase_t *obj) |
| Takes an SBML Model_t object, reads off the model history information stored in it, and creates a complete SBML annotation to store that history. | |
| void | RDFAnnotationParser_parseRDFAnnotation (const XMLNode_t *annotation, List_t *CVTerms) |
| Parses an annotation (given as an XMLNode_t tree) into a list of CVTerms. | |
| ModelHistory_t * | RDFAnnotationParser_parseRDFAnnotationWithModelHistory (const XMLNode_t *annotation) |
| Parses an annotation into a ModelHistory_t structure. | |
| XMLNode_t* RDFAnnotationParser_createAnnotation | ( | ) |
Creates a blank annotation and returns the XMLNode_t corresonding to it.
The annotation created by this method is a completely empty SBML <annotation> element. One use for this is to then call createRDFAnnotation() to construct RDF content for this empty annotation.
| XMLNode_t* RDFAnnotationParser_createCVTerms | ( | const SBase_t * | object | ) |
Takes a list of CVTerms form an SBML object and creates a the RDF "Description" element.
This essentially takes the given SBML object, reads out the CVTerms attached to it, calls createRDFDescriptiom() to create an RDF "Description" element to hold the terms and adds each term with appropriate qualifiers.
| object | the SBML object to start from |
| XMLNode_t* RDFAnnotationParser_createRDFAnnotation | ( | ) |
Creates blank RDF annotation content organized in the form defined in Section 6 of the SBML Level 2 Version 4 specification .
The annotation created by this method has namespace declarations for all the relevant XML namespaces used in RDF annotations and also has an empty RDF element. Note that this is not the containing <annotation> element; the method createAnnotation() is available for that purpose.
| XMLNode_t* RDFAnnotationParser_createRDFDescription | ( | const SBase_t * | object | ) |
Takes an SBML object and creates an XMLNode_t corresponding to an RDF "Description" element.
This method is a handy way of creating RDF description objects linked by the appropriate "metaid" field, for insertion into RDF annotations in a model. (Note that this method does not create a complete annotation; it only creates a description element. For creating empty RDF annotations that can serve as containers for RDF descriptions, see RDFAnnotationParser_createRDFAnnotation().
| object | the object to be annotated |
| XMLNode_t* RDFAnnotationParser_deleteRDFAnnotation | ( | XMLNode_t * | annotation | ) |
Deletes any RDF annotation found in the given XMLNode_t tree and returns any remaining annotation content.
The name of the given XMLNode_t must be "annotation", or else this method returns NULL.
| annotation | the XMLNode_t tree within which the RDF annotation is to be found and deleted |
| XMLNode_t* RDFAnnotationParser_parseCVTerms | ( | const SBase_t * | object | ) |
Takes a list of CVTerms from an SBML object and creates a complete SBML annotation around it.
This essentially takes the given SBML object, calls createCVTerms to read out the CVTerms attached to it, calls createRDFAnnotation() to create an RDF annotation to hold the terms, and finally calls createAnnotation() to wrap the result as an SBML <annotation> element.
| object | the SBML object to start from |
| XMLNode_t* RDFAnnotationParser_parseModelHistory | ( | const SBase_t * | object | ) |
Takes an SBML Model_t object, reads off the model history information stored in it, and creates a complete SBML annotation to store that history.
| object | a Model_t |
| void RDFAnnotationParser_parseRDFAnnotation | ( | const XMLNode_t * | annotation, |
| List_t * | CVTerms | ||
| ) |
Parses an annotation (given as an XMLNode_t tree) into a list of CVTerms.
This is used to take an annotation that has been read into an SBML model, identify the RDF elements within it, and create a list of corresponding CVTerms.
| annotation | XMLNode_t containing the annotation. |
| CVTerms | list of CVTerms to be created. |
| ModelHistory_t* RDFAnnotationParser_parseRDFAnnotationWithModelHistory | ( | const XMLNode_t * | annotation | ) |
Parses an annotation into a ModelHistory_t structure.
This is used to take an annotation that has been read into an SBML model, identify the RDF elements representing model history information, and create a list of corresponding CVTerms.
| annotation | XMLNode_t containing the annotation. |