Package org.openrdf.query.parser.serql.ast

Examples of org.openrdf.query.parser.serql.ast.ASTValueExpr


    throws VisitorException
  {
    URI datatype = null;

    // Get datatype URI from child URI node, if present
    ASTValueExpr dtNode = litNode.getDatatypeNode();
    if (dtNode instanceof ASTURI) {
      datatype = valueFactory.createURI(((ASTURI)dtNode).getValue());
    }
    else if (dtNode != null) {
      throw new IllegalArgumentException("Unexpected datatype type: " + dtNode.getClass());
    }

    Literal literal;
    if (datatype != null) {
      literal = valueFactory.createLiteral(litNode.getLabel(), datatype);
View Full Code Here


    throws VisitorException
  {
    URI datatype = null;

    // Get datatype URI from child URI node, if present
    ASTValueExpr dtNode = litNode.getDatatypeNode();
    if (dtNode instanceof ASTURI) {
      datatype = valueFactory.createURI(((ASTURI)dtNode).getValue());
    }
    else if (dtNode != null) {
      throw new IllegalArgumentException("Unexpected datatype type: " + dtNode.getClass());
    }

    Literal literal;
    if (datatype != null) {
      literal = valueFactory.createLiteral(litNode.getLabel(), datatype);
View Full Code Here

            throw new VisitorException(
                "Use of NULL values in SeRQL queries has been deprecated, use BOUND(...) instead");
        }
      }
      else if (leftIsNull || rightIsNull) {
        ASTValueExpr valueOperand;
        if (leftIsNull) {
          valueOperand = compareNode.getRightOperand();
        }
        else {
          valueOperand = compareNode.getLeftOperand();
View Full Code Here

TOP

Related Classes of org.openrdf.query.parser.serql.ast.ASTValueExpr

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.