Hi
I am using the libSBML package in R and trying to get the species reference/database identifiers but do not know which function i can use to retrieve the mapping.
---
<species boundaryCondition="false" compartment="in" constant="false" hasOnlySubstanceUnits="true" id="_2_oxoglutarate__in_" metaid="_2_oxoglutarate__in_" name="2-oxoglutarate">
<annotation>
<rdf:RDF>
<rdf:Description rdf:about="#_2_oxoglutarate__in_">
<bqmodel:is>
<rdf:Bag>
<rdf:li rdf:resource="
http://identifiers.org/pubchem.substance/164533"/>
</rdf:Bag>
</bqmodel:is>
<bqmodel:is>
----
# R code snippet:
document = readSBML(xml_file);
model = SBMLDocument_getModel(document);
num_species = Model_getNumSpecies(model)
for (i in seq(1,num_species) {
species = Model_getSpecies(model, i);
id = Species_getId(species);
# what function to use to get rdf:resource id?#
}
-----
Any advice would be appreciated. Thank you!