code: private URIReference addCommonTriples(DOReader reader, Set<Triple> set)
              throws ResourceIndexException {
  
          try {
  
              URIReference objURI = new SimpleURIReference(
                      new URI(PID.toURI(reader.GetObjectPID())));
  
              addCoreObjectTriples(reader, objURI, set);
  
              Datastream[] datastreams = reader.GetDatastreams(null, null);
              for (Datastream ds : datastreams) {
                  addCoreDatastreamTriples(ds, objURI, set);
                  if (ds.DatastreamID.equals("DC")) {
                      addDCTriples(ds, objURI, set);
                  }
              }
  
              addRelationshipTriples(reader, objURI, set);
  
              return objURI;
          } catch (ResourceIndexException e) {
              throw e;
          } catch (Exception e) {
              throw new ResourceIndexException("Error generating triples", e);
          }
      }
docs: Add the common core and datastream triples for the given object.