pub struct QueryBuilder { /* private fields */ }Expand description
GraphRAG SPARQL query builder
Implementations§
Source§impl QueryBuilder
impl QueryBuilder
pub fn new() -> Self
pub fn prefix(self, prefix: &str, uri: &str) -> Self
pub fn select(self, vars: &[&str]) -> Self
pub fn triple(self, subject: &str, predicate: &str, object: &str) -> Self
pub fn graphrag_query(self, text: &str, result_var: &str) -> Self
pub fn graphrag_similar( self, entity: &str, threshold: f32, result_var: &str, ) -> Self
pub fn limit(self, limit: usize) -> Self
pub fn offset(self, offset: usize) -> Self
pub fn build(self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueryBuilder
impl RefUnwindSafe for QueryBuilder
impl Send for QueryBuilder
impl Sync for QueryBuilder
impl Unpin for QueryBuilder
impl UnwindSafe for QueryBuilder
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