pub struct SchemaMeta {
pub type_predicate: Option<String>,
pub predicate_stats: Vec<PredStat>,
pub char_sets: Vec<CharSet>,
pub class_hierarchy: Vec<ClassNode>,
pub level_rollups: Vec<LevelRollup>,
pub level_links: Vec<LevelLinks>,
pub subclass_cycles: Vec<Vec<String>>,
pub disjoint_pairs: Vec<(String, String)>,
pub equivalent_pairs: Vec<(String, String)>,
}Expand description
A decoded SCHEMA section — or, for a file built before it existed, the same
fields read from the pyramid-meta (see SchemaMeta::from_pyramid).
Fields§
§type_predicate: Option<String>The type predicate the class rollups used; None when the graph has no
typing (or the fields came from a pyramid-meta, which does not say).
predicate_stats: Vec<PredStat>Per-predicate cardinality for the planner; see PredStat.
char_sets: Vec<CharSet>The commonest entity shapes; see CharSet.
class_hierarchy: Vec<ClassNode>The subClassOf DAG with per-class depth.
level_rollups: Vec<LevelRollup>The per-level type histograms.
level_links: Vec<LevelLinks>The per-level lateral class-relation graphs.
subclass_cycles: Vec<Vec<String>>subClassOf cycles.
disjoint_pairs: Vec<(String, String)>owl:disjointWith class pairs.
equivalent_pairs: Vec<(String, String)>owl:equivalentClass class pairs.
Implementations§
Source§impl SchemaMeta
impl SchemaMeta
Sourcepub fn from_pyramid(p: &PyramidMeta) -> SchemaMeta
pub fn from_pyramid(p: &PyramidMeta) -> SchemaMeta
The schema fields of a pyramid-meta (files built before kind 9).
Trait Implementations§
Source§impl Clone for SchemaMeta
impl Clone for SchemaMeta
Source§fn clone(&self) -> SchemaMeta
fn clone(&self) -> SchemaMeta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SchemaMeta
impl Debug for SchemaMeta
Source§impl Default for SchemaMeta
impl Default for SchemaMeta
Source§fn default() -> SchemaMeta
fn default() -> SchemaMeta
Returns the “default value” for a type. Read more
Source§impl PartialEq for SchemaMeta
impl PartialEq for SchemaMeta
impl StructuralPartialEq for SchemaMeta
Auto Trait Implementations§
impl Freeze for SchemaMeta
impl RefUnwindSafe for SchemaMeta
impl Send for SchemaMeta
impl Sync for SchemaMeta
impl Unpin for SchemaMeta
impl UnsafeUnpin for SchemaMeta
impl UnwindSafe for SchemaMeta
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more