Model model = mc.getModel();
if (model instanceof SesameModel) {
RippleList stack = arg;
RippleValue head = stack.getFirst();
final RippleList rest = stack.getRest();
final Sink<RippleValue> pushSink = new Sink<RippleValue>() {
public void put(final RippleValue v) throws RippleException {
solutions.put(rest.push(v));
}
};
Sink<Statement> stSink = new Sink<Statement>() {
public void put(final Statement st) throws RippleException {
if ('_' == st.getPredicate().getLocalName().charAt(0)) {
pushSink.put(new RDFValue(st.getObject()));
}
}
};
mc.getStatements(head.toRDF(mc), null, null, stSink);
/*
int i = 1;
while (true) { // Break out when there are no more members to produce
Collector<RippleValue, RippleException> results = new Collector<RippleValue, RippleException>();