Struct rdftk_core::simple::indexed::IndexedSimpleGraph [−][src]
pub struct IndexedSimpleGraph { /* fields omitted */ }
Expand description
Simple, in-memory implementation of the Graph
trait.
Trait Implementations
Return true if this instance, or factory, supports the feature identified by the IRI. Read more
Returns true
if there are no statements in this graph, else false
. Read more
Returns true
if this graph contains any statement with the provided subject, else false
. Read more
Returns true
if this graph contains any statement with the provided IRI as subject, else
false
. Read more
fn matches(
&self,
subject: Option<&SubjectNodeRef>,
predicate: Option<&IRIRef>,
object: Option<&ObjectNodeRef>
) -> HashSet<&StatementRef>
[src]
fn matches(
&self,
subject: Option<&SubjectNodeRef>,
predicate: Option<&IRIRef>,
object: Option<&ObjectNodeRef>
) -> HashSet<&StatementRef>
[src]Returns true
if this graph contains the any statement with the provided subject,
predicate, and object, else false
. Read more
Return an iterator over all the statements in the graph. Read more
Return a set of all subjects in the graph, note that this is a set so that it removes duplicates. Read more
Return a set of all predicate in the graph, note that this is a set so that it removes duplicates. Read more
Return a set of all predicate referenced by the provided subject in graph, note that this is a set so that it removes duplicates. Read more
Return a set of all objects in the graph, note that this is a set so that it removes duplicates. Read more
fn objects_for(
&self,
subject: &SubjectNodeRef,
predicate: &IRIRef
) -> HashSet<&ObjectNodeRef>
[src]
fn objects_for(
&self,
subject: &SubjectNodeRef,
predicate: &IRIRef
) -> HashSet<&ObjectNodeRef>
[src]Return a set of all objects referenced by the provided subject and predicate in the graph, note that this is a set so that it removes duplicates. Read more
Returns the set of prefix mappings held by the graph. Read more
Set the prefix mappings held by the graph. Read more
Return the factory that creates graphs using the same provider as self
. Read more
Return the factory that creates statements using the same provider as self
. Read more
Return the factory that creates literals using the same provider as self
. Read more
Return an iterator over all the statements in the graph. Read more
Insert a new statement into the graph. Read more
Merge another graph into this one. Note that the graphs are required to have the same
implementation type based in the type qualifiers for StatementIter
. Read more
Remove any duplicates within the graph, replacing any number of identical statements with just one. This will return a list of all statements removed. Read more
Remove any statement that matches the provided. If a graph has duplicates this method does not differentiate between them. Read more
Remove all statements from this graph that have the provided subject. Read more
Returns true
if this graph contains the provided statement, else false
. Read more
fn contains_all(
&self,
subject: &SubjectNodeRef,
predicate: &IRIRef,
object: &ObjectNodeRef
) -> bool
[src]
fn contains_all(
&self,
subject: &SubjectNodeRef,
predicate: &IRIRef,
object: &ObjectNodeRef
) -> bool
[src]Returns true
if this graph contains the any statement with the provided subject,
predicate, and object, else false
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for IndexedSimpleGraph
impl !Send for IndexedSimpleGraph
impl !Sync for IndexedSimpleGraph
impl Unpin for IndexedSimpleGraph
impl !UnwindSafe for IndexedSimpleGraph
Blanket Implementations
Mutably borrows from an owned value. Read more