Skip to main content

EndpointExecutor

Trait EndpointExecutor 

Source
pub trait EndpointExecutor: Send + Sync {
    // Required methods
    fn construct<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        endpoint: &'life1 EndpointConfig,
        sparql: &'life2 str,
        timeout: Duration,
    ) -> Pin<Box<dyn Future<Output = GraphRAGResult<Vec<Triple>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn select<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        endpoint: &'life1 EndpointConfig,
        sparql: &'life2 str,
        timeout: Duration,
    ) -> Pin<Box<dyn Future<Output = GraphRAGResult<Vec<HashMap<String, String>>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
}
Expand description

Trait for executing SPARQL CONSTRUCT queries against a remote endpoint

Required Methods§

Source

fn construct<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, endpoint: &'life1 EndpointConfig, sparql: &'life2 str, timeout: Duration, ) -> Pin<Box<dyn Future<Output = GraphRAGResult<Vec<Triple>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Execute a SPARQL CONSTRUCT query and return RDF triples

Source

fn select<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, endpoint: &'life1 EndpointConfig, sparql: &'life2 str, timeout: Duration, ) -> Pin<Box<dyn Future<Output = GraphRAGResult<Vec<HashMap<String, String>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Execute a SPARQL SELECT query and return rows (variable → value maps)

Implementors§