/* * Replace full uri using vocabulary prefixes * The list of prefixes is synchronized with * resource file prefix.txt so the frontend and beckend use the same list of prefixes */ SindiceInspector.replacePrefix = function(str){ if(SindiceInspector.prefixes){ for(uri in SindiceInspector.prefixes){ if(SindiceInspector.prefixes.hasOwnProperty(uri)){ var prefix = SindiceInspector.prefixes[uri]; if(str.indexOf(uri)===0){ return str.replace(uri,prefix+":"); } } } } return str; }; SindiceInspector.getNamespacesFromRdfXml = function(s){ var ret =[]; s = ""+s.replace('','').trim(); s = s.replace('"); s = s.substring(0,index); var a = s.split(" "); for(var i=0;i"+ns.namespaceUri+""; } str+='' jQuery(selector).append('
'+str+'
'); }