Struct ParsingState¶
Defined in File ParsingState.hpp
Struct Documentation¶
-
struct ParsingState¶
The publicly known internal state of the IStreamQuadIterator. Values of this type can be used to specify the initial state of IStreamQuadIterators, and therefore states can be reused between different instantiations.
- Example:
IStreamQuadIterator::state_type state{}; { std::ifstream ifs_1{"some_file.txt"}; IStreamQuadIterator qit_1{ifs_1, ParsingFlags::none(), &state}; // consume qit_1 ... } { std::ifstream ifs_2{"some_other_file.txt"}; IStreamQuadIterator qit_2{ifs_2, ParsingFlags::none(), &state}; // consume qit_2 with state inherited from qit_1 ... }
Public Members
-
IRIFactory iri_factory = {}¶
The initial prefixes the parser has knowledge of
Note
default value is an empty map
-
storage::DynNodeStoragePtr node_storage = storage::default_node_storage¶
The node storage to put the parsed quads into
-
bnode_mngt::DynNodeScopeManagerPtr blank_node_scope_manager = nullptr¶
The node scope manager to use while parsing files the scopes names passed in are the graph identifiers.
By default no scope is used, this means all blank nodes will keep the labels from the file.