Skip to content

Potential fixes in parse_xml_v4_file.py #9

@sjsf00

Description

@sjsf00

In the original file from 2005 to 2012, the information of inventors tree is like:

<applicants>
<applicant sequence="001" app-type="applicant-inventor" designation="us-only">
<addressbook>
<last-name>Davis</last-name>
<first-name>Shawn P.</first-name>
<address>
<city>Jefferson Hills</city>
<state>PA</state>
<country>US</country>
</address>
</addressbook>
<nationality>
<country>omitted</country>
</nationality>
<residence>
<country>US</country>
</residence>
</applicant>
<applicant sequence="002" app-type="applicant-inventor" designation="us-only">
<addressbook>
<last-name>Garbin</last-name>
<first-name>Kelly</first-name>
<address>
<city>St. Louis</city>
<state>MO</state>
<country>US</country>
</address>
</addressbook>
<nationality>
<country>omitted</country>
</nationality>
<residence>
<country>US</country>
</residence>
</applicant>
<applicant sequence="003" app-type="applicant-inventor" designation="us-only">
<addressbook>
<last-name>Russell</last-name>
<first-name>Wellington Kelvin</first-name>
<address>
<city>Houston</city>
<state>TX</state>
<country>US</country>
</address>
</addressbook>
<nationality>
<country>omitted</country>
</nationality>
<residence>
<country>US</country>
</residence>
</applicant>
</applicants>

I think the branch should be like: ~/applicants/applicant or ~/applicants to parse multiple inventor info

But in parse_xml_v4_file.py, both old and new branch are wrote like:

line49: us_parties_inventors_path = f'{us_parties_base_path}/inventors/inventor'
line52: us_parties_inventors_path_old = f'{us_parties_base_path_old}/inventors/inventor'

Using the code to parse data from 2005 to 2012 with data_items:['INVT'], it supposed to return the inventors info, but it returns None.

Furthermore, I am not pretty sure if the parser parsing correctly when there are multiple inventors, I think it may needs to be f'{us_parties_base_path}/inventors' for that type of case(mostly).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions