knowL: Knowledge Libraries
Loading...
Searching...
No Matches
knowRDF::Object Class Reference

Public Types

enum class  Type {
  Undefined , Uri , BlankNode , Literal ,
  Variable
}
 

Public Member Functions

 Object (const QString &_string, Type _type)
 
 Object (const knowCore::Uri &_uri)
 
 Object (const BlankNode &_blankNodeRef)
 
 Object (const Literal &_literal)
 
template<typename _T_ >
requires (knowCore::Uris::IsUriDefinitionV<_T_>)
 Object (const _T_ &_t)
 
 Object (const Object &_rhs)
 
Objectoperator= (const Object &_rhs)
 
bool operator== (const Object &_rhs) const
 
Type type () const
 
knowCore::Uri uri () const
 
BlankNode blankNode () const
 
Literal literal () const
 
QString variableName () const
 
cres_qresult< QByteArray > md5 () const
 
cres_qresult< QJsonValue > toJsonValue (const knowCore::SerialisationContexts &) const
 
cres_qresult< QCborValue > toCborValue (const knowCore::SerialisationContexts &) const
 

Static Public Member Functions

template<typename _T_ >
static Object fromValue (const _T_ &_value, const Lang &_lang=Lang(QString()))
 
template<typename _T_ >
static cres_qresult< ObjectfromValue (const knowCore::Uri &_dataTypeUri, const _T_ &_value, const QString &_lang=QString(), knowCore::TypeCheckingMode _conversion=knowCore::TypeCheckingMode::Safe)
 
static cres_qresult< ObjectfromJsonValue (const QJsonValue &_value, const knowCore::DeserialisationContexts &_context)
 
static cres_qresult< ObjectfromCborValue (const QCborValue &_value, const knowCore::DeserialisationContexts &_context)
 

The documentation for this class was generated from the following files: