kDB: Knowledge DataBase
|
#include <Collection.h>
Public Types | |
using | ValueType = Feature |
using | OperatorOptions = kDB::Repository::RDF::FocusNodeCollection::OperatorOptions |
![]() | |
using | Derive |
using | ValueType |
Public Member Functions | |
Collection (const Collection &_rhs) | |
Collection & | operator= (const Collection &_rhs) |
bool | operator== (const Collection &_dss) const |
cres_qresult< Feature > | salientRegion (const knowCore::Uri &_salientregionUri) const |
cres_qresult< bool > | hasFeature (const knowCore::Uri &_salientregionUri) const |
cres_qresult< QList< Feature > > | features (const QList< QPair< knowCore::Uri, knowCore::ConstrainedValue > > &_constraints, const OperatorOptions &_operatorOptions=OperatorOptions()) const |
template<typename... _TArgs_> | |
cres_qresult< QList< Feature > > | features (const knowCore::Uri &_uri, const knowCore::ConstrainedValue &_constraint, const _TArgs_ &...) const |
cres_qresult< Feature > | insertFeatureFromCbor (const QCborMap &_map) |
cres_qresult< void > | importFromOverpass (QIODevice *_device) |
cres_qresult< Feature > | createFeature (const knowGIS::GeometryObject &_geometry, const knowCore::ValueHash &_properties, const knowCore::Uri &_featureUri=knowCore::Uri::createUnique({"salientregion"})) |
![]() | |
bool | operator== (const Derive &_rhs) const |
bool | isValid () const |
bool | isReadOnly () const |
knowCore::Uri | uri () const |
kDB::Repository::Connection | connection () const |
cres_qresult< std::size_t > | count () const |
cres_qresult< QList< ValueType > > | all () const |
Static Public Member Functions | |
static knowCore::Uri | collectionType () |
static knowCore::Uri | allFocusNodesView () |
static knowCore::Uri | primaryType () |
static knowCore::UriList | containedTypes () |
static cres_qresult< knowCore::UriList > | defaultDatatypes (const QList< QPair< knowCore::Uri, knowCore::ConstrainedValue > > &_constraints) |
static Collection | allFeatures (const kDB::Repository::Connection &_connection) |
![]() | |
static cres_qresult< Derive > | get (const kDB::Repository::Connection &_connection, const knowCore::Uri &_graph) |
static cres_qresult< Derive > | create (const kDB::Repository::Connection &_connection, const knowCore::Uri &_graph) |
static cres_qresult< Derive > | getOrCreate (const kDB::Repository::Connection &_connection, const knowCore::Uri &_graph) |
static cres_qresult< void > | registerCollection (const kDB::Repository::QueryConnectionInfo &_connection) |
Protected Member Functions | |
Collection (const kDB::Repository::RDF::FocusNodeCollectionWrapper< Collection > &_rhs) | |
![]() | |
operator Derive () const | |
cres_qresult< ValueType > | focusNode (const knowCore::Uri &_uri) const |
cres_qresult< bool > | hasFocusNode (const knowCore::Uri &_focusNodeUri, const knowCore::Uri &_typeUri=Derive::primaryType()) const |
cres_qresult< QList< ValueType > > | focusNodes (const QList< QPair< knowCore::Uri, knowCore::ConstrainedValue > > &_constraints, const FocusNodeCollection::OperatorOptions &_operatorOptions) const |
cres_qresult< QList< ValueType > > | focusNodes (const knowCore::Uri &_uri, const knowCore::ConstrainedValue &_constraint, const _TArgs_ &... _args) const |
cres_qresult< ValueType > | createFocusNode (const knowCore::Uri &_typeUri, const knowCore::ValueHash &_properties, const knowCore::Uri &_focusNodeUri) |
FocusNodeCollection & | focusNodeCollection () |
const FocusNodeCollection & | focusNodeCollection () const |
Friends | |
class | ::TestFeatures |
Interface a kDB::Repository::TripleStore that contains a collection of salientregions
|
static |
cres_qresult< Feature > Collection::createFeature | ( | const knowGIS::GeometryObject & | _geometry, |
const knowCore::ValueHash & | _properties, | ||
const knowCore::Uri & | _featureUri = knowCore::Uri::createUnique({"salientregion"}) ) |
Create a new Feature of uri type _typeUri
with geometry _geometry
and add it to the _rdfGraph
.
cres_qresult< QList< Feature > > Collection::features | ( | const QList< QPair< knowCore::Uri, knowCore::ConstrainedValue > > & | _constraints, |
const OperatorOptions & | _operatorOptions = OperatorOptions() ) const |
_constraints | a list of pair of list of uris representing the property uri and a constraint. |
_operatorOptions | set the precision used by operators |
cres_qresult< void > Collection::importFromOverpass | ( | QIODevice * | _device | ) |
Import the content of the iodevice from overpass raw API output.
cres_qresult< Feature > Collection::salientRegion | ( | const knowCore::Uri & | _salientregionUri | ) | const |