pub struct AssembleOptions<'a> {
pub with_pyramid: bool,
pub with_text_index: bool,
pub text_index_scope: Option<&'a TextIndexScope>,
pub type_override: Option<&'a str>,
pub algo: PyramidAlgo,
pub perms: PermSet,
pub graph_layout: GraphLayout,
pub pyramid_layout: PyramidLayout,
pub label_index: bool,
pub schema: bool,
}Expand description
Everything an in-memory build decides besides its input. The fields the
older assemble_* entry points take positionally, plus the sections added
after the generation-1 freeze.
Fields§
§with_pyramid: boolBuild the community pyramid (kind 4).
with_text_index: boolBuild the full-text index (kind 6, or kind 11 when its scope leaves out some predicates).
text_index_scope: Option<&'a TextIndexScope>The scope of that index (--text-index-graphs, --text-index-include,
--text-index-exclude); None is the default scope, the only one
before 0.4.0: the default graph, every predicate.
type_override: Option<&'a str>The type predicate for the schema (e.g. wdt:P31); rdf:type if None.
algo: PyramidAlgoThe community algorithm of the pyramid.
perms: PermSetWhich index permutations to write.
graph_layout: GraphLayoutHow the named graphs are stored: one index per graph (kind 5) or the
quad index (kind 10, rete build --named-graphs quad).
pyramid_layout: PyramidLayoutWhat the pyramid-meta carries besides the summary.
label_index: boolWrite the LABEL_INDEX section (kind 8, rete build --label-index).
schema: boolWrite the SCHEMA section (kind 9; rete build writes it unless
--no-schema).
Implementations§
Source§impl AssembleOptions<'_>
impl AssembleOptions<'_>
Sourcepub fn legacy() -> AssembleOptions<'_>
pub fn legacy() -> AssembleOptions<'_>
What every assemble_* entry point wrote before kinds 8 and 9 existed:
a Louvain pyramid with the combined pyramid-meta, no text index, all six
permutations, one index per named graph, no LABEL_INDEX or SCHEMA
section.
Sourcepub fn sectioned() -> AssembleOptions<'_>
pub fn sectioned() -> AssembleOptions<'_>
What rete build writes: the pyramid-meta carries only the community
material, the schema has its own section, and the label index is
opt-in.
Trait Implementations§
Source§impl<'a> Clone for AssembleOptions<'a>
impl<'a> Clone for AssembleOptions<'a>
Source§fn clone(&self) -> AssembleOptions<'a>
fn clone(&self) -> AssembleOptions<'a>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more