Core and session state

Create a Rudof instance, change its configuration and reset its state.

#![allow(unused)]
fn main() {
use rudof_lib::{Rudof, RudofConfig};

// Initialize Rudof with default config
let mut rudof = Rudof::new(RudofConfig::default());

// Get the current version
let version = rudof.version().execute();
println!("Rudof version: {}", version);

// Update the configuration
rudof.update_config(RudofConfig::default());

// Reset all internal state
rudof.reset_all().execute();
}

Session state

The Rudof struct has getters for the loaded state and the last results:

  • Loaded state: shex_schema, shacl_shapes, service_description, pg_schema, config, shex_schema_shapes_count.
  • Results: query_results, shex_validation_results, shacl_validation_results, pgschema_validation_results.
  • Flags and counters: has_data, has_sparql_query, endpoint_request_count.

See the API reference for the full list.