pub struct RdfGraphQLMapper { /* private fields */ }Expand description
Maps RDF data to GraphQL types and translates GraphQL queries to SPARQL
Implementations§
Source§impl RdfGraphQLMapper
impl RdfGraphQLMapper
pub fn new() -> Self
pub fn with_vocabulary(self, vocabulary: RdfVocabulary) -> Self
pub fn with_config(self, config: TranslationConfig) -> Self
pub fn with_optimizer(self, optimizer: Arc<QueryOptimizer>) -> Self
pub fn add_namespace(&mut self, prefix: String, uri: String)
Sourcepub async fn graphql_to_sparql(
&self,
document: &Document,
type_name: &str,
context: &QueryContext,
) -> Result<String>
pub async fn graphql_to_sparql( &self, document: &Document, type_name: &str, context: &QueryContext, ) -> Result<String>
Convert a GraphQL query to SPARQL based on RDF vocabulary mapping
Sourcepub fn rdf_to_graphql_schema(&self, vocabulary_uri: &str) -> Result<String>
pub fn rdf_to_graphql_schema(&self, vocabulary_uri: &str) -> Result<String>
Create a GraphQL schema from RDF vocabulary
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RdfGraphQLMapper
impl !RefUnwindSafe for RdfGraphQLMapper
impl !Sync for RdfGraphQLMapper
impl !UnwindSafe for RdfGraphQLMapper
impl Send for RdfGraphQLMapper
impl Unpin for RdfGraphQLMapper
impl UnsafeUnpin for RdfGraphQLMapper
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