refactored rdf handler
refactored rdf handler
added stack trace to error function