owlish 0.28.0

OWL 2 implementation with wasm support and turtle parsing
Documentation
use crate::owl::{Annotation, ObjectPropertyIRI};

#[derive(Debug, Clone, Eq, PartialEq, serde::Deserialize, serde::Serialize)]
pub struct DisjointObjectProperties {
    #[serde(rename = "objectPropertyIRI1")]
    pub object_property_iri_1: ObjectPropertyIRI,
    #[serde(rename = "objectPropertyIRI2")]
    pub object_property_iri_2: ObjectPropertyIRI,
    #[serde(rename = "annotations")]
    pub annotations: Vec<Annotation>,
}

impl DisjointObjectProperties {
    pub fn new(
        object_property_iri_1: ObjectPropertyIRI,
        object_property_iri_2: ObjectPropertyIRI,
        annotations: Vec<Annotation>,
    ) -> Self {
        Self {
            object_property_iri_1,
            object_property_iri_2,
            annotations,
        }
    }
}

#[cfg(feature = "wasm")]
mod wasm {
    use wasm_bindgen::prelude::wasm_bindgen;

    #[wasm_bindgen(typescript_custom_section)]
    const WASM_API: &'static str = r#"
export type DisjointObjectProperties = {
    objectPropertyIRI1: IRI,
    objectPropertyIRI2: IRI,
    annotations: Array<Annotation>,
};
"#;
}