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

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


    SimpleBasicGraphPattern bgp = new SimpleBasicGraphPattern(triplePatterns);
    SimpleGroupGraphPattern queryPattern = new SimpleGroupGraphPattern();
    queryPattern.addGraphPattern(bgp);
    BinaryOperation constraint = new BinaryOperation("=",
        resource, new UriRefExpression(new UriRef("http://example.org/ontology#special")));
    queryPattern.addConstraint(constraint);
    selectQuery.setQueryPattern(queryPattern);

    Assert.assertTrue(selectQuery.toString()
        .replaceAll("( |\n)+", " ").trim().equals(queryString));
View Full Code Here


        Expression argumentExpression;
        if (arg instanceof Variable) {
            argumentExpression = (Variable) arg;
        } else if (arg instanceof UriRef) {
            argumentExpression = new UriRefExpression((UriRef) arg);
        } else {
            throw new RuleAtomCallExeption(getClass());
        }

        List<Expression> expressions = new ArrayList<Expression>();
View Full Code Here

        SimpleBasicGraphPattern bgp = new SimpleBasicGraphPattern(triplePatterns);
        SimpleGroupGraphPattern queryPattern = new SimpleGroupGraphPattern();
        queryPattern.addGraphPattern(bgp);
        BinaryOperation constraint = new BinaryOperation("=",
                resource, new UriRefExpression(new UriRef("http://example.org/ontology#special")));
        queryPattern.addConstraint(constraint);
        selectQuery.setQueryPattern(queryPattern);

        Assert.assertTrue(selectQuery.toString()
                .replaceAll("( |\n)+", " ").trim().equals(queryString));
View Full Code Here

TOP

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

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.