Skip to content

Commit 64970a7

Browse files
committed
README: Educate about retrieving the document's description and claims
1 parent e9f6280 commit 64970a7

1 file changed

Lines changed: 18 additions & 2 deletions

File tree

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,34 @@
77

88
python-epo-ops-client is an [Apache2 licensed][apache license] client library
99
for accessing the [European Patent Office][epo]'s ("EPO") [Open Patent
10-
Services][ops] ("OPS") v.3.2 (based on [v 1.3.16 of the reference guide][ops guide]).
10+
Services][ops] ("OPS") v3.2 (based on [v1.3.16 of the reference guide][ops guide]).
1111

1212
```python
1313
import epo_ops
1414

1515
client = epo_ops.Client(key='abc', secret='xyz') # Instantiate client
16-
response = client.published_data( # Retrieve bibliography data
16+
17+
# Retrieve bibliography data.
18+
response = client.published_data(
1719
reference_type = 'publication', # publication, application, priority
1820
input = epo_ops.models.Docdb('1000000', 'EP', 'A1'), # docdb, epodoc
1921
endpoint = 'biblio', # optional, defaults to biblio in case of published_data
2022
constituents = [] # optional, list of constituents
2123
)
24+
25+
# Retrieve description.
26+
response = client.published_data(
27+
reference_type = 'publication',
28+
input = epo_ops.models.Docdb('1000000', 'EP', 'A1'),
29+
endpoint = 'description',
30+
)
31+
32+
# Retrieve claims.
33+
response = client.published_data(
34+
reference_type = 'publication',
35+
input = epo_ops.models.Docdb('1000000', 'EP', 'A1'),
36+
endpoint = 'claims',
37+
)
2238
```
2339

2440
---

0 commit comments

Comments
 (0)