}
}
private void addLoop(String predicate) throws Exception {
URIReference p1 = elementFactory.createURIReference(URI.create(predicate));
BlankNode firstNode = elementFactory.createBlankNode();
BlankNode thisNode = firstNode;
for (int i = 0; i < LOOP_SIZE; i++) {
BlankNode nextNode = elementFactory.createBlankNode();
graph.add(thisNode, p1, nextNode);
thisNode = nextNode;
}
graph.add(thisNode, p1, firstNode);
}