kDB: Knowledge DataBase
Loading...
Searching...
No Matches
kDB::Repository::RDF::FocusNodeWrapper< _TDerive_ > Class Template Reference

Public Member Functions

_TDerive_ & operator= (const _TDerive_ &_rhs)
 
bool operator== (const FocusNodeWrapper &_rhs) const
 
cres_qresult< bool > exists () const
 
knowCore::Uri graph () const
 
knowCore::Uri uri () const
 
knowCore::Uri type () const
 
kDB::Repository::Connection connection () const
 
cres_qresult< bool > hasProperty (const knowCore::Uri &_property) const
 
cres_qresult< knowCore::Valueproperty (const knowCore::Uri &_property) const
 
template<typename _T_ >
requires (not std::is_base_of_v<knowCore::Value, _T_>)
cres_qresult< _T_ > property (const knowCore::Uri &_property) const
 
cres_qresult< void > setProperty (const knowCore::Uri &_property, const knowCore::Value &_value) const
 
template<typename _T_ >
requires (not std::is_base_of_v<knowCore::Value, _T_>)
cres_qresult< void > setProperty (const knowCore::Uri &_property, const _T_ &_value) const
 
cres_qresult< void > addPropertyToList (const knowCore::Uri &_property, const knowCore::Value &_value, const Transaction &_transaction=Transaction()) const
 
cres_qresult< void > removePropertyFromList (const knowCore::Uri &_property, const knowCore::Value &_value, const Transaction &_transaction=Transaction()) const
 
cres_qresult< knowCore::ValueListpropertyList (const knowCore::Uri &_property, const Transaction &_transaction=Transaction()) const
 
cres_qresult< void > setPropertyInMap (const knowCore::Uri &_property, const knowCore::Uri &_key, const knowCore::Value &_value, const Transaction &_transaction=Transaction()) const
 
cres_qresult< knowCore::ValueHashpropertyMap (const knowCore::Uri &_property, const Transaction &_transaction=Transaction()) const
 
cres_qresult< knowCore::ValuepropertyMapValue (const knowCore::Uri &_property, const knowCore::Uri &_key, const Transaction &_transaction=Transaction()) const
 
cres_qresult< QCborMap > toCborMap () const
 

Protected Member Functions

 FocusNodeWrapper (const FocusNodeWrapper &_rhs)
 
void setFocusNode (const FocusNode &_fn)
 
const FocusNodefocusNodeRef () const
 
FocusNodefocusNodeRef ()
 

Member Function Documentation

◆ addPropertyToList()

template<typename _TDerive_ >
cres_qresult< void > kDB::Repository::RDF::FocusNodeWrapper< _TDerive_ >::addPropertyToList ( const knowCore::Uri & _property,
const knowCore::Value & _value,
const Transaction & _transaction = Transaction() ) const
inline

Set the value for the given property

◆ connection()

template<typename _TDerive_ >
kDB::Repository::Connection kDB::Repository::RDF::FocusNodeWrapper< _TDerive_ >::connection ( ) const
inline
Returns
the connection

◆ exists()

template<typename _TDerive_ >
cres_qresult< bool > kDB::Repository::RDF::FocusNodeWrapper< _TDerive_ >::exists ( ) const
inline
Returns
true if this focus node exists

◆ hasProperty()

template<typename _TDerive_ >
cres_qresult< bool > kDB::Repository::RDF::FocusNodeWrapper< _TDerive_ >::hasProperty ( const knowCore::Uri & _property) const
inline
Returns
if the given property is set

◆ property() [1/2]

template<typename _TDerive_ >
cres_qresult< knowCore::Value > kDB::Repository::RDF::FocusNodeWrapper< _TDerive_ >::property ( const knowCore::Uri & _property) const
inline
Returns
a value for the given property

◆ property() [2/2]

template<typename _TDerive_ >
template<typename _T_ >
requires (not std::is_base_of_v<knowCore::Value, _T_>)
cres_qresult< _T_ > kDB::Repository::RDF::FocusNodeWrapper< _TDerive_ >::property ( const knowCore::Uri & _property) const
inline
Returns
a value for the given property

◆ propertyList()

template<typename _TDerive_ >
cres_qresult< knowCore::ValueList > kDB::Repository::RDF::FocusNodeWrapper< _TDerive_ >::propertyList ( const knowCore::Uri & _property,
const Transaction & _transaction = Transaction() ) const
inline

Get the values for the given list property

◆ propertyMap()

template<typename _TDerive_ >
cres_qresult< knowCore::ValueHash > kDB::Repository::RDF::FocusNodeWrapper< _TDerive_ >::propertyMap ( const knowCore::Uri & _property,
const Transaction & _transaction = Transaction() ) const
inline

Get the values for the given map property

◆ propertyMapValue()

template<typename _TDerive_ >
cres_qresult< knowCore::Value > kDB::Repository::RDF::FocusNodeWrapper< _TDerive_ >::propertyMapValue ( const knowCore::Uri & _property,
const knowCore::Uri & _key,
const Transaction & _transaction = Transaction() ) const
inline

Get the values for one element in the given map property

◆ removePropertyFromList()

template<typename _TDerive_ >
cres_qresult< void > kDB::Repository::RDF::FocusNodeWrapper< _TDerive_ >::removePropertyFromList ( const knowCore::Uri & _property,
const knowCore::Value & _value,
const Transaction & _transaction = Transaction() ) const
inline

Set the value for the given property

◆ setProperty() [1/2]

template<typename _TDerive_ >
template<typename _T_ >
requires (not std::is_base_of_v<knowCore::Value, _T_>)
cres_qresult< void > kDB::Repository::RDF::FocusNodeWrapper< _TDerive_ >::setProperty ( const knowCore::Uri & _property,
const _T_ & _value ) const
inline

Set the value for the given property

◆ setProperty() [2/2]

template<typename _TDerive_ >
cres_qresult< void > kDB::Repository::RDF::FocusNodeWrapper< _TDerive_ >::setProperty ( const knowCore::Uri & _property,
const knowCore::Value & _value ) const
inline

Set the value for the given property

◆ setPropertyInMap()

template<typename _TDerive_ >
cres_qresult< void > kDB::Repository::RDF::FocusNodeWrapper< _TDerive_ >::setPropertyInMap ( const knowCore::Uri & _property,
const knowCore::Uri & _key,
const knowCore::Value & _value,
const Transaction & _transaction = Transaction() ) const
inline

Set the value for the given property

◆ toCborMap()

template<typename _TDerive_ >
cres_qresult< QCborMap > kDB::Repository::RDF::FocusNodeWrapper< _TDerive_ >::toCborMap ( ) const
inline

To a cbor map.


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