Resource sourceObj = r.getObject();
copyObj = g.newResource();
- for (Resource t : g.getObjects(sourceObj, L0.InstanceOf)) {
- g.claim(copyObj, L0.InstanceOf, t);
- }
+ copyTypes(g, sourceObj, copyObj);
copyProperties(g, sourceObj, copyObj);
g.claim(parent, r.getPredicate(), copyObj);
return copyObj;
}
+ @Override
+ public String toString() {
+ return super.toString() + " " + r.getSubject() + " " + r.getPredicate() + " " + r.getObject();
+ }
+
}