Package org.apache.clerezza.rdf.core.sparql.query

Examples of org.apache.clerezza.rdf.core.sparql.query.UnaryOperation


      appendExpression(s, bo.getLhsOperand());
      s.append(") ").append(bo.getOperatorString()).append(" (");
      appendExpression(s, bo.getRhsOperand());
      s.append(")");
    } else if (e instanceof UnaryOperation) {
      UnaryOperation uo = (UnaryOperation) e;
      s.append(uo.getOperatorString()).append(" (");
      appendExpression(s, uo.getOperand());
      s.append(")");
    } else if (e instanceof BuiltInCall) {
      BuiltInCall b = (BuiltInCall) e;
      appendCall(s, b.getName(), b.getArguements());
    } else if (e instanceof FunctionCall) {
View Full Code Here


    GroupGraphPattern ggp = selectQuery.getQueryPattern();
    List<Expression> constraints = ggp.getFilter();
    Assert.assertTrue(UnaryOperation.class.isAssignableFrom(constraints
        .get(0).getClass()));
    UnaryOperation uop = (UnaryOperation) constraints.get(0);
    Assert.assertTrue(uop.getOperatorString().equals("!"));
    Assert.assertTrue(BuiltInCall.class.isAssignableFrom(uop.getOperand()
        .getClass()));
    BuiltInCall bic = (BuiltInCall) uop.getOperand();
    Assert.assertTrue(bic.getName().equals("BOUND"));
    Variable var3 = new Variable(variable3);
    Assert.assertTrue(bic.getArguements().get(0).equals(var3));

    GraphPattern gp = (GraphPattern) ggp.getGraphPatterns().toArray()[0];
View Full Code Here

        List<Expression> argumentExpressions = new ArrayList<Expression>();
        argumentExpressions.add((Expression) argument1.getClerezzaObject());

        BuiltInCall builtInCall = new BuiltInCall("BOUND", argumentExpressions);

        UnaryOperation unaryOperation = new UnaryOperation("!", builtInCall);

        return (T) new ClerezzaSparqlObject(unaryOperation);

    }
View Full Code Here

            appendExpression(s, bo.getLhsOperand());
            s.append(") ").append(bo.getOperatorString()).append(" (");
            appendExpression(s, bo.getRhsOperand());
            s.append(")");
        } else if (e instanceof UnaryOperation) {
            UnaryOperation uo = (UnaryOperation) e;
            s.append(uo.getOperatorString()).append(" (");
            appendExpression(s, uo.getOperand());
            s.append(")");
        } else if (e instanceof BuiltInCall) {
            BuiltInCall b = (BuiltInCall) e;
            appendCall(s, b.getName(), b.getArguements());
        } else if (e instanceof FunctionCall) {
View Full Code Here

        GroupGraphPattern ggp = selectQuery.getQueryPattern();
        List<Expression> constraints = ggp.getFilter();
        Assert.assertTrue(UnaryOperation.class.isAssignableFrom(constraints
                .get(0).getClass()));
        UnaryOperation uop = (UnaryOperation) constraints.get(0);
        Assert.assertTrue(uop.getOperatorString().equals("!"));
        Assert.assertTrue(BuiltInCall.class.isAssignableFrom(uop.getOperand()
                .getClass()));
        BuiltInCall bic = (BuiltInCall) uop.getOperand();
        Assert.assertTrue(bic.getName().equals("BOUND"));
        Variable var3 = new Variable(variable3);
        Assert.assertTrue(bic.getArguements().get(0).equals(var3));

        GraphPattern gp = (GraphPattern) ggp.getGraphPatterns().toArray()[0];
View Full Code Here

TOP

Related Classes of org.apache.clerezza.rdf.core.sparql.query.UnaryOperation

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.