cambialens / lens-api-doc

10 stars 5 forks source link

Unable to retrieve data for inventors.extracted_address #75

Open vanessagd15 opened 1 month ago

vanessagd15 commented 1 month ago

Hi. I am requesting patent data from the API using R, for inventors residing in GB. The data retrieved under biblio.parties.inventors do not include extracted_address.

AaronBallagh commented 1 month ago

hello, thank you for this question. The biblio.parties.inventors field is only returned if the inevntor has address infomration. For patents with GB inventors, there are only ~55K that have inventor address information, see https://link.lens.org/TFbmz9zigme. You can confirm the inventor address is being returned for GB inventors with address information using this query:

{
    "query": {
        "bool": {
            "must": [
                {
                    "wildcard": {
                        "inventor.address": "*"
                    }
                },
                {
                    "match": {
                        "jurisdiction": "GB"
                    }
                }
            ]
        }
    }
}