Package org.semanticweb.owlapi.vocab

Examples of org.semanticweb.owlapi.vocab.OWL2Datatype


            @Override
            public String visit(OWLLiteralData data) throws RuntimeException {
                String styleName = "literal-icon-inset";
                OWLDatatype datatype = data.getLiteral().getDatatype();
                if (datatype.isBuiltIn()) {
                    OWL2Datatype owl2Datatype = datatype.getBuiltInDatatype();
                    if (owl2Datatype.isNumeric()) {
                        styleName = "numeric-literal-icon-inset";
                    } else if (owl2Datatype.equals(OWL2Datatype.XSD_DATE_TIME)) {
                        styleName = "date-time-icon-inset";
                    }
                }
                String datatypeName = datatype.getIRI().getFragment();
                if (datatypeName == null) {
View Full Code Here


   
    public EntityData getEntityDataFromLexicalValue(String lexicalValue) {
        if(lexicalValue == null) {
            throw new NullPointerException("lexicalValue must not be null");
        }
        OWL2Datatype datatype = OWL2Datatype.RDF_PLAIN_LITERAL;
        if(!lexicalValue.isEmpty()) {
            if(isInteger(lexicalValue)) {
                datatype = OWL2Datatype.XSD_INTEGER;
            }
            else if(isDecimal(lexicalValue)) {
View Full Code Here

        OWLLiteral literal = consumer.getLiteralObject(mainNode, predicate, false);
        if (literal == null) {
            return false;
        }
        OWLDatatype datatype = literal.getDatatype();
        OWL2Datatype nni = OWL2Datatype.XSD_NON_NEGATIVE_INTEGER;
        return datatype.getIRI().equals(nni.getIRI()) && nni.isInLexicalSpace(literal.getLiteral());
    }
View Full Code Here

        OWLLiteral literal = consumer.getLiteralObject(mainNode, predicate, false);
        if(literal == null) {
            return false;
        }
        OWLDatatype datatype = literal.getDatatype();
        OWL2Datatype nni = OWL2Datatype.XSD_NON_NEGATIVE_INTEGER;
        return datatype.getIRI().equals(nni.getIRI()) && nni.isInLexicalSpace(literal.getLiteral());
    }
View Full Code Here

TOP

Related Classes of org.semanticweb.owlapi.vocab.OWL2Datatype

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.