Skip to content

Docs example fix requested - Finding all the patents for a given company (or organization) #176

@MatthewLoffredo

Description

@MatthewLoffredo

Hi, I'm trying to follow the page here (https://patent-client.readthedocs.io/en/latest/examples/3%20-%20Company%20Ownership.html) to get a company's patent portfolio, but the first step doesn't seem to be working:

Calling the first step:

applicant_apps = USApplication.objects.filter(first_named_applicant='University of California, Berkeley').values_list('appl_id', flat=True).to_list()

results in:

[/usr/local/lib/python3.10/dist-packages/pydantic/main.py](https://localhost:8080/#) in model_validate(cls, obj, strict, from_attributes, context)
    566         # `__tracebackhide__` tells pytest and some other tools to omit this function from tracebacks
    567         __tracebackhide__ = True
--> 568         return cls.__pydantic_validator__.validate_python(
    569             obj, strict=strict, from_attributes=from_attributes, context=context
    570         )

ValidationError: 1 validation error for PedsPage
queryResults.searchResponse.response.docs.1.appFilingDate
  Field required [type=missing, input_value={'corrAddrCountryName': '... 02818 (UNITED STATES)'}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.8/v/missing

Additionally, I was wondering if there were any tricks you had for getting all the different potential assignee names for companies? Some companies might have multiple different ones, which using this method, would potentially exclude any name variations. Any advice on how to handle that? The end goal is to get a company's complete patent portfolio.

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