code: function(quad, component, newQuad, k) {
          var maybeBlankOid, oid, quad;
  
          if (quad[component]['uri'] || quad[component].token === 'uri') {
              var uriValue = (quad[component].uri || quad[component].value);
              that.lexicon.registerUri(uriValue, function(oid){
                  var returnUriComponent = function(){
                      if (quad[component].uri != null) {
                          quad[component] = {'token': 'uri', 'value': quad[component].uri};
                          delete quad[component]['uri'];
                      }
                      newQuad[component] = oid;
                      k();
                  };
  
                  if(component === 'graph') {
                      that.lexicon.registerGraph(oid, uriValue, function(){
                          returnUriComponent();
                      });
                  } else {
                      returnUriComponent();
                  }
              });
          } else if (quad[component]['literal'] || quad[component].token === 'literal') {
              that.lexicon.registerLiteral(quad[component].literal || quad[component].value, function(oid){
                  if (quad[component].literal != null) {
                      quad[component] = that.lexicon.parseLiteral(quad[component].literal);
                      delete quad[component]['literal'];
                  }
                  newQuad[component] = oid;
                  k();
              });
          } else {
              maybeBlankOid = blanks[quad[component].blank || quad[component].value];
              if (maybeBlankOid == null) {
                  that.lexicon.registerBlank(function(maybeBlankOid){
                      blanks[(quad[component].blank || quad[component].value)] = maybeBlankOid;
  
                      if (quad[component].token == null) {
                          quad[component].token = 'blank';
                          quad[component].value = quad[component].blank;
                          delete quad[component]['blank'];
                      }
                      newQuad[component] = maybeBlankOid;
                      k();
                  });
  
              } else {
                  if (quad[component].token == null) {
                      quad[component].token = 'blank';
                      quad[component].value = quad[component].blank;
                      delete quad[component]['blank'];
                  }
                  newQuad[component] = maybeBlankOid;
                  k();
              }
          }
  
      }
docs: subject