Examples of OWLDatatypeImpl


Examples of uk.ac.manchester.cs.owl.owlapi.OWLDatatypeImpl

@SuppressWarnings("javadoc")
public class HashCodeTestCase {

    @Test
    public void testSetContainsInt() {
        OWLDatatypeImpl datatype = new OWLDatatypeImpl(
                OWL2Datatype.XSD_INTEGER.getIRI());
        OWLLiteral litNoComp = new OWLLiteralImplNoCompression("3", null,
                datatype);
        OWLLiteral litNoComp2 = new OWLLiteralImplNoCompression("3", null,
                datatype);
View Full Code Here

Examples of uk.ac.manchester.cs.owl.owlapi.OWLDatatypeImpl

        assertTrue(lncset.contains(litIntImpl));
    }

    @Test
    public void testSetContainsDouble() {
        OWLDatatypeImpl datatype = new OWLDatatypeImpl(
                OWL2Datatype.XSD_DOUBLE.getIRI());
        OWLLiteral litNoComp = new OWLLiteralImplNoCompression("3.0", null,
                datatype);
        OWLLiteral litNoComp2 = new OWLLiteralImplNoCompression("3.0", null,
                datatype);
View Full Code Here

Examples of uk.ac.manchester.cs.owl.owlapi.OWLDatatypeImpl

        assertTrue(lncset.contains(litIntImpl));
    }

    @Test
    public void testSetContainsFloat() {
        OWLDatatypeImpl datatype = new OWLDatatypeImpl(
                OWL2Datatype.XSD_FLOAT.getIRI());
        OWLLiteral litNoComp = new OWLLiteralImplNoCompression("3.0", null,
                datatype);
        OWLLiteral litNoComp2 = new OWLLiteralImplNoCompression("3.0", null,
                datatype);
View Full Code Here

Examples of uk.ac.manchester.cs.owl.owlapi.OWLDatatypeImpl

        assertTrue(lncset.contains(litIntImpl));
    }

    @Test
    public void testSetContainsBoolean() {
        OWLDatatypeImpl datatype = new OWLDatatypeImpl(
                OWL2Datatype.XSD_BOOLEAN.getIRI());
        OWLLiteral litNoComp = new OWLLiteralImplNoCompression("true", null,
                datatype);
        OWLLiteral litNoComp2 = new OWLLiteralImplNoCompression("true", null,
                datatype);
View Full Code Here

Examples of uk.ac.manchester.cs.owl.owlapi.OWLDatatypeImpl

    @Test
    public void contains() {
        IRI iri = OWL2Datatype.XSD_BYTE.getIRI();
        Set<OWLDatatype> datatypes = new HashSet<>();
        OWLDatatypeImpl dtImpl = new OWLDatatypeImpl(iri);
        OWLDatatype dt2Impl = OWL2Datatype.XSD_BYTE.getDatatype(df);
        assertEquals(dtImpl, dt2Impl);
        datatypes.add(dt2Impl);
        assertTrue(datatypes.contains(dtImpl));
        assertEquals(dt2Impl.hashCode(), dtImpl.hashCode());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.