Package com.hp.jena.datatypes

Examples of com.hp.jena.datatypes.RDFDatatype


    Node v = eval( item, val ), t = eval( item, type );
    if (!t.isIRI()) return false;
    if (v.isBlank()) return true;
    if (v.isLiteral())
        {
        RDFDatatype dtype = TypeMapper.getInstance().getSafeTypeByName(t.getIRI().asString() );
        RDFDatatype vType = v.getLiteralDatatype();
        return dtype != null && dtype.isValidLiteral( t.asLiteral() );
        }
    else
        return false;
    }
View Full Code Here

TOP

Related Classes of com.hp.jena.datatypes.RDFDatatype

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.