def parse_rdf(self):
try:<EOL><INDENT>self.metadata = pg_rdf_to_json(self.rdf_path)<EOL><DEDENT>except IOError as e:<EOL><INDENT>raise NoRDFError(e)<EOL><DEDENT>if not self.authnames():<EOL><INDENT>self.author = '<STR_LIT>'<EOL><DEDENT>elif len(self.authnames()) == <NUM_LIT:1>:<EOL><INDENT>self.author = self.authnames()[<NUM_LIT:0>]<EOL><DEDENT>else:<EOL><INDENT>self.author = "<STR_LIT>"<EOL><DEDENT>
Parses the relevant PG rdf file