kDB: Knowledge DataBase
|
#include <RDFTermBinaryMarshal.h>
Public Member Functions | |
virtual cres_qresult< knowCore::Value > | serialise (const knowCore::Value &_value) const =0 |
virtual cres_qresult< knowCore::Value > | unserialise (const knowCore::Value &_value) const =0 |
When storing a RDF Value in the database, RDFValueBinaryMarshal tries to store it as an efficient field first, if it cannot it is stored as a string literal using the to/fromRdfLiteral of knowCore::Value. This class allows to define alternative Serialisation, for instance, knowCore::Timestamp are stored as a number (knowCore::BigNumber).