Examples of condition()


Examples of de.fuberlin.wiwiss.d2rq.algebra.Relation.condition()

  public void testFindMatch() {
    NodeRelation nodeRel = translate1("?x rdf:type ex:Class1", "engine/type-bridge.n3");
    Relation r = nodeRel.baseRelation();
    assertEquals(Collections.singleton(table1), r.tables());
    assertEquals(Collections.singleton(table1id), r.projections());
    assertEquals(Expression.TRUE, r.condition());
    assertEquals(AliasMap.NO_ALIASES, r.aliases());
    assertEquals(Collections.singleton(x), nodeRel.variables());
    assertEquals("URI(Pattern(http://example.org/res@@table1.id@@))",
        nodeRel.nodeMaker(x).toString());
  }
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.algebra.Relation.condition()

 
  public void testConstraintInTripleMatch() {
    NodeRelation nodeRel = translate1("?x rdf:type ?x", "engine/object-uricolumn.n3");
    Relation r = nodeRel.baseRelation();
    assertEquals(Collections.singleton(table1), r.tables());
    assertTrue(r.condition() instanceof Equality)// Too lazy to check both sides
    assertEquals(AliasMap.NO_ALIASES, r.aliases());
    assertEquals(Collections.singleton(x), nodeRel.variables());
  }

  public void testReturnMultipleMatchesForSingleTriplePattern() {
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.algebra.Relation.condition()

    NodeRelation nodeRel = translate1(
        "ex:res1 rdf:type ex:Class1",
        "engine/simple.n3");
    Relation r = nodeRel.baseRelation();
    assertEquals(Collections.EMPTY_SET, r.projections());
    assertEquals(Equality.createAttributeValue(table1id, "1"), r.condition());
  }
 
  public void testAskTwoTriplePatternsNoMatch() {
    assertNull(translate1(
        "ex:res1 rdf:type ex:Class1 . ex:res1 rdf:type ex:Class2",
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.algebra.Relation.condition()

            "AttributeExpr(@@T1_table1.id@@), " +
            "Constant(1@T1_table1.id)), " +
        "Equality(" +
            "AttributeExpr(@@T2_table1.id@@), " +
            "Constant(1@T2_table1.id)))",
        r.condition().toString());
  }
 
  public void testTwoTriplePatternsWithJoinMatch() {
    NodeRelation nodeRel = translate1(
        "?x rdf:type ex:Class1 . ?x ex:foo ?foo",
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.algebra.Relation.condition()

        nodeRel.nodeMaker(foo).toString());
    assertEquals("URI(Pattern(http://example.org/res@@T1_table1.id@@))",
        nodeRel.nodeMaker(x).toString());
    Relation r = nodeRel.baseRelation();
    assertEquals(Equality.createAttributeEquality(t1table1id, t2table1id),
        r.condition());
  }

  private NodeRelation translate1(String pattern, String mappingFile) {
    return translate1(triplesToList(pattern), mappingFile);
  }
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.engine.BindingMaker.condition()

    assertEquals(2, group.baseRelation().projections().size());
    assertEquals(Expression.TRUE, group.baseRelation().condition());
    Iterator<BindingMaker> it = group.bindingMakers().iterator();
    BindingMaker bm3 = it.next();
    BindingMaker bm4 = it.next();
    assertTrue((bm3.condition() == null && bm4.condition() != null)
        || (bm3.condition() != null && bm4.condition() == null));
  }
}
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.engine.BindingMaker.condition()

    assertEquals(Expression.TRUE, group.baseRelation().condition());
    Iterator<BindingMaker> it = group.bindingMakers().iterator();
    BindingMaker bm3 = it.next();
    BindingMaker bm4 = it.next();
    assertTrue((bm3.condition() == null && bm4.condition() != null)
        || (bm3.condition() != null && bm4.condition() == null));
  }
}
View Full Code Here

Examples of javax.faces.flow.builder.NavigationCaseBuilder.condition()

                    if (null != ifList && 1 < ifList.getLength()) {
                        throw new XPathExpressionException("Within <navigation-case>, must have zero or one <if>");
                    }
                    if (null != ifList && 1 == ifList.getLength()) {
                        String ifStr = ifList.item(0).getNodeValue().trim();
                        ncb.condition(ifStr);
                    }

                }
               
                {
View Full Code Here

Examples of net.sf.toxicity.XPathRef.condition()

                log.error(e.getMessage(), e);
                ret = false;
            }
           
            String expr = bind.xpath();
            String cond = bind.condition();
            boolean optional = bind.optional();
           
            try {
                // make ns available
                if(!bind.nsUri().equals("")) {
View Full Code Here

Examples of org.apache.jackrabbit.oak.plugins.observation.filter.FilterBuilder.condition()

            throws ExecutionException, InterruptedException, RepositoryException {
        assumeTrue(observationManager instanceof ObservationManagerImpl);
        ObservationManagerImpl oManager = (ObservationManagerImpl) observationManager;
        ExpectationListener listener = new ExpectationListener();
        FilterBuilder builder = new FilterBuilder();
        builder.condition(builder.any(
                builder.path(TEST_PATH + "/a/b"),
                builder.path(TEST_PATH + "/x/y")));
        oManager.addEventListener(listener, builder.build());

        Node testNode = getNode(TEST_PATH);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.