pub fn query(&self, s: &str) -> crate::Result<Query> {
        let query = self.inner.new_query(s, false)?;
        check_messages!(self.inner);
        let query = Query::new(query, self.host.clone());
        Ok(query)
    }
/// Query the knowledge base. This can be an allow query or any other polar expression.
/// # Examples
/// ```ignore
/// oso.query("x = 1 or x = 2");
/// ```
Query the knowledge base. This can be an allow query or any other polar expression.
Query the knowledge base . This can be an allow query or any other polar expression .
pub fn query(&self, s: &str) -> crate::Result<Query> {
        let query = self.inner.new_query(s, false)?;
        check_messages!(self.inner);
        let query = Query::new(query, self.host.clone());
        Ok(query)
    }
pub fn query ( & self , s : & str ) -> crate :: Result < Query > { let query = self . inner . new_query ( s , false ) ? ; check_messages ! ( self inner ) ; let query = Query :: new ( query , self . host . clone ( ) ) ; Ok ( query ) }
Query the knowledge base.
Query the knowledge base .
&self
s
&str
examples
None