if ((!strstr(url, ":/")) || (fileReadp(db, url, true))) { return NULL; } else { RDFFile newFile = makeRDFFile(url, top, localp); if (db->pdata) { newFile->next = (RDFFile) db->pdata; db->pdata = newFile; } else { db->pdata = (RDFFile) newFile; } #ifdef DEBUG_guha { char* traceLine = getMem(500); sprintf(traceLine, "Accessing %s", url); FE_Trace(traceLine); freeMem(traceLine); } #endif newFile->assert = remoteAssert3; if (top) { if (resourceType(top) == RDF_RT) { if (strstr(url, ".mcf")) { newFile->fileType = RDF_MCF; } else { newFile->fileType = RDF_XML; } } else { newFile->fileType = resourceType(top); } } newFile->db = db; beginReadingRDFFile(newFile); return newFile; }
RDFFile f = makeNewRDFFile(url, top, localp, db); if (!f) return NULL; beginReadingRDFFile(f); return f;
readRDFFile (char* url, RDF_Resource top, PRBool localp, RDFT db){  if ((!strstr(url, ":/")) ||      (fileReadp(db, url, true))) {    return NULL;  } else {    RDFFile newFile = makeRDFFile(url, top, localp);      if (db->pdata) {        newFile->next = (RDFFile) db->pdata;      db->pdata = newFile;    } else {      db->pdata = (RDFFile) newFile;  }#ifdef DEBUG_guha    {      char* traceLine = getMem(500);      sprintf(traceLine, "Accessing %s", url);      FE_Trace(traceLine);      freeMem(traceLine);    }#endif    newFile->assert = remoteAssert3;    if (top) {      if (resourceType(top) == RDF_RT) {        if (strstr(url, ".mcf")) {          newFile->fileType = RDF_MCF;        } else {          newFile->fileType = RDF_XML;      }      } else {        newFile->fileType = resourceType(top);      }    }    newFile->db = db;    beginReadingRDFFile(newFile);    return newFile;  }}