org.aksw.jenax.arq.aggregation.AccTable Maven / Gradle / Ivy
The newest version!
package org.aksw.jenax.arq.aggregation;
import java.util.List;
import org.apache.jena.sparql.algebra.Table;
import org.apache.jena.sparql.algebra.TableFactory;
import org.apache.jena.sparql.core.Var;
import org.apache.jena.sparql.engine.binding.Binding;
import org.apache.jena.sparql.function.FunctionEnv;
public class AccTable
implements Acc
{
private Table value;
public AccTable(List varNames) {
this.value = TableFactory.create(Var.varList(varNames));
}
@Override
public void accumulate(Binding binding, FunctionEnv env) {
value.addBinding(binding);
}
@Override
public Table getValue() {
return value;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy