Trait rdftk_core::graph::Graph[][src]

pub trait Graph {
    fn is_empty(&self) -> bool;
fn len(&self) -> usize;
fn contains_subject(&self, subject: &SubjectNode) -> bool;
fn contains_individual(&self, subject: &IRIRef) -> bool;
fn contains(&self, statement: &Statement) -> bool;
fn contains_all(
        &self,
        subject: &SubjectNode,
        predicate: &IRIRef,
        object: &ObjectNode
    ) -> bool;
fn statements(&self) -> StatementList;
fn statements_for(&self, subject: &SubjectNode) -> StatementList;
fn subjects(&self) -> HashSet<&SubjectNode>;
fn predicates(&self) -> HashSet<&IRIRef>;
fn predicates_for(&self, subject: &SubjectNode) -> HashSet<&IRIRef>;
fn objects(&self) -> HashSet<&ObjectNode>;
fn objects_for(
        &self,
        subject: &SubjectNode,
        predicate: &IRIRef
    ) -> HashSet<&ObjectNode>;
fn resource_for(&self, subject: &SubjectNode) -> Resource;
fn prefix_mappings(&self) -> Rc<dyn PrefixMappings>; }

The core graph interface implemented by all model providers.

Required methods

fn is_empty(&self) -> bool[src]

fn len(&self) -> usize[src]

fn contains_subject(&self, subject: &SubjectNode) -> bool[src]

fn contains_individual(&self, subject: &IRIRef) -> bool[src]

fn contains(&self, statement: &Statement) -> bool[src]

fn contains_all(
    &self,
    subject: &SubjectNode,
    predicate: &IRIRef,
    object: &ObjectNode
) -> bool
[src]

fn statements(&self) -> StatementList[src]

fn statements_for(&self, subject: &SubjectNode) -> StatementList[src]

fn subjects(&self) -> HashSet<&SubjectNode>[src]

fn predicates(&self) -> HashSet<&IRIRef>[src]

fn predicates_for(&self, subject: &SubjectNode) -> HashSet<&IRIRef>[src]

fn objects(&self) -> HashSet<&ObjectNode>[src]

fn objects_for(
    &self,
    subject: &SubjectNode,
    predicate: &IRIRef
) -> HashSet<&ObjectNode>
[src]

fn resource_for(&self, subject: &SubjectNode) -> Resource[src]

fn prefix_mappings(&self) -> Rc<dyn PrefixMappings>[src]

Loading content...

Implementors

Loading content...