python-epo-ops-client icon indicating copy to clipboard operation
python-epo-ops-client copied to clipboard

Epodoc biblio url not found

Open YojanaGadiya opened this issue 3 years ago • 8 comments

When I try to query using Epodoc, I always get the same issue:

requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://ops.epo.org/3.2/rest-services/register/publication/epodoc/biblio

Is there something I am missing in the code?

data = 'EP07102956'
client = Client(key=USER, secret=PASS)  # Instantiate client
response = client.register(
        reference_type='publication',
        input=models.Epodoc(data),
  )
 print(response.text)

YojanaGadiya avatar Jun 30 '21 07:06 YojanaGadiya

You can test your query at https://developers.epo.org/ops-v3-2/apis/post/register/%7Btype%7D/%7Bformat%7D/biblio and you'll get the same result.

For example, if you query for EP1000000 then you get a response. So you must query for a valid number.

gsong avatar Aug 30 '22 00:08 gsong

Hi, I got the same exception as above mentioned when I tried with EPODOC. I gave a valid Patent number and tried in OPS API, which gives a proper response. Please look into it.

amani-acog avatar Aug 24 '23 16:08 amani-acog

Hi, I got the same exception as above mentioned when I tried with EPODOC. I gave a valid Patent number and tried in OPS API, which gives a proper response. Please look into it.

Can you supply more info, e.g. what patent number? And maybe share the snippet of code you're using.

gsong avatar Aug 24 '23 16:08 gsong

Hi, Here is the sample code: import epo_ops

client = epo_ops.Client(key='faLMJ27CC4ErYwssA51OHlHCfZ5tA6Vt', secret='<REDACTED>') # Instantiate client response = client.published_data( # Retrieve bibliography data reference_type = 'publication', # publication, application, priority input = epo_ops.models.Epodoc('2008110632', 'WO', 'A1'), # original, docdb, epodoc endpoint = 'fulltext', # optional, defaults to biblio in case of published_data constituents = [] # optional, list of constituents

output: raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://ops.epo.org/3.2/rest-services/published-data/publication/epodoc/fulltext

Output from OPS:

[image: Screenshot 2023-08-24 at 10.32.26 PM.png]

The above piece of code works fine with 'docdb' for 'fulltext' provided full patent no.

Please fix this as soon as possible as I am working on fetching patents fulltext(description and claims) with 'WO' and I didnot have 'kind code' for 'WO'. So fixing 'epodoc' will help me.

Thank you and regards, Amani

On Thu, Aug 24, 2023 at 10:30 PM George Song @.***> wrote:

Hi, I got the same exception as above mentioned when I tried with EPODOC. I gave a valid Patent number and tried in OPS API, which gives a proper response. Please look into it.

Can you supply more info, e.g. what patent number? And maybe share the snippet of code you're using.

— Reply to this email directly, view it on GitHub https://github.com/ip-tools/python-epo-ops-client/issues/50#issuecomment-1692088537, or unsubscribe https://github.com/notifications/unsubscribe-auth/A35ZQJ6RN44CMQ354OP5AJLXW6CBFANCNFSM47RY3HNQ . You are receiving this because you commented.Message ID: @.***>

amani-acog avatar Aug 24 '23 17:08 amani-acog

Output from OPS: [image: Screenshot 2023-08-24 at 10.32.26 PM.png]

Sorry, can't see the output from OPS, can you edit your comment to include the screenshot properly?

gsong avatar Aug 24 '23 18:08 gsong

[image: Screenshot 2023-08-25 at 11.00.35 AM.png]

On Thu, 24 Aug 2023, 23:43 George Song, @.***> wrote:

Output from OPS: [image: Screenshot 2023-08-24 at 10.32.26 PM.png]

Sorry, can't see the output from OPS, can you edit your comment to include the screenshot properly?

— Reply to this email directly, view it on GitHub https://github.com/ip-tools/python-epo-ops-client/issues/50#issuecomment-1692189976, or unsubscribe https://github.com/notifications/unsubscribe-auth/A35ZQJ4CXTS2LIAMWQJE5S3XW6KS3ANCNFSM47RY3HNQ . You are receiving this because you commented.Message ID: @.***>

amani-acog avatar Aug 25 '23 05:08 amani-acog

Dear @amani-acog,

thank you for writing in. Regarding your most recent report at https://github.com/ip-tools/python-epo-ops-client/issues/50#issuecomment-1692105091, we just verified it works (aka. the response is 200 OK) when using input=Epodoc('WO2008110632', 'A1').

The constructor argument signature is (number, kind_code=None, date=None). Your example, using Epodoc('2008110632', 'WO', 'A1'), assigned the slots differently, and probably erroneously.

As we are just starting to read about the details here, please educate us if that doesn't solve your problem already.

With kind regards, Andreas.

amotl avatar Jan 15 '24 19:01 amotl

Dear @YojanaGadiya,

also thanks for writing in, and apologies for the late reply.

As @gsong mentioned in his response, the input patent number EP07102956 is probably wrong, or this patent does not exist / has been retracted and deleted for whatever reasons (the latter should not happen in general, but who knows).

The only documents in patent literature we are able to discover after conducting a quick search, which include this number, are JP7102956B2, US7102956B2, and NL7102956A.

So, do you think it might just have been a typo of some sort, or do you have any other explanation? Personally, I would be interested in the title and IPC classifications of this patent, or other details, in order to eventually find out about its whereabouts.

With kind regards, Andreas.

amotl avatar Jan 15 '24 19:01 amotl