Adds evidence codes to a species in a model.
#include <iostream>
int
main (int argc, char *argv[])
{
unsigned int errors, n;
if (argc != 3)
{
cout << endl
<< " usage: addingEvidenceCodes_2 <input-filename> <output-filename>" << endl
<< " Adds controlled vocabulary term to a species" << endl
<< endl;
return 2;
}
if (errors > 0)
{
cout << "Read Error(s):" << endl;
cout << "Correct the above and re-run." << endl;
}
else
{
if (n <= 0)
{
cout << "Model has no species.\n Cannot add CV terms\n";
}
else
{
"http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdf");
"http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdf");
"http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdf");
resource_att.
add(
"rdf:resource",
"http://biomodels.net/biology-qualifiers/occursIn");
"http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdf");
resource_att.
add(
"rdf:resource",
"urn:miriam:obo.go:GO%3A0005764");
"http://biomodels.net/biology-qualifiers/",
"bqbiol");
"http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdf");
"http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdf");
resource_att.
add(
"rdf:resource",
"urn:miriam:obo.eco:ECO%3A0000004");
resource_att.
add(
"rdf:resource",
"urn:miriam:pubmed:7017716");
li_token =
XMLToken(li_triple, resource_att);
xmlns.
add(
"http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdf");
xmlns.
add(
"http://purl.org/dc/elements/1.1/",
"dc");
xmlns.
add(
"http://purl.org/dc/terms/",
"dcterms");
xmlns.
add(
"http://www.w3.org/2001/vcard-rdf/3.0#",
"vCard");
xmlns.
add(
"http://biomodels.net/biology-qualifiers/",
"bqbiol");
xmlns.
add(
"http://biomodels.net/model-qualifiers/",
"bqmodel");
"http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdf");
}
}
delete d;
return errors;
}