ans = RDF_GetResource(NULL, url, 1);
if (strcmp(url, DC_TITLE) == 0) { ans = gCoreVocab->RDF_name; } else if (strcmp(url, SM_CHILD) == 0) { ans = gCoreVocab->RDF_child; } else ans = RDF_GetResource(NULL, url, 1);
ResourceFromElementName (RDFFile f, char* elementName){  if(!elementName || (strchr(elementName, ':') == NULL) ) {    return RDF_GetResource(NULL, elementName, 1);  } else {    XMLNameSpace ns = f->namespaces;    while (ns) {      if (startsWith(ns->as, elementName)) {        RDF_Resource ans;        size_t asn =  strlen(ns->as);        size_t urln = strlen(ns->url);        char* url = getMem(strlen(ns->url) + strlen(elementName)-asn);        memcpy(url, ns->url, urln);        strcat(url, &elementName[asn+1]);        ans = RDF_GetResource(NULL, url, 1);        freeMem(url);        return ans;      }      ns = ns->next;    }    return RDF_GetResource(NULL, elementName, 1);  }}