Skip to main content

Crate oxirs_wasm

Crate oxirs_wasm 

Source
Expand description

§OxiRS WASM

Version

Status: Development Release (v0.2.2)

WebAssembly bindings for OxiRS - Run RDF/SPARQL in the browser.

§Features

  • Streaming RDF Parser: Turtle, N-Triples, N-Quads (incremental chunk processing)
  • Compact Triple Store: Dictionary-based, 12 bytes per triple, dual sorted indexes
  • JS/TS API: Clean wasm_bindgen surface via OxiRSStore and WasmSparqlStore
  • SPARQL Queries: SELECT, ASK, CONSTRUCT (triple-pattern based)
  • SPARQL UPDATE: INSERT DATA, DELETE DATA, INSERT/DELETE WHERE, CLEAR, DROP
  • SPARQL Enhancements: OPTIONAL, UNION, FILTER expressions
  • RDFS Inference: subClassOf/subPropertyOf transitivity, domain/range typing
  • Named Graphs: Multi-graph storage with GRAPH pattern queries
  • Memory Efficient: Optimized for WASM’s 4 GB address space limit

§Example (JavaScript)

import init, { OxiRSStore } from 'oxirs-wasm';

await init();

const store = new OxiRSStore();
await store.loadTurtle(`
    @prefix : <http://example.org/> .
    :alice :knows :bob .
    :bob :name "Bob" .
`);

const results = store.query('SELECT ?name WHERE { ?person :name ?name }');
console.log(results);

Re-exports§

pub use api::WasmSparqlStore;
pub use error::WasmError;
pub use store::OxiRSStore;

Modules§

api
Public API layer for OxiRS WASM
error
WASM error types
event_dispatcher
Event Dispatcher
geojson_support
GeoJSON serialization / deserialization for SPARQL geo results.
graph_visualizer
RDF Graph Visualization
inference
RDFS inference for OxiRS WASM
named_graph
Named graph support for OxiRS WASM
namespace_manager
Namespace Manager
parser
RDF parsers for OxiRS WASM
prefix_manager
Namespace/prefix management for RDF serializers.
query
SPARQL query execution for WASM
query_validator
SPARQL Query Validator
results_csv
SPARQL Results CSV/TSV Serializer
sparql_executor
WASM SPARQL Query Executor
sparql_formatter
SPARQL Query Formatter
storage_adapter
Storage Adapter
store
RDF triple store implementations for OxiRS WASM
streaming_parser
Streaming / Incremental RDF Document Parser
triple_store
In-Memory Triple Store for WASM
update
SPARQL UPDATE operations for OxiRS WASM
wasm_bridge
WASM/JS interop bridge type conversions.

Structs§

QueryResult
Query result for JavaScript
Triple
RDF Triple representation for JavaScript

Functions§

init
log
Log a message to the browser console
version
Get OxiRS WASM version