while (pib.hasNext()) {
final Bindings bind1 = pib.next();
// TODO Prevent duplicates
// bind1.getTriples();
final Triple triple = new Triple();
for (int i = 0; i < 3; i++) {
if (valueOrVariable[i].isVariable())
triple.setPos(i, bind1.get((Variable) valueOrVariable[i]));
else
triple.setPos(i, (Literal) valueOrVariable[i]);
}
if (triple.getSubject() instanceof TypedLiteral) {
System.err.println("Tried to generate triple "
+ triple
+ ", which does not conform to the RDF conventions: The subject is a literal!");
} else if (triple.getPredicate() instanceof TypedLiteral) {
System.err.println("Tried to generate triple "
+ triple
+ ", which does not conform to the RDF conventions: The predicate is a literal!");
} else if (triple.getPredicate() instanceof AnonymousLiteral) {
System.err.println("Tried to generate triple "
+ triple
+ ", which does not conform to the RDF conventions: The predicate is a blank node!");
} else
for (final OperatorIDTuple oit : succeedingOperators) {