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

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


      s.append(")");
    } else if (e instanceof BuiltInCall) {
      BuiltInCall b = (BuiltInCall) e;
      appendCall(s, b.getName(), b.getArguements());
    } else if (e instanceof FunctionCall) {
      FunctionCall f = (FunctionCall) e;
      appendCall(s, f.getName().getUnicodeString(), f.getArguements());
    } else if (e instanceof LiteralExpression) {
      appendLiteralExpression(s, (LiteralExpression) e);
    } else if (e instanceof UriRefExpression) {
      s.append(((UriRefExpression) e).getUriRef().toString());
    }
View Full Code Here


            ConstructQuery.class);

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

        FunctionCall functionCall = new FunctionCall(new UriRef(
                "<http://www.w3.org/2005/xpath-functions#upper-case>"), argumentExpressions);

        return (T) new ClerezzaSparqlObject(functionCall);

    }
View Full Code Here

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

        FunctionCall functionCall = new FunctionCall(new UriRef(
                "<http://www.w3.org/2005/xpath-functions#ends-with>"), argumentExpressions);

        return (T) new ClerezzaSparqlObject(functionCall);

    }
View Full Code Here

            ConstructQuery.class);

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

        FunctionCall functionCall = new FunctionCall(new UriRef(
                "<http://www.w3.org/2005/xpath-functions#string-length>"), argumentExpressions);

        return (T) new ClerezzaSparqlObject(functionCall);

    }
View Full Code Here

            ConstructQuery.class);

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

        FunctionCall functionCall = new FunctionCall(new UriRef(
                "<http://www.w3.org/2005/xpath-functions#lower-case>"), argumentExpressions);

        return (T) new ClerezzaSparqlObject(functionCall);

    }
View Full Code Here

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

        FunctionCall functionCall = new FunctionCall(new UriRef(
                "<http://www.w3.org/2005/xpath-functions#concat>"), argumentExpressions);

        return (T) new ClerezzaSparqlObject(functionCall);

    }
View Full Code Here

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

        FunctionCall functionCall = new FunctionCall(new UriRef(
                "<http://www.w3.org/2005/xpath-functions#starts-with>"), argumentExpressions);

        return (T) new ClerezzaSparqlObject(functionCall);

    }
View Full Code Here

        List<Expression> argumentExpressions = new ArrayList<Expression>();
        argumentExpressions.add((Expression) clerezzaArgument.getClerezzaObject());
        argumentExpressions.add((Expression) clerezzaStart.getClerezzaObject());
        argumentExpressions.add((Expression) clerezzaLength.getClerezzaObject());

        FunctionCall functionCall = new FunctionCall(new UriRef(
                "<http://www.w3.org/2005/xpath-functions#substring>"), argumentExpressions);

        return (T) new ClerezzaSparqlObject(functionCall);

    }
View Full Code Here

            s.append(")");
        } else if (e instanceof BuiltInCall) {
            BuiltInCall b = (BuiltInCall) e;
            appendCall(s, b.getName(), b.getArguements());
        } else if (e instanceof FunctionCall) {
            FunctionCall f = (FunctionCall) e;
            appendCall(s, f.getName().getUnicodeString(), f.getArguements());
        } else if (e instanceof LiteralExpression) {
            appendLiteralExpression(s, (LiteralExpression) e);
        } else if (e instanceof UriRefExpression) {
            s.append(((UriRefExpression) e).getUriRef().toString());
        }
View Full Code Here

TOP

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

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.