Package de.fuberlin.wiwiss.d2rq.parser

Examples of de.fuberlin.wiwiss.d2rq.parser.RelationBuilder.addProjection()


    for (String condition: conditions) {
      result.addCondition(condition);
    }
    result.addAliases(aliases());
    for (ProjectionSpec projection: nodeMaker().projectionSpecs()) {
      result.addProjection(projection);
    }
    if (!containsDuplicates) {
      result.setIsUnique(true);
    }
    return result;
View Full Code Here


  @Override
  protected Relation buildRelation() {
    Database db = belongsToClassMap == null ? database : belongsToClassMap.database();
    RelationBuilder builder = relationBuilder(db.connectedDB());
    builder.addProjection(contentDownloadColumn);
    for (ProjectionSpec projection: getMediaTypeValueMaker().projectionSpecs()) {
      builder.addProjection(projection);
    }
    if (belongsToClassMap != null) {
      builder.addOther(belongsToClassMap.relationBuilder(db.connectedDB()));
View Full Code Here

  protected Relation buildRelation() {
    Database db = belongsToClassMap == null ? database : belongsToClassMap.database();
    RelationBuilder builder = relationBuilder(db.connectedDB());
    builder.addProjection(contentDownloadColumn);
    for (ProjectionSpec projection: getMediaTypeValueMaker().projectionSpecs()) {
      builder.addProjection(projection);
    }
    if (belongsToClassMap != null) {
      builder.addOther(belongsToClassMap.relationBuilder(db.connectedDB()));
    }
    return builder.buildRelation();
View Full Code Here

    Map<Var,NodeMaker> map = Collections.singletonMap(Var.alloc("x"), x);
    BindingMaker bm = new BindingMaker(map, null);
    RelationBuilder b1 = new RelationBuilder(db);
    RelationBuilder b2 = new RelationBuilder(db);
    b1.addProjection(id);
    b2.addProjection(id);
    b1.addCondition("TABLE.VALUE=1");
    b2.addCondition("TABLE.VALUE=2");
   
    CompatibleRelationGroup group = new CompatibleRelationGroup();
    Relation r1 = b1.buildRelation();
View Full Code Here

    Map<Var,NodeMaker> map = Collections.singletonMap(Var.alloc("x"), x);
    BindingMaker bm = new BindingMaker(map, null);
    RelationBuilder b1 = new RelationBuilder(db);
    RelationBuilder b2 = new RelationBuilder(db);
    b1.addProjection(id);
    b2.addProjection(id);
    b1.addCondition("TABLE.VALUE=1");
   
    CompatibleRelationGroup group = new CompatibleRelationGroup();
    Relation r1 = b1.buildRelation();
    Relation r2 = b2.buildRelation();
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.