Package lupos.engine.operators.singleinput.sparul

Examples of lupos.engine.operators.singleinput.sparul.MultipleURIOperator


      if(with!=null){
        Tuple<Construct, Item> entry = graphConstraints.get(i);
        if(entry.getSecond()==null)
          entry.setSecond(with);
      }
      MultipleURIOperator bo = new Insert(null, this.indexScanCreator.getDataset());
      connection.connect(bo);
      muos.add(bo);
    }   
    insertMultipleURIOperator(muos, graphConstraints, connection);
  }
View Full Code Here


      if(with!=null){
        Tuple<Construct, Item> entry = graphConstraints.get(i);
        if(entry.getSecond()==null)
          entry.setSecond(with);
      }
      MultipleURIOperator bo = new Delete(null, this.indexScanCreator.getDataset());
      connection.connect(bo);
      muos.add(bo);
    }   
    insertMultipleURIOperator(muos, graphConstraints, connection);
  }
View Full Code Here

  }

  protected void insertMultipleURIOperator(Collection<MultipleURIOperator> ops, LinkedList<Tuple<Construct, Item>> graphConstraints, OperatorConnection connection){
    Iterator<MultipleURIOperator> it = ops.iterator();
    for(Tuple<Construct, Item> entry: graphConstraints){
      MultipleURIOperator muo = it.next();
      Collection<URILiteral> cu;
      Item item=entry.getSecond();
      if(item==null){
        cu = new LinkedList<URILiteral>();
      } else if(item.isVariable()){
        cu = this.indexScanCreator.getDataset().getNamedGraphs();
      } else {
        cu = new LinkedList<URILiteral>();
        cu.add((URILiteral)entry.getSecond());
      }
      muo.setURIs(cu);
      Construct construct=entry.getFirst();
      construct.addSucceedingOperator(muo);
      connection.connect(muo);
    }
    if(ops.size()>1){
View Full Code Here

  }
 
  protected void insertMultipleURIOperator(Collection<MultipleURIOperator> ops, LinkedList<Tuple<Construct, Item>> graphConstraints, SimpleNode node){
    Iterator<MultipleURIOperator> it = ops.iterator();
    for(Tuple<Construct, Item> entry: graphConstraints){
      MultipleURIOperator muo = it.next();
      Collection<URILiteral> cu;
      Item item=entry.getSecond();
      if(item==null){
        cu = new LinkedList<URILiteral>();
      } else if(item.isVariable()){
        cu = this.indexScanCreator.getDataset().getNamedGraphs();
      } else {
        cu = new LinkedList<URILiteral>();
        cu.add((URILiteral)entry.getSecond());
      }
      muo.setURIs(cu);
      muo.setSucceedingOperator(new OperatorIDTuple(result, 0));
      Construct construct = entry.getFirst();
      construct.setSucceedingOperator(new OperatorIDTuple(muo, 0));
      this.indexScanCreator.createEmptyIndexScanAndConnectWithRoot(new OperatorIDTuple(construct, 0));
    }
  }
View Full Code Here

TOP

Related Classes of lupos.engine.operators.singleinput.sparul.MultipleURIOperator

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.