while (tuples.hasNext()) {
Node parent = tuples.next().get("parent");
if (parent != null) {
if (parent.isURIReference()) {
try {
PID parentPID = new PID(parent.stringValue());
logger.debug("Found parent " + parentPID.toString());
parentPIDs.add(parentPID.toString());
} catch (MalformedPIDException e) {
logger.warn("parent/child relationship target is not a Fedora object" + parent.stringValue());
}