owlish
This library provides OWL2 datastructures that allow you to build and work with ontologies.
The OWL2 model is based on functional style syntax. E.g. the function
ClassAssertion( :Person :Mary )
Is represented as a similar tuple struct
, pub IndividualIRI);
ClassConstructor
Usage
owlish provides two APIs:
- A low level representation of OWL based on functional syntax
- This is exported in
owlish::owl::*
- This is exported in
- A conceptional api that concatenates OWL data for relevant types.
- TBD
Usage (Node.js)
To initialize the module in a Node.js environment, it is currently recommend to load the WASM module via the fs
API and
pass it explicitly to the initialization function.
Example:
import path from 'path';
import from 'fs/promises';
import from 'url';
// The next two lines are only required if running the Node script as an ESM module
const __filename = ;
const __dirname = path.;
// Load .wasm file from the package
const owlishWasm = await ;
// Initialize module, after executing this line, all functions from `owlish` can be used like normal.
await
Dev stuff
Build:
cargo build
Test:
cargo test
Run benchmark tests:
cargo bench
Commits and Releases
This crate uses convenentional commits to create automated releases whenever the main branch is updated. In addition the CHANGELOG.md is automatically generated.