pub struct GraphToRdfMapper { /* private fields */ }Expand description
Property Graph → RDF mapper
Implementations§
Source§impl GraphToRdfMapper
impl GraphToRdfMapper
Sourcepub fn with_config(config: MappingConfig) -> Self
pub fn with_config(config: MappingConfig) -> Self
Create a mapper with custom configuration
Sourcepub fn map_node(&self, _node: &Node) -> MappingResult<Vec<Triple>>
pub fn map_node(&self, _node: &Node) -> MappingResult<Vec<Triple>>
Map a node to RDF triples
TODO: Full implementation
- Convert node ID to IRI
- Add rdf:type triples for labels
- Add property triples
Sourcepub fn map_edge(&self, _edge: &Edge) -> MappingResult<Vec<Triple>>
pub fn map_edge(&self, _edge: &Edge) -> MappingResult<Vec<Triple>>
Map an edge to RDF triples
TODO: Full implementation
- Create triple for edge relationship
- Optionally reify edge properties
Sourcepub fn sync_to_rdf(
&self,
_graph: &GraphStore,
_rdf: &mut RdfStore,
) -> MappingResult<()>
pub fn sync_to_rdf( &self, _graph: &GraphStore, _rdf: &mut RdfStore, ) -> MappingResult<()>
Synchronize property graph to RDF store
TODO: Full implementation
Auto Trait Implementations§
impl Freeze for GraphToRdfMapper
impl RefUnwindSafe for GraphToRdfMapper
impl Send for GraphToRdfMapper
impl Sync for GraphToRdfMapper
impl Unpin for GraphToRdfMapper
impl UnsafeUnpin for GraphToRdfMapper
impl UnwindSafe for GraphToRdfMapper
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
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> 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