Package uk.ac.manchester.cs.owl.owlapi

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


    @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);
        OWLLiteral litIntImpl = new OWLLiteralImplInteger(3, datatype);
        assertEquals(litNoComp.getLiteral(), litIntImpl.getLiteral());
        Set<OWLLiteral> lncset = new HashSet<>();
        lncset.add(litNoComp);
View Full Code Here


    @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);
        OWLLiteral litIntImpl = new OWLLiteralImplDouble(3.0D, datatype);
        assertEquals(litNoComp.getLiteral(), litIntImpl.getLiteral());
        Set<OWLLiteral> lncset = new HashSet<>();
        lncset.add(litNoComp);
View Full Code Here

    @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);
        OWLLiteral litIntImpl = new OWLLiteralImplFloat(3.0F, datatype);
        assertEquals(litNoComp.getLiteral(), litIntImpl.getLiteral());
        Set<OWLLiteral> lncset = new HashSet<>();
        lncset.add(litNoComp);
View Full Code Here

    @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);
        OWLLiteral litIntImpl = new OWLLiteralImplBoolean(true, datatype);
        assertEquals(litNoComp.getLiteral(), litIntImpl.getLiteral());
        Set<OWLLiteral> lncset = new HashSet<>();
        lncset.add(litNoComp);
View Full Code Here

TOP

Related Classes of uk.ac.manchester.cs.owl.owlapi.OWLLiteralImplNoCompression

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.