Expand description
§OxiRS WASM
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_bindgensurface viaOxiRSStoreandWasmSparqlStore - 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§
- Query
Result - Query result for JavaScript
- Triple
- RDF Triple representation for JavaScript