Struct Dataset¶
Defined in File Dataset.hpp
Nested Relationships¶
Nested Types¶
Struct Documentation¶
-
struct Dataset¶
Public Types
-
using sentinel = std::default_sentinel_t¶
-
using size_type = size_t¶
-
using difference_type = ptrdiff_t¶
Public Functions
-
explicit Dataset(storage::DynNodeStoragePtr node_storage = storage::default_node_storage)¶
-
size_t size() const noexcept¶
-
solution_sequence match(query::QuadPattern const &quad_pattern) const noexcept¶
-
bool serialize_trig(writer::BufWriterParts writer) const noexcept¶
Serialize this dataset as TriG. This function will internally create a SerializationState and call
beginandflushon it when appropriate.- Parameters:
writer – writer parts
- Returns:
true if serialization was successful, false if a call to W::flush was not able to make room
-
Dataset anonymize(util::Anonymizer &anonymizer) const¶
Anonymize the dataset by removing all information except for the dataset structure itself.
See
rdf4cpp::util::Anonymizerfor details
Public Members
- template<typename ErrF = decltype([](parser::ParsingError) noexcept {})> void load_rdf_data(std::istream &rdf_file, parser::ParsingFlags flags=parser::ParsingFlags::none(), parser::ParsingState *state=nullptr, ErrF &&errf={}) requires std bool serialize_trig (writer::SerializationState &state, writer::BufWriterParts writer) const noexcept
Serialize this dataset as N-Quads.
- Param writer:
writer parts
- Param state:
serialization state
- Param writer:
writer parts
- Return:
true if serialization was successful, false if a call to flush was not able to make room Serialize this dataset as TriG. This function does not call
beginorflushon the given state, it just serialized the contents of this Dataset using it.- Return:
true if serialization was successful, false if a call to W::flush was not able to make room
-
struct iterator¶
Public Types
-
using iterator_category = std::input_iterator_tag¶
-
using difference_type = ptrdiff_t¶
-
using pointer = value_type const*¶
-
using reference = value_type const&¶
-
using iterator_category = std::input_iterator_tag¶
-
struct solution_iterator¶
Public Types
-
using iterator_category = std::input_iterator_tag¶
-
using difference_type = ptrdiff_t¶
-
using pointer = value_type const*¶
-
using reference = value_type const&¶
Public Functions
-
solution_iterator(Dataset const *parent, query::QuadPattern const &pat, typename storage_type::const_iterator beg, typename storage_type::const_iterator end) noexcept¶
-
solution_iterator &operator++() noexcept¶
-
void operator++(int) noexcept¶
Friends
-
friend bool operator==(solution_iterator const &self, sentinel) noexcept¶
-
friend bool operator==(sentinel, solution_iterator const &self) noexcept¶
-
using iterator_category = std::input_iterator_tag¶
-
struct solution_sequence¶
Public Types
-
using size_type = size_t¶
-
using difference_type = ptrdiff_t¶
-
using reference = value_type const&¶
-
using pointer = value_type const*¶
-
using iterator = solution_iterator¶
-
using const_iterator = solution_iterator¶
-
using sentinel = std::default_sentinel_t¶
Public Functions
-
using size_type = size_t¶
-
using sentinel = std::default_sentinel_t¶