#include <CRDFWriter.h>
◆ CRDFWriter()
CRDFWriter::CRDFWriter |
( |
| ) |
|
◆ ~CRDFWriter()
CRDFWriter::~CRDFWriter |
( |
| ) |
|
◆ initNamespaces()
void CRDFWriter::initNamespaces |
( |
const CRDFGraph * |
pGraph | ) |
|
|
private |
◆ 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.
- Parameters
-
- Returns
- char * XML
References CRDFObject::BLANK_NODE, CRDFSubject::BLANK_NODE, CRDFGraph::empty(), fatalError, CRDFObject::getBlankNodeID(), CRDFSubject::getBlankNodeID(), CRDFLiteral::getDataType(), CRDFLiteral::getLanguage(), CRDFLiteral::getLexicalData(), CRDFObject::getLiteral(), CRDFObject::getResource(), CRDFSubject::getResource(), CRDFGraph::getTriplets(), CRDFLiteral::getType(), CRDFObject::getType(), CRDFSubject::getType(), initNamespaces(), CRDFObject::LITERAL, mpWriter, CRDFLiteral::PLAIN, pRaptorFreeUri, CRDFObject::RESOURCE, CRDFSubject::RESOURCE, and CRDFLiteral::TYPED.
◆ xmlFromGraph()
std::string CRDFWriter::xmlFromGraph |
( |
const CRDFGraph * |
pGraph | ) |
|
|
static |
◆ mpGraph
A pointer to the created RDF graph
◆ mpWriter
raptor_serializer* CRDFWriter::mpWriter |
|
private |
The documentation for this class was generated from the following files: