Package org.semanticweb.owlapi.model

Examples of org.semanticweb.owlapi.model.OWLObject


    @Test
    public void shouldBuildDataIntersectionOf() {
        // given
        BuilderDataIntersectionOf builder = new BuilderDataIntersectionOf(df)
                .withItem(d).withItem(df.getFloatOWLDatatype());
        OWLObject expected = df.getOWLDataIntersectionOf(d,
                df.getFloatOWLDatatype());
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }
View Full Code Here


    @Test
    public void shouldBuildDataMaxCardinality() {
        // given
        BuilderDataMaxCardinality builder = new BuilderDataMaxCardinality(df)
                .withCardinality(1).withProperty(dp).withRange(d);
        OWLObject expected = df.getOWLDataMaxCardinality(1, dp, d);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }
View Full Code Here

    @Test
    public void shouldBuildDataMinCardinality() {
        // given
        BuilderDataMinCardinality builder = new BuilderDataMinCardinality(df)
                .withCardinality(1).withProperty(dp).withRange(d);
        OWLObject expected = df.getOWLDataMinCardinality(1, dp, d);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }
View Full Code Here

    @Test
    public void shouldBuildDataOneOf() {
        // given
        BuilderDataOneOf builder = new BuilderDataOneOf(df).withItem(lit);
        OWLObject expected = df.getOWLDataOneOf(lit);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }
View Full Code Here

    @Test
    public void shouldBuildDataProperty() {
        // given
        BuilderDataProperty builder = new BuilderDataProperty(df).withIRI(iri);
        OWLObject expected = df.getOWLDataProperty(iri);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }
View Full Code Here

    public void shouldBuildDataPropertyAssertion() {
        // given
        BuilderDataPropertyAssertion builder = new BuilderDataPropertyAssertion(
                df).withProperty(dp).withSubject(i).withValue(lit)
                .withAnnotations(annotations);
        OWLObject expected = df.getOWLDataPropertyAssertionAxiom(dp, i, lit,
                annotations);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }
View Full Code Here

    @Test
    public void shouldBuildDataPropertyDomain() {
        // given
        BuilderDataPropertyDomain builder = new BuilderDataPropertyDomain(df)
                .withProperty(dp).withDomain(ce).withAnnotations(annotations);
        OWLObject expected = df.getOWLDataPropertyDomainAxiom(dp, ce,
                annotations);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }
View Full Code Here

    @Test
    public void shouldBuildDataPropertyRange() {
        // given
        BuilderDataPropertyRange builder = new BuilderDataPropertyRange(df)
                .withProperty(dp).withRange(d).withAnnotations(annotations);
        OWLObject expected = df
                .getOWLDataPropertyRangeAxiom(dp, d, annotations);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }
View Full Code Here

    @Test
    public void shouldBuildDataSomeValuesFrom() {
        // given
        BuilderDataSomeValuesFrom builder = new BuilderDataSomeValuesFrom(df)
                .withProperty(dp).withRange(d);
        OWLObject expected = df.getOWLDataSomeValuesFrom(dp, d);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }
View Full Code Here

    @Test
    public void shouldBuildDatatype() {
        // given
        BuilderDatatype builder = new BuilderDatatype(df).withIRI(iri)
                .withAnnotations(annotations);
        OWLObject expected = df.getOWLDatatype(iri);
        // when
        OWLObject built = builder.buildObject();
        // then
        assertEquals(expected, built);
    }
View Full Code Here

TOP

Related Classes of org.semanticweb.owlapi.model.OWLObject

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.