Rename replacePrefixes to abbrevURI
Add private getPrefixes method
Rename some functions, many cleanups
Add isResource method
Fix indentation error