Struct Graph¶
Defined in File Graph.hpp
Nested Relationships¶
Nested Types¶
Struct Documentation¶
-
struct Graph¶
Public Types
-
using size_type = size_t¶
-
using difference_type = ptrdiff_t¶
-
using sentinel = std::default_sentinel_t¶
Public Functions
-
explicit Graph(storage::DynNodeStoragePtr node_storage = storage::default_node_storage) noexcept¶
-
size_t size() const noexcept¶
-
solution_sequence match(query::TriplePattern const &triple_pattern) const noexcept¶
-
bool serialize_turtle(writer::BufWriterParts writer) const noexcept¶
Serialize this graph as Turtle 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
-
Graph anonymize(util::Anonymizer &anonymizer) const¶
Anonymize the graph by removing all information except for the graph 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_turtle (writer::SerializationState &state, writer::BufWriterParts writer) const noexcept
Serialize this graph as N-Triples.
- Param writer:
writer parts
- Param writer:
writer parts
- Return:
true if serialization was successful, false if a call to W::flush was not able to make room Serialize this graph as Turtle This function does not call
beginorflushon the given state, it just serialized the contents of this Graph using it.- Return:
true if serialization was successful, false if a call to W::flush was not able to make room
Friends
-
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() noexcept = default¶
-
solution_iterator(typename Graph::iterator beg, query::TriplePattern const &pat) 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 size_type = size_t¶