Package org.openrdf.sail.rdbms.evaluation

Examples of org.openrdf.sail.rdbms.evaluation.SqlQueryBuilder.filter()


        .append(
            "CASE WHEN MIN(u.value) IS NOT NULL THEN MIN(u.value) ELSE MIN(b.value) END");
    SqlJoinBuilder join = query.from(tableName, "t");
    join.leftjoin(bnodes.getName(), "b").on("id", "t.ctx");
    join.leftjoin(uris.getShortTableName(), "u").on("id", "t.ctx");
    SqlBracketBuilder open = query.filter().and().open();
    open.column("u", "value").isNotNull();
    open.or();
    open.column("b", "value").isNotNull();
    open.close();
    query.groupBy("t.ctx");
View Full Code Here


    join.leftjoin(literals.getLabelTable().getName(), "ol").on("id", "t.obj");
    join.leftjoin(literals.getLongLabelTable().getName(), "oll").on("id", "t.obj");
    join.leftjoin(literals.getLanguageTable().getName(), "og").on("id", "t.obj");
    join.leftjoin(literals.getDatatypeTable().getName(), "od").on("id", "t.obj");
    if (ctxIds != null) {
      query.filter().and().columnIn("t", "ctx", ctxIds);
    }
    if (subjId != null) {
      query.filter().and().columnEquals("t", "subj", subjId);
    }
    if (pred != null) {
View Full Code Here

    join.leftjoin(literals.getDatatypeTable().getName(), "od").on("id", "t.obj");
    if (ctxIds != null) {
      query.filter().and().columnIn("t", "ctx", ctxIds);
    }
    if (subjId != null) {
      query.filter().and().columnEquals("t", "subj", subjId);
    }
    if (pred != null) {
      Number id = vf.getInternalId(pred);
      query.filter().and().columnEquals("pu", "id", id);
      if (statements.isPredColumnPresent(id)) {
View Full Code Here

    if (subjId != null) {
      query.filter().and().columnEquals("t", "subj", subjId);
    }
    if (pred != null) {
      Number id = vf.getInternalId(pred);
      query.filter().and().columnEquals("pu", "id", id);
      if (statements.isPredColumnPresent(id)) {
        query.filter().and().columnEquals("t", "pred", id);
      }
    }
    if (objId != null) {
View Full Code Here

    }
    if (pred != null) {
      Number id = vf.getInternalId(pred);
      query.filter().and().columnEquals("pu", "id", id);
      if (statements.isPredColumnPresent(id)) {
        query.filter().and().columnEquals("t", "pred", id);
      }
    }
    if (objId != null) {
      query.filter().and().columnEquals("t", "obj", objId);
    }
View Full Code Here

      if (statements.isPredColumnPresent(id)) {
        query.filter().and().columnEquals("t", "pred", id);
      }
    }
    if (objId != null) {
      query.filter().and().columnEquals("t", "obj", objId);
    }
    if (!includeInferred) {
      query.filter().and().columnEquals("t", "expl", new Boolean(true));
    }
    return query;
View Full Code Here

    }
    if (objId != null) {
      query.filter().and().columnEquals("t", "obj", objId);
    }
    if (!includeInferred) {
      query.filter().and().columnEquals("t", "expl", new Boolean(true));
    }
    return query;
  }

  private String buildWhere(StringBuilder sb, RdbmsResource subj,
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.