Attempt to guess if resource is of type RDF by reading the first line. Fixes previous librdf errors such as "[ERROR] syntax error at 'p'"