COPASI API
4.16.103
|
#include <CRDFWriter.h>
Public Member Functions | |
CRDFWriter () | |
char * | write (const CRDFGraph *pGraph) |
~CRDFWriter () | |
Static Public Member Functions | |
static std::string | xmlFromGraph (const CRDFGraph *pGraph) |
Private Member Functions | |
void | initNamespaces (const CRDFGraph *pGraph) |
![]() | |
CRaptorInit () | |
~CRaptorInit () | |
Private Attributes | |
CRDFGraph * | mpGraph |
raptor_serializer * | mpWriter |
Additional Inherited Members | |
![]() | |
static bool | isLocalURI (raptor_uri *pURI) |
Definition at line 26 of file CRDFWriter.h.
CRDFWriter::CRDFWriter | ( | ) |
CRDFWriter::~CRDFWriter | ( | ) |
This adds the default name spaces to the writer
const | CRDFGraph * pGraph |
Definition at line 66 of file CRDFWriter.cpp.
References CRDFGraph::getNameSpaceMap(), mpWriter, and pRaptorFreeUri.
Referenced by write().
char * CRDFWriter::write | ( | const CRDFGraph * | pGraph | ) |
Convert an RDF graph to an XML string. It is the repsonsibility of user to free the allocate memory for the string. If the conversion fails a NULL pointer is returned.
const | CRDFGraph * pGraph |
Definition at line 83 of file CRDFWriter.cpp.
References CRDFSubject::BLANK_NODE, CRDFObject::BLANK_NODE, fatalError, CRDFSubject::getBlankNodeID(), CRDFObject::getBlankNodeID(), CRDFLiteral::getDataType(), CRDFLiteral::getLanguage(), CRDFLiteral::getLexicalData(), CRDFObject::getLiteral(), CRDFSubject::getResource(), CRDFObject::getResource(), CRDFGraph::getTriplets(), CRDFLiteral::getType(), CRDFSubject::getType(), CRDFObject::getType(), initNamespaces(), CRDFObject::LITERAL, mpWriter, CRDFLiteral::PLAIN, pRaptorFreeUri, CRDFSubject::RESOURCE, CRDFObject::RESOURCE, and CRDFLiteral::TYPED.
|
static |
Convert an RDF graph to an XML string
const | CRDFGraph * pGraph |
Definition at line 26 of file CRDFWriter.cpp.
Referenced by CMIRIAMInfo::save(), and CRDFGraphConverter::SBML2Copasi().
|
private |
A pointer to the created RDF graph
Definition at line 73 of file CRDFWriter.h.
|
private |
Pointer to the underlying C serializer from the Raptor library
Definition at line 68 of file CRDFWriter.h.
Referenced by CRDFWriter(), initNamespaces(), write(), and ~CRDFWriter().