Opens and parses an RDF file, choosing the correct parser based on the extension