owlish 0.28.0

OWL 2 implementation with wasm support and turtle parsing
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use owlish::api::Ontology;

#[test]
fn medium() {
    env_logger::try_init().ok();
    let turtle = include_str!("../benches/medium.ttl");

    harriet::TurtleDocument::parse_full(turtle)
        .map_err(|e| format!("{}...", &format!("{:?}", e)[..200]))
        .expect("Could not parse with harriet");

    let o = Ontology::parse(turtle, Default::default()).unwrap();

    assert_eq!(o.declarations().len(), 1914);
    // TODO: not sure how this "correct number was originally determined
    // assert_eq!(o.axioms().len(), 806);
}