Previous Page Parent Page Next Page TOC

RDF

The Resource Description Framework (RDF) is a general-purpose language for representing information in the Web.

RDF Graph

The COPASI's classes for storing RDF graph information are shown in the diagram below. This PNG has been exported from the RDF Classes File, which has been created with Dia, a freely available program similar to Microsoft Visio.


RDF Parsing and Serialization

To store the RDF graph information we will use the RDF/XML Syntax. It is therefore necessary to convert the RDF information from and to the XML syntax. This conversion (parsing and serialization) is done with the help of the raptor library.

Conversion from an RDF graph to an RDF/XML syntax string can be performed with:
  • CRDFWriter::xmlFromGraph(const CRDFGraph * pGraph)
Conversion from an RDF/XML syntax string to an RDF graph can be performed with:
  • RDFParser::graphFromXml(const std string & xml)