uor-foundation
The complete UOR Foundation ontology encoded as typed Rust data structures, with serializers for JSON-LD, Turtle, and N-Triples.
Contents
- 14 namespaces in dependency order
- 98 OWL classes
- 167 OWL properties (166 namespace-level + 1 global annotation)
- 18 named individuals
- Three serialization formats: JSON-LD 1.1, Turtle 1.1, N-Triples
Quick start
use ;
let ontology = full;
assert_eq!;
assert_eq!;
// Look up a class by IRI
let address = ontology.find_class;
assert!;
// Look up a namespace by prefix
let schema = ontology.find_namespace;
assert_eq!;
// Serialize to JSON-LD (requires `serializers` feature, enabled by default)
let json_ld = to_json_ld;
// Serialize to Turtle
let turtle = to_turtle;
Feature flags
| Feature | Default | Description |
|---|---|---|
serde |
yes | Adds Serialize derive to all model types |
serializers |
yes | JSON-LD, Turtle, and N-Triples serializers (pulls in serde_json) |
For types only (no extra dependencies):
= { = "1.1", = false }
License
Apache-2.0 — see LICENSE.