pub struct GraphMerger { /* private fields */ }Expand description
Graph merger for combining multiple RDF graphs
Provides efficient merging of RDF graphs with deduplication.
Implementations§
Source§impl GraphMerger
impl GraphMerger
Sourcepub fn with_duplicates() -> Self
pub fn with_duplicates() -> Self
Create a merger that allows duplicate triples
Sourcepub fn merge(&self, graphs: &[Vec<Triple>]) -> Vec<Triple>
pub fn merge(&self, graphs: &[Vec<Triple>]) -> Vec<Triple>
Merge multiple graphs into a single graph
§Example
use oxirs_ttl::toolkit::graph_utils::GraphMerger;
let graphs: Vec<Vec<oxirs_core::model::Triple>> = vec![];
let merger = GraphMerger::new();
let merged = merger.merge(&graphs);Sourcepub fn merge_into(&self, target: &mut Vec<Triple>, source: &[Triple])
pub fn merge_into(&self, target: &mut Vec<Triple>, source: &[Triple])
Merge two graphs in-place (modifying the first graph)
Trait Implementations§
Source§impl Debug for GraphMerger
impl Debug for GraphMerger
Source§impl Default for GraphMerger
impl Default for GraphMerger
Source§fn default() -> GraphMerger
fn default() -> GraphMerger
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GraphMerger
impl RefUnwindSafe for GraphMerger
impl Send for GraphMerger
impl Sync for GraphMerger
impl Unpin for GraphMerger
impl UnsafeUnpin for GraphMerger
impl UnwindSafe for GraphMerger
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more