def parse_doc_fields(self, doc_term):
try:<EOL><INDENT>self.builder.set_doc_spdx_id(self.doc, doc_term)<EOL><DEDENT>except SPDXValueError:<EOL><INDENT>self.value_error('<STR_LIT>', doc_term)<EOL><DEDENT>try:<EOL><INDENT>if doc_term.count('<STR_LIT:#>', <NUM_LIT:0>, len(doc_term)) <= <NUM_LIT:1>:<EOL><INDENT>doc_namespace = doc_term.split('<STR_LIT:#>')[<NUM_LIT:0>]<EOL>self.builder.set_doc_namespace(self.doc, doc_namespace)<EOL><DEDENT>else:<EOL><INDENT>self.value_error('<STR_LIT>', doc_term)<EOL><DEDENT><DEDENT>except SPDXValueError:<EOL><INDENT>self.value_error('<STR_LIT>', doc_term)<EOL><DEDENT>for _s, _p, o in self.graph.triples((doc_term, self.spdx_namespace['<STR_LIT>'], None)):<EOL><INDENT>try:<EOL><INDENT>self.builder.set_doc_version(self.doc, six.text_type(o))<EOL><DEDENT>except SPDXValueError:<EOL><INDENT>self.value_error('<STR_LIT>', o)<EOL><DEDENT>except CardinalityError:<EOL><INDENT>self.more_than_one_error('<STR_LIT>')<EOL>break<EOL><DEDENT><DEDENT>for _s, _p, o in self.graph.triples((doc_term, self.spdx_namespace['<STR_LIT>'], None)):<EOL><INDENT>try:<EOL><INDENT>self.builder.set_doc_data_lic(self.doc, six.text_type(o))<EOL><DEDENT>except SPDXValueError:<EOL><INDENT>self.value_error('<STR_LIT>', o)<EOL><DEDENT>except CardinalityError:<EOL><INDENT>self.more_than_one_error('<STR_LIT>')<EOL>break<EOL><DEDENT><DEDENT>for _s, _p, o in self.graph.triples(<EOL>(doc_term, self.spdx_namespace['<STR_LIT:name>'], None)):<EOL><INDENT>try:<EOL><INDENT>self.builder.set_doc_name(self.doc, six.text_type(o))<EOL><DEDENT>except CardinalityError:<EOL><INDENT>self.more_than_one_error('<STR_LIT:name>')<EOL>break<EOL><DEDENT><DEDENT>for _s, _p, o in self.graph.triples((doc_term, RDFS.comment, None)):<EOL><INDENT>try:<EOL><INDENT>self.builder.set_doc_comment(self.doc, six.text_type(o))<EOL><DEDENT>except CardinalityError:<EOL><INDENT>self.more_than_one_error('<STR_LIT>')<EOL>break<EOL><DEDENT><DEDENT>
Parses the version, data license, name, SPDX Identifier, namespace,
        and comment.