#include <CRDFUtilities.h>
List of all members.
Public Member Functions |
| CRDFUtilities () |
virtual | ~CRDFUtilities () |
Static Public Member Functions |
static unsigned C_INT32 | fixLocalFileAboutReference (std::string &rdfXml, const std::string &newId, const std::string &oldId) |
static unsigned C_INT32 | fixSBMLRdf (std::string &rdfXml) |
static std::string | getNameSpaceQualifier (const std::string &rdfXml, const std::string &nameSpace) |
static bool | findNextElement (const std::string &rdfXml, const std::string &elementName, std::string::size_type &start, std::string::size_type &end) |
Constructor & Destructor Documentation
CRDFUtilities::CRDFUtilities |
( |
| ) |
|
CRDFUtilities::~CRDFUtilities |
( |
| ) |
[virtual] |
Member Function Documentation
bool CRDFUtilities::findNextElement |
( |
const std::string & |
rdfXml, |
|
|
const std::string & |
elementName, |
|
|
std::string::size_type & |
start, |
|
|
std::string::size_type & |
end |
|
) |
| [static] |
Find the the next XML element with the given name (either start or end).
- Parameters:
-
const | std::string & rdfXml |
const | std::string & elementName |
std::string::size_type | & start |
std::string::size_type | & end |
- Returns:
- bool found
unsigned C_INT32 CRDFUtilities::fixLocalFileAboutReference |
( |
std::string & |
rdfXml, |
|
|
const std::string & |
newId, |
|
|
const std::string & |
oldId |
|
) |
| [static] |
Fix local rdf:about attributes of the rdf:Description element. It returned the number of replacements made.
- Parameters:
-
std::string | & rdfXml |
const | std::string & newId |
const | std::string & oldId |
- Returns:
- unsigned C_INT32 replacements
unsigned C_INT32 CRDFUtilities::fixSBMLRdf |
( |
std::string & |
rdfXml | ) |
[static] |
Fix broken SBML RDF: <dc:creator rdf:parseType="Resource"> <rdf:Bag> It is not allowed to use the attribute rdf:parseType="Resource" and <rdf:Bag> simultaneously
- Parameters:
-
- Returns:
- unsigned C_INT32 corrections
std::string CRDFUtilities::getNameSpaceQualifier |
( |
const std::string & |
rdfXml, |
|
|
const std::string & |
nameSpace |
|
) |
| [static] |
Find the qualifier for the given name space. Please note the qualifier if found has a ':' already appended.
- Parameters:
-
const | std::string & rdfXml |
const | std::string & nameSpace |
- Returns:
- std::string qualifier
The documentation for this class was generated from the following files: