Package org.semanticweb.owlapi.model

Examples of org.semanticweb.owlapi.model.OWLAnnotationProperty


        assertSame(call1, call2);
    }

    @Test
    public void getRDFSComment() {
        OWLAnnotationProperty call1 = dataFactory.getRDFSComment();
        OWLAnnotationProperty call2 = dataFactory.getRDFSComment();
        assertSame(call1, call2);
    }
View Full Code Here


        assertSame(call1, call2);
    }

    @Test
    public void getRDFSSeeAlso() {
        OWLAnnotationProperty call1 = dataFactory.getRDFSSeeAlso();
        OWLAnnotationProperty call2 = dataFactory.getRDFSSeeAlso();
        assertSame(call1, call2);
    }
View Full Code Here

        assertSame(call1, call2);
    }

    @Test
    public void getRDFSIsDefinedBy() {
        OWLAnnotationProperty call1 = dataFactory.getRDFSIsDefinedBy();
        OWLAnnotationProperty call2 = dataFactory.getRDFSIsDefinedBy();
        assertSame(call1, call2);
    }
View Full Code Here

        assertSame(call1, call2);
    }

    @Test
    public void getOWLVersionInfo() {
        OWLAnnotationProperty call1 = dataFactory.getOWLVersionInfo();
        OWLAnnotationProperty call2 = dataFactory.getOWLVersionInfo();
        assertSame(call1, call2);
    }
View Full Code Here

        assertSame(call1, call2);
    }

    @Test
    public void getOWLBackwardCompatibleWith() {
        OWLAnnotationProperty call1 = dataFactory
                .getOWLBackwardCompatibleWith();
        OWLAnnotationProperty call2 = dataFactory
                .getOWLBackwardCompatibleWith();
        assertSame(call1, call2);
    }
View Full Code Here

        assertSame(call1, call2);
    }

    @Test
    public void getOWLIncompatibleWith() {
        OWLAnnotationProperty call1 = dataFactory.getOWLIncompatibleWith();
        OWLAnnotationProperty call2 = dataFactory.getOWLIncompatibleWith();
        assertSame(call1, call2);
    }
View Full Code Here

        assertSame(call1, call2);
    }

    @Test
    public void getOWLDeprecated() {
        OWLAnnotationProperty call1 = dataFactory.getOWLDeprecated();
        OWLAnnotationProperty call2 = dataFactory.getOWLDeprecated();
        assertSame(call1, call2);
    }
View Full Code Here

    @Nonnull
    @Override
    protected Set<? extends OWLAxiom> createAxioms() {
        Set<OWLAxiom> axioms = new HashSet<>();
        IRI annoPropIRI = IRI("http://owlapi.sourceforge.net/ontology#annoProp");
        OWLAnnotationProperty property = AnnotationProperty(annoPropIRI);
        IRI subject = IRI("http://owlapi.sourceforge.net/ontology#subject");
        axioms.add(Declaration(NamedIndividual(subject)));
        OWLAnonymousIndividual individual1 = AnonymousIndividual();
        OWLAnonymousIndividual individual2 = AnonymousIndividual();
        OWLAnonymousIndividual individual3 = AnonymousIndividual();
View Full Code Here

@SuppressWarnings("javadoc")
public class MissingDeclarationRoundTripTestCase extends TestBase {

    @Test
    public void shouldFindOneAxiom() throws Exception {
        OWLAnnotationProperty p = AnnotationProperty(IRI("http://test.org/MissingDeclaration.owl#p"));
        OWLOntology ontology = createOntology(p);
        assertTrue(ontology.containsAnnotationPropertyInSignature(p.getIRI(),
                EXCLUDED));
        assertEquals(1, ontology.getAxiomCount());
        RDFXMLDocumentFormat format = new RDFXMLDocumentFormat();
        format.setAddMissingTypes(false);
        ontology = loadOntologyStrict(saveOntology(ontology, format));
        assertFalse(ontology.containsAnnotationPropertyInSignature(p.getIRI(),
                EXCLUDED));
        assertEquals(0, ontology.getAxiomCount());
    }
View Full Code Here

        AbstractAxiomsRoundTrippingTestCase {

    @Nonnull
    @Override
    protected Set<? extends OWLAxiom> createAxioms() {
        OWLAnnotationProperty prop = RDFSComment();
        OWLAxiom ax = df.getOWLAnnotationPropertyRangeAxiom(prop,
                IRI("http://ont.com#A"));
        return singleton(ax);
    }
View Full Code Here

TOP

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

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.